diff --git a/.gitattributes b/.gitattributes index 38c2c829abe0a2186fc65112ca8cfe1c37b3cd89..d765526486bf81b5672c237f9d68a7fd9ca140e0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -91,3 +91,10 @@ docs/development-artifacts/parametric-architecture-execution-v1/container/depend docs/development-artifacts/parametric-architecture-execution-v1/container/dependencies/yaml/_yaml.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text docs/development-artifacts/qwen-path-learning-v1/pre-semantic-revision/candidates.json filter=lfs diff=lfs merge=lfs -text docs/development-artifacts/shortcut-confirmation-v1/common-u/paired-common-u.csv filter=lfs diff=lfs merge=lfs -text +results/first-principles-review-20261004/theory-sources/composition2024.pdf filter=lfs diff=lfs merge=lfs -text +results/first-principles-review-20261004/theory-sources/factual2025.pdf filter=lfs diff=lfs merge=lfs -text +results/first-principles-review-20261004/theory-sources/grokking2024.pdf filter=lfs diff=lfs merge=lfs -text +results/first-principles-review-20261004/theory-sources/hc2025.pdf filter=lfs diff=lfs merge=lfs -text +results/first-principles-review-20261004/theory-sources/implicit2025.pdf filter=lfs diff=lfs merge=lfs -text +results/first-principles-review-20261004/theory-sources/loop2025.pdf filter=lfs diff=lfs merge=lfs -text +results/first-principles-review-20261004/theory-sources/mhc2026.pdf filter=lfs diff=lfs merge=lfs -text diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case00-review.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case00-review.json new file mode 100644 index 0000000000000000000000000000000000000000..aa9847848d755bd4eb1a31b06da925eabb7443e8 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case00-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 7, + "old_fact": [ + 4, + 67, + 53 + ], + "new_fact": [ + 4, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 35.00292205810547, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.7594932722484486e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999979734420776 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999761581420898 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.240137659230811e-09, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.3770491803278688, + "accuracy": 0.3770491803278688, + "gold_probability": 0.34332531690597534 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999776482582092 + } + } + }, + { + "step": 20, + "loss": 0.5865329504013062, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.2858805126535486e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999998927116394 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9978135824203491 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8295964125560538, + "accuracy": 0.8295964125560538, + "gold_probability": 0.7595926523208618 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.270392769787577e-06, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1885245901639344, + "accuracy": 0.1885245901639344, + "gold_probability": 0.17542923986911774 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0625, + "accuracy": 0.0625, + "gold_probability": 0.05478373169898987 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9986337423324585 + } + } + }, + { + "step": 100, + "loss": 0.4964982271194458, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.8610998853141325e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999988079071045 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998872876167297 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6412556053811659, + "accuracy": 0.6412556053811659, + "gold_probability": 0.564836323261261 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.6529927456285805e-06, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.13114754098360656, + "accuracy": 0.13114754098360656, + "gold_probability": 0.11548455059528351 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.03673739358782768 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998825192451477 + } + } + }, + { + "step": 200, + "loss": 0.49065977334976196, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2567019647136135e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999992847442627 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999502897262573 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.57847533632287, + "accuracy": 0.57847533632287, + "gold_probability": 0.5324416160583496 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.278027518012095e-06, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.13114754098360656, + "accuracy": 0.13114754098360656, + "gold_probability": 0.11086958646774292 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.04171520471572876 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999496340751648 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case01-edit.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case01-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..5d7be6799dfa19c4c88c48320954f2d8a1775410 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case01-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 5, + "old_fact": [ + 4, + 68, + 29 + ], + "new_fact": [ + 4, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 30.445816040039062, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1106281866402057e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999790191650391 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999767541885376 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.837460837985418e-07, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.3902439024390244, + "accuracy": 0.3902439024390244, + "gold_probability": 0.35583746433258057 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999903440475464 + } + } + }, + { + "step": 20, + "loss": 0.6619390249252319, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9959431290626526 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7609546648932337e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9898694753646851 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8295964125560538, + "accuracy": 0.8295964125560538, + "gold_probability": 0.7894997596740723 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0002716192393563688, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.25203252032520324, + "accuracy": 0.25203252032520324, + "gold_probability": 0.2317381054162979 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.016744069755077362 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9854565262794495 + } + } + }, + { + "step": 100, + "loss": 0.4998314678668976, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9989374279975891 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.455201985109625e-09 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992021322250366 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7219730941704036, + "accuracy": 0.7219730941704036, + "gold_probability": 0.681671679019928 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00016444259381387383, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.17073170731707318, + "accuracy": 0.17073170731707318, + "gold_probability": 0.1737917810678482 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.01595456898212433 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997387528419495 + } + } + }, + { + "step": 200, + "loss": 0.49124088883399963, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994301199913025 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.4136295184717937e-09 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996705651283264 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7130044843049327, + "accuracy": 0.7130044843049327, + "gold_probability": 0.6684939861297607 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00010509738785913214, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.16260162601626016, + "accuracy": 0.16260162601626016, + "gold_probability": 0.16380126774311066 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.016230052337050438 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999094009399414 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case01-review.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case01-review.json new file mode 100644 index 0000000000000000000000000000000000000000..325e703da92ba79496717f88202c83e0b6cf000c --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case01-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 5, + "old_fact": [ + 4, + 68, + 29 + ], + "new_fact": [ + 4, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 38.86133575439453, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1106281866402057e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999790191650391 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999767541885376 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.837460837985418e-07, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.3902439024390244, + "accuracy": 0.3902439024390244, + "gold_probability": 0.35583746433258057 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999903440475464 + } + } + }, + { + "step": 20, + "loss": 0.5853953957557678, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.491037122888457e-11 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999891519546509 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9989131689071655 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7309417040358744, + "accuracy": 0.7309417040358744, + "gold_probability": 0.6434935331344604 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0217376004438847e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.10569105691056911, + "accuracy": 0.10569105691056911, + "gold_probability": 0.10922086983919144 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.016366755589842796 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9978762865066528 + } + } + }, + { + "step": 100, + "loss": 0.49628329277038574, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.865562202611585e-11 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999960660934448 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999246597290039 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.42152466367713004, + "accuracy": 0.42152466367713004, + "gold_probability": 0.3881880044937134 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7394544304115698e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.07317073170731707, + "accuracy": 0.07317073170731707, + "gold_probability": 0.07400403916835785 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.028555523604154587 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999529123306274 + } + } + }, + { + "step": 200, + "loss": 0.49059128761291504, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.797876513804809e-11 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999985694885254 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999667406082153 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.40358744394618834, + "accuracy": 0.40358744394618834, + "gold_probability": 0.3698718249797821 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.4761569622787647e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.056910569105691054, + "accuracy": 0.056910569105691054, + "gold_probability": 0.07050549238920212 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.027457788586616516 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999765157699585 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case02-edit.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case02-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..9c9f25f104b2ea7f411bf9a25107e48fb3de2e25 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case02-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 4, + "old_fact": [ + 4, + 70, + 53 + ], + "new_fact": [ + 4, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 31.443588256835938, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2838253127256394e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999932050704956 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999763369560242 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.55508572369834e-11, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.3821138211382114, + "accuracy": 0.3821138211382114, + "gold_probability": 0.3485907018184662 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999701976776123 + } + } + }, + { + "step": 20, + "loss": 0.624473512172699, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.986409604549408 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.126763087697327e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9920355081558228 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7937219730941704, + "accuracy": 0.7937219730941704, + "gold_probability": 0.7658689618110657 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.0205577494204476e-09, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.22764227642276422, + "accuracy": 0.22764227642276422, + "gold_probability": 0.21541810035705566 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.002803938230499625 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9976891279220581 + } + } + }, + { + "step": 100, + "loss": 0.4987454414367676, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9983780384063721 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2269160833966453e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993919134140015 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6412556053811659, + "accuracy": 0.6412556053811659, + "gold_probability": 0.6018031239509583 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6632405452909893e-09, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.14634146341463414, + "accuracy": 0.14634146341463414, + "gold_probability": 0.14027000963687897 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0045382254756987095 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997766613960266 + } + } + }, + { + "step": 200, + "loss": 0.49105125665664673, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993138313293457 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.40021119377343e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997638463973999 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6278026905829597, + "accuracy": 0.6278026905829597, + "gold_probability": 0.5764956474304199 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.205107538903576e-10, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.14634146341463414, + "accuracy": 0.14634146341463414, + "gold_probability": 0.13116948306560516 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.011286495253443718 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999913215637207 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case02-review.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case02-review.json new file mode 100644 index 0000000000000000000000000000000000000000..d5fe8467ba881a039f79756b6ca5be1073dfc513 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case02-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 4, + "old_fact": [ + 4, + 70, + 53 + ], + "new_fact": [ + 4, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 34.49518585205078, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2838253127256394e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999932050704956 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999763369560242 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.55508572369834e-11, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.3821138211382114, + "accuracy": 0.3821138211382114, + "gold_probability": 0.3485907018184662 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999701976776123 + } + } + }, + { + "step": 20, + "loss": 0.5864161252975464, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.024158311606186e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999997615814209 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9981245994567871 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8251121076233184, + "accuracy": 0.8251121076233184, + "gold_probability": 0.7731198668479919 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2418410744174935e-09, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.1951219512195122, + "accuracy": 0.1951219512195122, + "gold_probability": 0.18607144057750702 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.036396417766809464 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9958981871604919 + } + } + }, + { + "step": 100, + "loss": 0.49650585651397705, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.730942776947188e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999984502792358 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999864935874939 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6457399103139013, + "accuracy": 0.6457399103139013, + "gold_probability": 0.580523669719696 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7252027301472026e-09, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.12195121951219512, + "accuracy": 0.12195121951219512, + "gold_probability": 0.1159261167049408 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.04032143950462341 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998501539230347 + } + } + }, + { + "step": 200, + "loss": 0.4906695485115051, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.598743997772601e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999990463256836 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999440312385559 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6233183856502242, + "accuracy": 0.6233183856502242, + "gold_probability": 0.5529305338859558 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.971995455818387e-09, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.10569105691056911, + "accuracy": 0.10569105691056911, + "gold_probability": 0.11309059709310532 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.038336995989084244 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999505281448364 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case03-edit.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case03-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..d415708122daf0f34879389ed0f7f820168955b5 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case03-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 9, + "old_fact": [ + 5, + 70, + 31 + ], + "new_fact": [ + 5, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 29.052505493164062, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.954009895172476e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999693632125854 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999771118164062 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0005300076445564628, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6095360479084775e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.39669421487603307, + "accuracy": 0.39669421487603307, + "gold_probability": 0.36172235012054443 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999850988388062 + } + } + }, + { + "step": 20, + "loss": 0.6285433173179626, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9968776702880859 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.182270967907243e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9936606287956238 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.874439461883408, + "accuracy": 0.874439461883408, + "gold_probability": 0.8502429723739624 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.06161564216017723, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00023093180789146572, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.2809917355371901, + "accuracy": 0.2809917355371901, + "gold_probability": 0.25434646010398865 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.022975731641054153 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9638887643814087 + } + } + }, + { + "step": 100, + "loss": 0.5008909702301025, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9988839030265808 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.3412099875154126e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994930028915405 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7937219730941704, + "accuracy": 0.7937219730941704, + "gold_probability": 0.7375099062919617 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.029746325686573982, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0007277941331267357, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.19008264462809918, + "accuracy": 0.19008264462809918, + "gold_probability": 0.1822272539138794 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.016008533537387848 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996798038482666 + } + } + }, + { + "step": 200, + "loss": 0.4914884567260742, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999550998210907 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.967326632827508e-09 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997968673706055 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7668161434977578, + "accuracy": 0.7668161434977578, + "gold_probability": 0.7125089764595032 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.03428667411208153, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0009622344514355063, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.18181818181818182, + "accuracy": 0.18181818181818182, + "gold_probability": 0.17394529283046722 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.016814392060041428 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997748732566833 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case03-review.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case03-review.json new file mode 100644 index 0000000000000000000000000000000000000000..936f7e225837319ba1eb4fded67c5f99fdb621d1 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case03-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 9, + "old_fact": [ + 5, + 70, + 31 + ], + "new_fact": [ + 5, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 33.962120056152344, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.954009895172476e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999693632125854 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999771118164062 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0005300076445564628, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6095360479084775e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.39669421487603307, + "accuracy": 0.39669421487603307, + "gold_probability": 0.36172235012054443 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999850988388062 + } + } + }, + { + "step": 20, + "loss": 0.5843766331672668, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.103691996273142e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999485015869141 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9986246824264526 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8878923766816144, + "accuracy": 0.8878923766816144, + "gold_probability": 0.8134530186653137 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0007208322640508413, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00020840091747231781, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.1652892561983471, + "accuracy": 0.1652892561983471, + "gold_probability": 0.16907618939876556 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.020241189748048782 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9973682761192322 + } + } + }, + { + "step": 100, + "loss": 0.4975987672805786, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.4132822396569793e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999874830245972 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998918771743774 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6322869955156951, + "accuracy": 0.6322869955156951, + "gold_probability": 0.559039294719696 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0009268985013477504, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0011613942915573716, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.1322314049586777, + "accuracy": 0.12396694214876033, + "gold_probability": 0.12067725509405136 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.03066171333193779 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998413324356079 + } + } + }, + { + "step": 200, + "loss": 0.4909893870353699, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.9607619694550493e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999945163726807 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999526143074036 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5874439461883408, + "accuracy": 0.5874439461883408, + "gold_probability": 0.5121917128562927 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.000908072863239795, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00029180091223679483, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.11570247933884298, + "accuracy": 0.10743801652892562, + "gold_probability": 0.10497628152370453 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.02964719571173191 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999316930770874 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case04-edit.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case04-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..cd63df0d4643aa201cff16aceef38a5d43387405 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case04-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 15, + "old_fact": [ + 6, + 68, + 9 + ], + "new_fact": [ + 6, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 31.564498901367188, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.941157261129092e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999936819076538 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999763369560242 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.634876965312287e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.422844985034317e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.3770491803278688, + "accuracy": 0.3770491803278688, + "gold_probability": 0.34596875309944153 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999903440475464 + } + } + }, + { + "step": 20, + "loss": 0.649062991142273, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999686479568481 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.2419078504753998e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9837787747383118 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7713004484304933, + "accuracy": 0.7488789237668162, + "gold_probability": 0.7368114590644836 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0002367808629060164, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.02354012057185173, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.26229508196721313, + "accuracy": 0.23770491803278687, + "gold_probability": 0.24738895893096924 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.021618138998746872 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9968177080154419 + } + } + }, + { + "step": 100, + "loss": 0.5022727847099304, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999665021896362 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.2943286239751615e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994451403617859 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5560538116591929, + "accuracy": 0.5515695067264574, + "gold_probability": 0.5265136957168579 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0007562823593616486, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.020100267603993416, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1557377049180328, + "accuracy": 0.14754098360655737, + "gold_probability": 0.15100780129432678 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.020152773708105087 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998098015785217 + } + } + }, + { + "step": 200, + "loss": 0.49114280939102173, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999678134918213 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.1646565073751844e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997690916061401 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5650224215246636, + "accuracy": 0.5605381165919282, + "gold_probability": 0.5252885222434998 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0006019794964231551, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.016870617866516113, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1557377049180328, + "accuracy": 0.1557377049180328, + "gold_probability": 0.1520942598581314 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.01694231852889061 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999377727508545 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case04-review.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case04-review.json new file mode 100644 index 0000000000000000000000000000000000000000..2fb8a2c06c9f16b37d84a37ad13f7440a00bd8f9 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case04-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 15, + "old_fact": [ + 6, + 68, + 9 + ], + "new_fact": [ + 6, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 36.78388977050781, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.941157261129092e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999936819076538 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999763369560242 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.634876965312287e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.422844985034317e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.3770491803278688, + "accuracy": 0.3770491803278688, + "gold_probability": 0.34596875309944153 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999903440475464 + } + } + }, + { + "step": 20, + "loss": 0.5863382816314697, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.135601194832361e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999921441078186 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9990159273147583 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7399103139013453, + "accuracy": 0.7399103139013453, + "gold_probability": 0.6850669384002686 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00029875742620788515, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00019052285642828792, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.18032786885245902, + "accuracy": 0.18032786885245902, + "gold_probability": 0.15348759293556213 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.005044601857662201 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9985820055007935 + } + } + }, + { + "step": 100, + "loss": 0.4965386688709259, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.063816836489934e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999973773956299 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999901533126831 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.484304932735426, + "accuracy": 0.484304932735426, + "gold_probability": 0.43701815605163574 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.6949672246701084e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00020921863324474543, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.09016393442622951, + "accuracy": 0.09016393442622951, + "gold_probability": 0.07571946084499359 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.017563585191965103 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999634027481079 + } + } + }, + { + "step": 200, + "loss": 0.4902650713920593, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.742135017998805e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999986886978149 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999570846557617 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4304932735426009, + "accuracy": 0.4304932735426009, + "gold_probability": 0.39190563559532166 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.971680810849648e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00017913476040121168, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.08196721311475409, + "accuracy": 0.08196721311475409, + "gold_probability": 0.07131920754909515 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.016037030145525932 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999796152114868 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case05-edit.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case05-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..05429ff5e23a6dbfaf7c7f7a8cd692a41ee71d3a --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case05-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 13, + "old_fact": [ + 6, + 69, + 66 + ], + "new_fact": [ + 6, + 69, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 28.462263107299805, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.277479233507961e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999984622001648 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999976634979248 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00020848576969001442, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.870327074968372e-07, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.38016528925619836, + "accuracy": 0.38016528925619836, + "gold_probability": 0.34730860590934753 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999926090240479 + } + } + }, + { + "step": 20, + "loss": 0.6455158591270447, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9976680874824524 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.761686855341395e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9936888813972473 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8475336322869955, + "accuracy": 0.8475336322869955, + "gold_probability": 0.8008719682693481 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.006334368605166674, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0936654731631279, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.2396694214876033, + "accuracy": 0.2231404958677686, + "gold_probability": 0.2186124175786972 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02206735499203205 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9956400394439697 + } + } + }, + { + "step": 100, + "loss": 0.5006456971168518, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995893836021423 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.032142773117812e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996214509010315 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6547085201793722, + "accuracy": 0.6547085201793722, + "gold_probability": 0.5960957407951355 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.008365933783352375, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.11465485394001007, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.1487603305785124, + "accuracy": 0.12396694214876033, + "gold_probability": 0.14844438433647156 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02418544702231884 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994964599609375 + } + } + }, + { + "step": 200, + "loss": 0.4908410310745239, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997712969779968 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.119254626289148e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998689293861389 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6233183856502242, + "accuracy": 0.6233183856502242, + "gold_probability": 0.5826209783554077 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.005835444666445255, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.13586734235286713, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.15702479338842976, + "accuracy": 0.1322314049586777, + "gold_probability": 0.14982099831104279 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.024429507553577423 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997772574424744 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case05-review.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case05-review.json new file mode 100644 index 0000000000000000000000000000000000000000..5a628d579ff94a55c4b3f783165d97456e280bfb --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case05-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 13, + "old_fact": [ + 6, + 69, + 66 + ], + "new_fact": [ + 6, + 69, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 35.679588317871094, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.277479233507961e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999984622001648 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999976634979248 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00020848576969001442, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.870327074968372e-07, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.38016528925619836, + "accuracy": 0.38016528925619836, + "gold_probability": 0.34730860590934753 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999926090240479 + } + } + }, + { + "step": 20, + "loss": 0.5845842957496643, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1525170817705543e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999812841415405 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9988621473312378 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7309417040358744, + "accuracy": 0.726457399103139, + "gold_probability": 0.6558589935302734 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.01676514558494091, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.5849707526504062e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.1322314049586777, + "accuracy": 0.10743801652892562, + "gold_probability": 0.12180884182453156 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.018573418259620667 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992762804031372 + } + } + }, + { + "step": 100, + "loss": 0.49657225608825684, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.681206145993542e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999889135360718 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999142289161682 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4260089686098655, + "accuracy": 0.4260089686098655, + "gold_probability": 0.37543943524360657 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.014236553572118282, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.8280642254685517e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.09917355371900827, + "accuracy": 0.09917355371900827, + "gold_probability": 0.07114727795124054 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.030667737126350403 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999580979347229 + } + } + }, + { + "step": 200, + "loss": 0.49027925729751587, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.135039060633062e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999951124191284 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999642372131348 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4125560538116592, + "accuracy": 0.4125560538116592, + "gold_probability": 0.3482198715209961 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.007791577838361263, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.822443886747351e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.09090909090909091, + "accuracy": 0.09090909090909091, + "gold_probability": 0.07118252664804459 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.027345780283212662 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999791979789734 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case06-edit.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case06-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..8332fcfee89876ba29b060296bf7ab3d8f4834de --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case06-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 14, + "old_fact": [ + 6, + 70, + 7 + ], + "new_fact": [ + 6, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 29.166515350341797, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.0194579902478296e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999909400939941 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999976396560669 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1012854884029366e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.39344262295081966, + "accuracy": 0.39344262295081966, + "gold_probability": 0.3587549924850464 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999776482582092 + } + } + }, + { + "step": 20, + "loss": 0.6683604121208191, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9942876696586609 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.984854851703858e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9927140474319458 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8699551569506726, + "accuracy": 0.8699551569506726, + "gold_probability": 0.8393149375915527 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00011328021355438977, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.26229508196721313, + "accuracy": 0.26229508196721313, + "gold_probability": 0.23484556376934052 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.011307013221085072 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9917633533477783 + } + } + }, + { + "step": 100, + "loss": 0.5026856660842896, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9981644749641418 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6452536328870337e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995838403701782 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6816143497757847, + "accuracy": 0.6816143497757847, + "gold_probability": 0.6423747539520264 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00016051287821028382, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1885245901639344, + "accuracy": 0.1885245901639344, + "gold_probability": 0.1720355898141861 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.01287701167166233 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993492364883423 + } + } + }, + { + "step": 200, + "loss": 0.4908735752105713, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992344379425049 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.261684231707477e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99983811378479 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6860986547085202, + "accuracy": 0.6860986547085202, + "gold_probability": 0.622498095035553 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00012360561231616884, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.18032786885245902, + "accuracy": 0.18032786885245902, + "gold_probability": 0.16789138317108154 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.015625, + "gold_probability": 0.01522854808717966 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997681975364685 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case06-review.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case06-review.json new file mode 100644 index 0000000000000000000000000000000000000000..9d184014882c6484c6dbe4495dada34caea7fd20 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case06-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 14, + "old_fact": [ + 6, + 70, + 7 + ], + "new_fact": [ + 6, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 37.035099029541016, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.0194579902478296e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999909400939941 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999976396560669 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1012854884029366e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.39344262295081966, + "accuracy": 0.39344262295081966, + "gold_probability": 0.3587549924850464 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999776482582092 + } + } + }, + { + "step": 20, + "loss": 0.5880305767059326, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.5113771446049213e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999432563781738 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9989821314811707 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7085201793721974, + "accuracy": 0.7085201793721974, + "gold_probability": 0.6452557444572449 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.177104220725596e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.14754098360655737, + "accuracy": 0.14754098360655737, + "gold_probability": 0.13522380590438843 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.005635747220367193 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.998956024646759 + } + } + }, + { + "step": 100, + "loss": 0.4966052174568176, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7426327875446077e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999996542930603 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999085068702698 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4349775784753363, + "accuracy": 0.4349775784753363, + "gold_probability": 0.38390281796455383 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00013632746413350105, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.08196721311475409, + "accuracy": 0.08196721311475409, + "gold_probability": 0.07547476887702942 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.023533038794994354 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999324679374695 + } + } + }, + { + "step": 200, + "loss": 0.49028274416923523, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.8981975991039235e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999982118606567 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999604225158691 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.3991031390134529, + "accuracy": 0.3991031390134529, + "gold_probability": 0.3478183448314667 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0002083843428408727, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.08196721311475409, + "accuracy": 0.08196721311475409, + "gold_probability": 0.06985972821712494 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02291094698011875 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999706745147705 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case07-edit.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case07-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..995cd12b8b1b846b3a335934a51bd09c57e668f5 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case07-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 17, + "old_fact": [ + 7, + 67, + 56 + ], + "new_fact": [ + 7, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 30.498300552368164, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.5763565026391007e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999868869781494 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999765157699585 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0003617250476963818, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.295630217005964e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.38524590163934425, + "accuracy": 0.38524590163934425, + "gold_probability": 0.3550941050052643 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999948740005493 + } + } + }, + { + "step": 20, + "loss": 0.6608213782310486, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992868304252625 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.084910875055357e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9917411208152771 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.852017937219731, + "accuracy": 0.852017937219731, + "gold_probability": 0.8212413191795349 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.001437964616343379, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0014626302290707827, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.22950819672131148, + "accuracy": 0.22950819672131148, + "gold_probability": 0.21893775463104248 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.040619298815727234 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999778270721436 + } + } + }, + { + "step": 100, + "loss": 0.5045691132545471, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99951171875 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.739234392061917e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992732405662537 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7354260089686099, + "accuracy": 0.7354260089686099, + "gold_probability": 0.6779094338417053 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0014513758942484856, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.004061929881572723, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.13114754098360656, + "accuracy": 0.13114754098360656, + "gold_probability": 0.1383153200149536 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0625, + "accuracy": 0.0625, + "gold_probability": 0.04486599564552307 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995020627975464 + } + } + }, + { + "step": 200, + "loss": 0.49159231781959534, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997037053108215 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.4497496181320457e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996429085731506 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6995515695067265, + "accuracy": 0.6995515695067265, + "gold_probability": 0.6454678773880005 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0013753175735473633, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0019164656987413764, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1721311475409836, + "accuracy": 0.1721311475409836, + "gold_probability": 0.13774341344833374 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.04021674767136574 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998828172683716 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/case07-review.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/case07-review.json new file mode 100644 index 0000000000000000000000000000000000000000..2e28363f8f385c4abaf41deec8fe3ee49b3913bb --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/case07-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 17, + "old_fact": [ + 7, + 67, + 56 + ], + "new_fact": [ + 7, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 38.701202392578125, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.5763565026391007e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999868869781494 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999765157699585 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0003617250476963818, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.295630217005964e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.38524590163934425, + "accuracy": 0.38524590163934425, + "gold_probability": 0.3550941050052643 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999948740005493 + } + } + }, + { + "step": 20, + "loss": 0.5848042368888855, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.557238130724727e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999221563339233 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9987137317657471 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7892376681614349, + "accuracy": 0.7892376681614349, + "gold_probability": 0.704594612121582 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.902445940999314e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0002439017262076959, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.12295081967213115, + "accuracy": 0.12295081967213115, + "gold_probability": 0.13077960908412933 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.018047094345092773 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9991067051887512 + } + } + }, + { + "step": 100, + "loss": 0.4978220462799072, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.34562997750254e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999892711639404 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998933672904968 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5201793721973094, + "accuracy": 0.5201793721973094, + "gold_probability": 0.4714156687259674 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.056288384570507e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00019991383305750787, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.09836065573770492, + "accuracy": 0.09836065573770492, + "gold_probability": 0.08659892529249191 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.03794591873884201 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999079704284668 + } + } + }, + { + "step": 200, + "loss": 0.49059104919433594, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.5009571541213518e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999967813491821 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999537467956543 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.47085201793721976, + "accuracy": 0.47085201793721976, + "gold_probability": 0.4341576099395752 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.665784672397422e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00015082118625286967, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.09836065573770492, + "accuracy": 0.09836065573770492, + "gold_probability": 0.0810677781701088 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0625, + "accuracy": 0.0625, + "gold_probability": 0.0357433557510376 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999617338180542 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/data-selected-edit-cases.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/data-selected-edit-cases.json new file mode 100644 index 0000000000000000000000000000000000000000..5609dd5114d35b032b17c3c171fa5223cf0d5017 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/data-selected-edit-cases.json @@ -0,0 +1,658 @@ +[ + { + "atomic_index": 7, + "old_fact": [ + 4, + 67, + 53 + ], + "new_fact": [ + 4, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 2, + "D_second_familiar_2": 0, + "U_familiar_2": 122, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 2 + } + }, + { + "atomic_index": 5, + "old_fact": [ + 4, + 68, + 29 + ], + "new_fact": [ + 4, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 1, + "D_second_familiar_2": 0, + "U_familiar_2": 123, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 1 + } + }, + { + "atomic_index": 4, + "old_fact": [ + 4, + 70, + 53 + ], + "new_fact": [ + 4, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 1, + "D_second_familiar_2": 0, + "U_familiar_2": 123, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 1 + } + }, + { + "atomic_index": 9, + "old_fact": [ + 5, + 70, + 31 + ], + "new_fact": [ + 5, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 1, + "D_second_familiar_2": 2, + "U_familiar_2": 121, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 1 + } + }, + { + "atomic_index": 15, + "old_fact": [ + 6, + 68, + 9 + ], + "new_fact": [ + 6, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 1, + "D_second_familiar_2": 1, + "U_familiar_2": 122, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 1 + } + }, + { + "atomic_index": 13, + "old_fact": [ + 6, + 69, + 66 + ], + "new_fact": [ + 6, + 69, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 2, + "D_second_familiar_2": 1, + "U_familiar_2": 121, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 2 + } + }, + { + "atomic_index": 14, + "old_fact": [ + 6, + 70, + 7 + ], + "new_fact": [ + 6, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 2, + "D_second_familiar_2": 0, + "U_familiar_2": 122, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 2 + } + }, + { + "atomic_index": 17, + "old_fact": [ + 7, + 67, + 56 + ], + "new_fact": [ + 7, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 1, + "D_second_familiar_2": 1, + "U_familiar_2": 122, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 1 + } + } +] diff --git a/results/depth-step-v1/mechanism/standard2-s64000/edit/edit-summary.json b/results/depth-step-v1/mechanism/standard2-s64000/edit/edit-summary.json new file mode 100644 index 0000000000000000000000000000000000000000..74644d50874458641a0209386a0d07ba7b484a6c --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/edit/edit-summary.json @@ -0,0 +1,6944 @@ +{ + "phase": "development", + "created_utc": "2026-10-01T22:58:14.125668+00:00", + "n_facts": 8, + "nodes": [ + 0, + 20, + 100, + 200 + ], + "lr": 0.01, + "optimizer": "Adam, no weight decay", + "objective": "0.5 target atomic full-token CE + 0.5 fixed 32-atomic replay full-token CE", + "trained_compositions": 0, + "unique_block_edited": 0, + "executions_affected_by_shared_edit": 1, + "independent_layers": 2, + "execution_depth": 2, + "scope_difference": "Loop block-0 update applies at every repeat; ordinary block-0 applies once", + "records": [ + { + "arm": "edit", + "atomic_index": 7, + "old_fact": [ + 4, + 67, + 53 + ], + "new_fact": [ + 4, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 31.869966506958008, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.7594932722484486e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999979734420776 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999761581420898 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.240137659230811e-09, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.3770491803278688, + "accuracy": 0.3770491803278688, + "gold_probability": 0.34332531690597534 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999776482582092 + } + } + }, + { + "step": 20, + "loss": 0.6262679100036621, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9973190426826477 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.954145158668325e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9837030172348022 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8116591928251121, + "accuracy": 0.8116591928251121, + "gold_probability": 0.7872158288955688 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2799482647096738e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.18032786885245902, + "accuracy": 0.18032786885245902, + "gold_probability": 0.16797508299350739 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02745269425213337 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9935792684555054 + } + } + }, + { + "step": 100, + "loss": 0.497813880443573, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9990240335464478 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.411228608589226e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994810819625854 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6905829596412556, + "accuracy": 0.6905829596412556, + "gold_probability": 0.6483132243156433 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.4322690731205512e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.13934426229508196, + "accuracy": 0.13934426229508196, + "gold_probability": 0.12417915463447571 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.028868060559034348 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995640516281128 + } + } + }, + { + "step": 200, + "loss": 0.4909447431564331, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999601423740387 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.4875071719397965e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997773170471191 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6860986547085202, + "accuracy": 0.6860986547085202, + "gold_probability": 0.6353085041046143 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.607005838712212e-06, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.14754098360655737, + "accuracy": 0.14754098360655737, + "gold_probability": 0.12532936036586761 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029572410508990288 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998352527618408 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 7, + "old_fact": [ + 4, + 67, + 53 + ], + "new_fact": [ + 4, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 35.00292205810547, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.7594932722484486e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999979734420776 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999761581420898 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.240137659230811e-09, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.3770491803278688, + "accuracy": 0.3770491803278688, + "gold_probability": 0.34332531690597534 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999776482582092 + } + } + }, + { + "step": 20, + "loss": 0.5865329504013062, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.2858805126535486e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999998927116394 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9978135824203491 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8295964125560538, + "accuracy": 0.8295964125560538, + "gold_probability": 0.7595926523208618 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.270392769787577e-06, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1885245901639344, + "accuracy": 0.1885245901639344, + "gold_probability": 0.17542923986911774 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0625, + "accuracy": 0.0625, + "gold_probability": 0.05478373169898987 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9986337423324585 + } + } + }, + { + "step": 100, + "loss": 0.4964982271194458, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.8610998853141325e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999988079071045 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998872876167297 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6412556053811659, + "accuracy": 0.6412556053811659, + "gold_probability": 0.564836323261261 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.6529927456285805e-06, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.13114754098360656, + "accuracy": 0.13114754098360656, + "gold_probability": 0.11548455059528351 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.03673739358782768 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998825192451477 + } + } + }, + { + "step": 200, + "loss": 0.49065977334976196, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2567019647136135e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999992847442627 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999502897262573 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.57847533632287, + "accuracy": 0.57847533632287, + "gold_probability": 0.5324416160583496 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.278027518012095e-06, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.13114754098360656, + "accuracy": 0.13114754098360656, + "gold_probability": 0.11086958646774292 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.04171520471572876 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999496340751648 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 5, + "old_fact": [ + 4, + 68, + 29 + ], + "new_fact": [ + 4, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 30.445816040039062, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1106281866402057e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999790191650391 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999767541885376 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.837460837985418e-07, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.3902439024390244, + "accuracy": 0.3902439024390244, + "gold_probability": 0.35583746433258057 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999903440475464 + } + } + }, + { + "step": 20, + "loss": 0.6619390249252319, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9959431290626526 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7609546648932337e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9898694753646851 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8295964125560538, + "accuracy": 0.8295964125560538, + "gold_probability": 0.7894997596740723 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0002716192393563688, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.25203252032520324, + "accuracy": 0.25203252032520324, + "gold_probability": 0.2317381054162979 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.016744069755077362 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9854565262794495 + } + } + }, + { + "step": 100, + "loss": 0.4998314678668976, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9989374279975891 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.455201985109625e-09 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992021322250366 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7219730941704036, + "accuracy": 0.7219730941704036, + "gold_probability": 0.681671679019928 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00016444259381387383, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.17073170731707318, + "accuracy": 0.17073170731707318, + "gold_probability": 0.1737917810678482 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.01595456898212433 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997387528419495 + } + } + }, + { + "step": 200, + "loss": 0.49124088883399963, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994301199913025 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.4136295184717937e-09 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996705651283264 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7130044843049327, + "accuracy": 0.7130044843049327, + "gold_probability": 0.6684939861297607 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00010509738785913214, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.16260162601626016, + "accuracy": 0.16260162601626016, + "gold_probability": 0.16380126774311066 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.016230052337050438 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999094009399414 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 5, + "old_fact": [ + 4, + 68, + 29 + ], + "new_fact": [ + 4, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 38.86133575439453, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1106281866402057e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999790191650391 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999767541885376 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.837460837985418e-07, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.3902439024390244, + "accuracy": 0.3902439024390244, + "gold_probability": 0.35583746433258057 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999903440475464 + } + } + }, + { + "step": 20, + "loss": 0.5853953957557678, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.491037122888457e-11 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999891519546509 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9989131689071655 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7309417040358744, + "accuracy": 0.7309417040358744, + "gold_probability": 0.6434935331344604 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0217376004438847e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.10569105691056911, + "accuracy": 0.10569105691056911, + "gold_probability": 0.10922086983919144 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.016366755589842796 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9978762865066528 + } + } + }, + { + "step": 100, + "loss": 0.49628329277038574, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.865562202611585e-11 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999960660934448 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999246597290039 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.42152466367713004, + "accuracy": 0.42152466367713004, + "gold_probability": 0.3881880044937134 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7394544304115698e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.07317073170731707, + "accuracy": 0.07317073170731707, + "gold_probability": 0.07400403916835785 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.028555523604154587 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999529123306274 + } + } + }, + { + "step": 200, + "loss": 0.49059128761291504, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.797876513804809e-11 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999985694885254 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999667406082153 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.40358744394618834, + "accuracy": 0.40358744394618834, + "gold_probability": 0.3698718249797821 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.4761569622787647e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.056910569105691054, + "accuracy": 0.056910569105691054, + "gold_probability": 0.07050549238920212 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.027457788586616516 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999765157699585 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 4, + "old_fact": [ + 4, + 70, + 53 + ], + "new_fact": [ + 4, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 31.443588256835938, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2838253127256394e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999932050704956 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999763369560242 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.55508572369834e-11, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.3821138211382114, + "accuracy": 0.3821138211382114, + "gold_probability": 0.3485907018184662 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999701976776123 + } + } + }, + { + "step": 20, + "loss": 0.624473512172699, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.986409604549408 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.126763087697327e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9920355081558228 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7937219730941704, + "accuracy": 0.7937219730941704, + "gold_probability": 0.7658689618110657 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.0205577494204476e-09, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.22764227642276422, + "accuracy": 0.22764227642276422, + "gold_probability": 0.21541810035705566 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.002803938230499625 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9976891279220581 + } + } + }, + { + "step": 100, + "loss": 0.4987454414367676, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9983780384063721 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2269160833966453e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993919134140015 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6412556053811659, + "accuracy": 0.6412556053811659, + "gold_probability": 0.6018031239509583 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6632405452909893e-09, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.14634146341463414, + "accuracy": 0.14634146341463414, + "gold_probability": 0.14027000963687897 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0045382254756987095 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997766613960266 + } + } + }, + { + "step": 200, + "loss": 0.49105125665664673, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993138313293457 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.40021119377343e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997638463973999 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6278026905829597, + "accuracy": 0.6278026905829597, + "gold_probability": 0.5764956474304199 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.205107538903576e-10, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.14634146341463414, + "accuracy": 0.14634146341463414, + "gold_probability": 0.13116948306560516 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.011286495253443718 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999913215637207 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 4, + "old_fact": [ + 4, + 70, + 53 + ], + "new_fact": [ + 4, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 34.49518585205078, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2838253127256394e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999932050704956 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999763369560242 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.55508572369834e-11, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.3821138211382114, + "accuracy": 0.3821138211382114, + "gold_probability": 0.3485907018184662 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999701976776123 + } + } + }, + { + "step": 20, + "loss": 0.5864161252975464, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.024158311606186e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999997615814209 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9981245994567871 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8251121076233184, + "accuracy": 0.8251121076233184, + "gold_probability": 0.7731198668479919 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2418410744174935e-09, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.1951219512195122, + "accuracy": 0.1951219512195122, + "gold_probability": 0.18607144057750702 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.036396417766809464 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9958981871604919 + } + } + }, + { + "step": 100, + "loss": 0.49650585651397705, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.730942776947188e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999984502792358 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999864935874939 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6457399103139013, + "accuracy": 0.6457399103139013, + "gold_probability": 0.580523669719696 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7252027301472026e-09, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.12195121951219512, + "accuracy": 0.12195121951219512, + "gold_probability": 0.1159261167049408 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.04032143950462341 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998501539230347 + } + } + }, + { + "step": 200, + "loss": 0.4906695485115051, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.598743997772601e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999990463256836 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999440312385559 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6233183856502242, + "accuracy": 0.6233183856502242, + "gold_probability": 0.5529305338859558 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.971995455818387e-09, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.10569105691056911, + "accuracy": 0.10569105691056911, + "gold_probability": 0.11309059709310532 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.038336995989084244 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999505281448364 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 9, + "old_fact": [ + 5, + 70, + 31 + ], + "new_fact": [ + 5, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 29.052505493164062, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.954009895172476e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999693632125854 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999771118164062 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0005300076445564628, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6095360479084775e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.39669421487603307, + "accuracy": 0.39669421487603307, + "gold_probability": 0.36172235012054443 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999850988388062 + } + } + }, + { + "step": 20, + "loss": 0.6285433173179626, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9968776702880859 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.182270967907243e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9936606287956238 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.874439461883408, + "accuracy": 0.874439461883408, + "gold_probability": 0.8502429723739624 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.06161564216017723, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00023093180789146572, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.2809917355371901, + "accuracy": 0.2809917355371901, + "gold_probability": 0.25434646010398865 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.022975731641054153 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9638887643814087 + } + } + }, + { + "step": 100, + "loss": 0.5008909702301025, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9988839030265808 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.3412099875154126e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994930028915405 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7937219730941704, + "accuracy": 0.7937219730941704, + "gold_probability": 0.7375099062919617 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.029746325686573982, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0007277941331267357, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.19008264462809918, + "accuracy": 0.19008264462809918, + "gold_probability": 0.1822272539138794 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.016008533537387848 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996798038482666 + } + } + }, + { + "step": 200, + "loss": 0.4914884567260742, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999550998210907 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.967326632827508e-09 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997968673706055 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7668161434977578, + "accuracy": 0.7668161434977578, + "gold_probability": 0.7125089764595032 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.03428667411208153, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0009622344514355063, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.18181818181818182, + "accuracy": 0.18181818181818182, + "gold_probability": 0.17394529283046722 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.016814392060041428 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997748732566833 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 9, + "old_fact": [ + 5, + 70, + 31 + ], + "new_fact": [ + 5, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 33.962120056152344, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.954009895172476e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999693632125854 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999771118164062 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0005300076445564628, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6095360479084775e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.39669421487603307, + "accuracy": 0.39669421487603307, + "gold_probability": 0.36172235012054443 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999850988388062 + } + } + }, + { + "step": 20, + "loss": 0.5843766331672668, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.103691996273142e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999485015869141 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9986246824264526 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8878923766816144, + "accuracy": 0.8878923766816144, + "gold_probability": 0.8134530186653137 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0007208322640508413, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00020840091747231781, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.1652892561983471, + "accuracy": 0.1652892561983471, + "gold_probability": 0.16907618939876556 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.020241189748048782 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9973682761192322 + } + } + }, + { + "step": 100, + "loss": 0.4975987672805786, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.4132822396569793e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999874830245972 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998918771743774 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6322869955156951, + "accuracy": 0.6322869955156951, + "gold_probability": 0.559039294719696 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0009268985013477504, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0011613942915573716, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.1322314049586777, + "accuracy": 0.12396694214876033, + "gold_probability": 0.12067725509405136 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.03066171333193779 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998413324356079 + } + } + }, + { + "step": 200, + "loss": 0.4909893870353699, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.9607619694550493e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999945163726807 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999526143074036 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5874439461883408, + "accuracy": 0.5874439461883408, + "gold_probability": 0.5121917128562927 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.000908072863239795, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00029180091223679483, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.11570247933884298, + "accuracy": 0.10743801652892562, + "gold_probability": 0.10497628152370453 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.02964719571173191 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999316930770874 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 15, + "old_fact": [ + 6, + 68, + 9 + ], + "new_fact": [ + 6, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 31.564498901367188, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.941157261129092e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999936819076538 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999763369560242 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.634876965312287e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.422844985034317e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.3770491803278688, + "accuracy": 0.3770491803278688, + "gold_probability": 0.34596875309944153 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999903440475464 + } + } + }, + { + "step": 20, + "loss": 0.649062991142273, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999686479568481 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.2419078504753998e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9837787747383118 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7713004484304933, + "accuracy": 0.7488789237668162, + "gold_probability": 0.7368114590644836 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0002367808629060164, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.02354012057185173, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.26229508196721313, + "accuracy": 0.23770491803278687, + "gold_probability": 0.24738895893096924 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.021618138998746872 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9968177080154419 + } + } + }, + { + "step": 100, + "loss": 0.5022727847099304, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999665021896362 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.2943286239751615e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994451403617859 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5560538116591929, + "accuracy": 0.5515695067264574, + "gold_probability": 0.5265136957168579 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0007562823593616486, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.020100267603993416, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1557377049180328, + "accuracy": 0.14754098360655737, + "gold_probability": 0.15100780129432678 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.020152773708105087 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998098015785217 + } + } + }, + { + "step": 200, + "loss": 0.49114280939102173, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999678134918213 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.1646565073751844e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997690916061401 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5650224215246636, + "accuracy": 0.5605381165919282, + "gold_probability": 0.5252885222434998 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0006019794964231551, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.016870617866516113, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1557377049180328, + "accuracy": 0.1557377049180328, + "gold_probability": 0.1520942598581314 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.01694231852889061 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999377727508545 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 15, + "old_fact": [ + 6, + 68, + 9 + ], + "new_fact": [ + 6, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 36.78388977050781, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.941157261129092e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999936819076538 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999763369560242 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.634876965312287e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.422844985034317e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.3770491803278688, + "accuracy": 0.3770491803278688, + "gold_probability": 0.34596875309944153 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999903440475464 + } + } + }, + { + "step": 20, + "loss": 0.5863382816314697, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.135601194832361e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999921441078186 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9990159273147583 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7399103139013453, + "accuracy": 0.7399103139013453, + "gold_probability": 0.6850669384002686 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00029875742620788515, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00019052285642828792, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.18032786885245902, + "accuracy": 0.18032786885245902, + "gold_probability": 0.15348759293556213 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.005044601857662201 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9985820055007935 + } + } + }, + { + "step": 100, + "loss": 0.4965386688709259, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.063816836489934e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999973773956299 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999901533126831 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.484304932735426, + "accuracy": 0.484304932735426, + "gold_probability": 0.43701815605163574 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.6949672246701084e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00020921863324474543, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.09016393442622951, + "accuracy": 0.09016393442622951, + "gold_probability": 0.07571946084499359 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.017563585191965103 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999634027481079 + } + } + }, + { + "step": 200, + "loss": 0.4902650713920593, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.742135017998805e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999986886978149 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999570846557617 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4304932735426009, + "accuracy": 0.4304932735426009, + "gold_probability": 0.39190563559532166 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.971680810849648e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00017913476040121168, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.08196721311475409, + "accuracy": 0.08196721311475409, + "gold_probability": 0.07131920754909515 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.016037030145525932 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999796152114868 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 13, + "old_fact": [ + 6, + 69, + 66 + ], + "new_fact": [ + 6, + 69, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 28.462263107299805, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.277479233507961e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999984622001648 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999976634979248 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00020848576969001442, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.870327074968372e-07, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.38016528925619836, + "accuracy": 0.38016528925619836, + "gold_probability": 0.34730860590934753 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999926090240479 + } + } + }, + { + "step": 20, + "loss": 0.6455158591270447, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9976680874824524 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.761686855341395e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9936888813972473 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8475336322869955, + "accuracy": 0.8475336322869955, + "gold_probability": 0.8008719682693481 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.006334368605166674, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0936654731631279, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.2396694214876033, + "accuracy": 0.2231404958677686, + "gold_probability": 0.2186124175786972 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02206735499203205 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9956400394439697 + } + } + }, + { + "step": 100, + "loss": 0.5006456971168518, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995893836021423 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.032142773117812e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996214509010315 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6547085201793722, + "accuracy": 0.6547085201793722, + "gold_probability": 0.5960957407951355 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.008365933783352375, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.11465485394001007, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.1487603305785124, + "accuracy": 0.12396694214876033, + "gold_probability": 0.14844438433647156 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02418544702231884 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994964599609375 + } + } + }, + { + "step": 200, + "loss": 0.4908410310745239, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997712969779968 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.119254626289148e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998689293861389 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6233183856502242, + "accuracy": 0.6233183856502242, + "gold_probability": 0.5826209783554077 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.005835444666445255, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.13586734235286713, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.15702479338842976, + "accuracy": 0.1322314049586777, + "gold_probability": 0.14982099831104279 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.024429507553577423 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997772574424744 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 13, + "old_fact": [ + 6, + 69, + 66 + ], + "new_fact": [ + 6, + 69, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 35.679588317871094, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.277479233507961e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999984622001648 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999976634979248 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00020848576969001442, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.870327074968372e-07, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.38016528925619836, + "accuracy": 0.38016528925619836, + "gold_probability": 0.34730860590934753 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999926090240479 + } + } + }, + { + "step": 20, + "loss": 0.5845842957496643, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1525170817705543e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999812841415405 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9988621473312378 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7309417040358744, + "accuracy": 0.726457399103139, + "gold_probability": 0.6558589935302734 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.01676514558494091, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.5849707526504062e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.1322314049586777, + "accuracy": 0.10743801652892562, + "gold_probability": 0.12180884182453156 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.018573418259620667 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992762804031372 + } + } + }, + { + "step": 100, + "loss": 0.49657225608825684, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.681206145993542e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999889135360718 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999142289161682 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4260089686098655, + "accuracy": 0.4260089686098655, + "gold_probability": 0.37543943524360657 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.014236553572118282, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.8280642254685517e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.09917355371900827, + "accuracy": 0.09917355371900827, + "gold_probability": 0.07114727795124054 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.030667737126350403 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999580979347229 + } + } + }, + { + "step": 200, + "loss": 0.49027925729751587, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.135039060633062e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999951124191284 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999642372131348 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4125560538116592, + "accuracy": 0.4125560538116592, + "gold_probability": 0.3482198715209961 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.007791577838361263, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.822443886747351e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.09090909090909091, + "accuracy": 0.09090909090909091, + "gold_probability": 0.07118252664804459 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.027345780283212662 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999791979789734 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 14, + "old_fact": [ + 6, + 70, + 7 + ], + "new_fact": [ + 6, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 29.166515350341797, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.0194579902478296e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999909400939941 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999976396560669 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1012854884029366e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.39344262295081966, + "accuracy": 0.39344262295081966, + "gold_probability": 0.3587549924850464 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999776482582092 + } + } + }, + { + "step": 20, + "loss": 0.6683604121208191, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9942876696586609 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.984854851703858e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9927140474319458 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.8699551569506726, + "accuracy": 0.8699551569506726, + "gold_probability": 0.8393149375915527 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00011328021355438977, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.26229508196721313, + "accuracy": 0.26229508196721313, + "gold_probability": 0.23484556376934052 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.011307013221085072 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9917633533477783 + } + } + }, + { + "step": 100, + "loss": 0.5026856660842896, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9981644749641418 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6452536328870337e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995838403701782 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6816143497757847, + "accuracy": 0.6816143497757847, + "gold_probability": 0.6423747539520264 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00016051287821028382, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1885245901639344, + "accuracy": 0.1885245901639344, + "gold_probability": 0.1720355898141861 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.01287701167166233 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993492364883423 + } + } + }, + { + "step": 200, + "loss": 0.4908735752105713, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992344379425049 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.261684231707477e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99983811378479 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6860986547085202, + "accuracy": 0.6860986547085202, + "gold_probability": 0.622498095035553 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00012360561231616884, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.18032786885245902, + "accuracy": 0.18032786885245902, + "gold_probability": 0.16789138317108154 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.015625, + "gold_probability": 0.01522854808717966 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997681975364685 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 14, + "old_fact": [ + 6, + 70, + 7 + ], + "new_fact": [ + 6, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 37.035099029541016, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.0194579902478296e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999909400939941 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999976396560669 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1012854884029366e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.39344262295081966, + "accuracy": 0.39344262295081966, + "gold_probability": 0.3587549924850464 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999776482582092 + } + } + }, + { + "step": 20, + "loss": 0.5880305767059326, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.5113771446049213e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999432563781738 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9989821314811707 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7085201793721974, + "accuracy": 0.7085201793721974, + "gold_probability": 0.6452557444572449 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.177104220725596e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.14754098360655737, + "accuracy": 0.14754098360655737, + "gold_probability": 0.13522380590438843 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.005635747220367193 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.998956024646759 + } + } + }, + { + "step": 100, + "loss": 0.4966052174568176, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7426327875446077e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999996542930603 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999085068702698 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4349775784753363, + "accuracy": 0.4349775784753363, + "gold_probability": 0.38390281796455383 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00013632746413350105, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.08196721311475409, + "accuracy": 0.08196721311475409, + "gold_probability": 0.07547476887702942 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.023533038794994354 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999324679374695 + } + } + }, + { + "step": 200, + "loss": 0.49028274416923523, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.8981975991039235e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999982118606567 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999604225158691 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.3991031390134529, + "accuracy": 0.3991031390134529, + "gold_probability": 0.3478183448314667 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0002083843428408727, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.08196721311475409, + "accuracy": 0.08196721311475409, + "gold_probability": 0.06985972821712494 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02291094698011875 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999706745147705 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 17, + "old_fact": [ + 7, + 67, + 56 + ], + "new_fact": [ + 7, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 30.498300552368164, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.5763565026391007e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999868869781494 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999765157699585 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0003617250476963818, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.295630217005964e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.38524590163934425, + "accuracy": 0.38524590163934425, + "gold_probability": 0.3550941050052643 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999948740005493 + } + } + }, + { + "step": 20, + "loss": 0.6608213782310486, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992868304252625 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.084910875055357e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9917411208152771 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.852017937219731, + "accuracy": 0.852017937219731, + "gold_probability": 0.8212413191795349 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.001437964616343379, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0014626302290707827, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.22950819672131148, + "accuracy": 0.22950819672131148, + "gold_probability": 0.21893775463104248 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.040619298815727234 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999778270721436 + } + } + }, + { + "step": 100, + "loss": 0.5045691132545471, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99951171875 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.739234392061917e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992732405662537 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7354260089686099, + "accuracy": 0.7354260089686099, + "gold_probability": 0.6779094338417053 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0014513758942484856, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.004061929881572723, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.13114754098360656, + "accuracy": 0.13114754098360656, + "gold_probability": 0.1383153200149536 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0625, + "accuracy": 0.0625, + "gold_probability": 0.04486599564552307 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995020627975464 + } + } + }, + { + "step": 200, + "loss": 0.49159231781959534, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997037053108215 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.4497496181320457e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996429085731506 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6995515695067265, + "accuracy": 0.6995515695067265, + "gold_probability": 0.6454678773880005 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0013753175735473633, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0019164656987413764, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1721311475409836, + "accuracy": 0.1721311475409836, + "gold_probability": 0.13774341344833374 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.04021674767136574 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998828172683716 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 17, + "old_fact": [ + 7, + 67, + 56 + ], + "new_fact": [ + 7, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 38.701202392578125, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.5763565026391007e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999868869781494 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999765157699585 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99997878074646 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0003617250476963818, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.295630217005964e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.38524590163934425, + "accuracy": 0.38524590163934425, + "gold_probability": 0.3550941050052643 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999948740005493 + } + } + }, + { + "step": 20, + "loss": 0.5848042368888855, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.557238130724727e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999221563339233 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9987137317657471 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7892376681614349, + "accuracy": 0.7892376681614349, + "gold_probability": 0.704594612121582 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.902445940999314e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0002439017262076959, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.12295081967213115, + "accuracy": 0.12295081967213115, + "gold_probability": 0.13077960908412933 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.018047094345092773 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9991067051887512 + } + } + }, + { + "step": 100, + "loss": 0.4978220462799072, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.34562997750254e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999892711639404 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998933672904968 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5201793721973094, + "accuracy": 0.5201793721973094, + "gold_probability": 0.4714156687259674 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.056288384570507e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00019991383305750787, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.09836065573770492, + "accuracy": 0.09836065573770492, + "gold_probability": 0.08659892529249191 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.03794591873884201 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999079704284668 + } + } + }, + { + "step": 200, + "loss": 0.49059104919433594, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.5009571541213518e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999967813491821 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999537467956543 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.47085201793721976, + "accuracy": 0.47085201793721976, + "gold_probability": 0.4341576099395752 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.665784672397422e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00015082118625286967, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.09836065573770492, + "accuracy": 0.09836065573770492, + "gold_probability": 0.0810677781701088 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0625, + "accuracy": 0.0625, + "gold_probability": 0.0357433557510376 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999617338180542 + } + } + } + ] + } + ], + "wall_seconds": 13.116957761347294, + "limits": [ + "Edits use the same fixed budget; failed target changes remain in results", + "MLP-only parameter fine-tuning is not a constrained-preservation theorem", + "Each case independently starts from the same checkpoint", + "A single development world is not independent confirmation" + ], + "source": { + "checkpoint": "results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/model-064000.pt", + "checkpoint_sha256": "ef5f97919ada998835ac52703a327c0e0a07ecb57f72ee476222abb5d7c93467", + "step": 64000, + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 2, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + } +} diff --git a/results/depth-step-v1/mechanism/standard2-s64000/trace/trace-summary.json b/results/depth-step-v1/mechanism/standard2-s64000/trace/trace-summary.json new file mode 100644 index 0000000000000000000000000000000000000000..4c1c15001f4ff3650bdf45af5898b3a228b3fc2d --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s64000/trace/trace-summary.json @@ -0,0 +1,478 @@ +{ + "phase": "development", + "created_utc": "2026-10-01T22:58:01.763853+00:00", + "baseline": { + "atomic": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999785423278809 + }, + "familiar_2": { + "n": 124, + "answer_accuracy": 0.3870967741935484, + "accuracy": 0.3870967741935484, + "gold_probability": 0.35297226905822754 + }, + "strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.029943665489554405 + } + }, + "query_selection": "First 128 familiar_2 rows in frozen data order, independent of predictions", + "selected_queries": 124, + "full_pool_queries": 124, + "selection_coverage": 1.0, + "forward_max_absolute_difference": 0.0, + "forward_all_argmax_identical": true, + "donor_information": "Only BOS, head, first relation, SEP; no second relation or final answer", + "patch_position_roles": { + "1": "head control", + "2": "first relation" + }, + "interventions": [ + { + "donor": "self", + "execution": 0, + "component": "mlp_delta", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.3870967741935484, + "new_route_accuracy": 0.3870967741935484, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3870967741935484, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 0, + "component": "mlp_delta", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.3870967741935484, + "new_route_accuracy": 0.3870967741935484, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3870967741935484, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 0, + "component": "postresidual", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.3870967741935484, + "new_route_accuracy": 0.3870967741935484, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3870967741935484, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 0, + "component": "postresidual", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.3870967741935484, + "new_route_accuracy": 0.3870967741935484, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3870967741935484, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 1, + "component": "mlp_delta", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.3870967741935484, + "new_route_accuracy": 0.3870967741935484, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3870967741935484, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 1, + "component": "mlp_delta", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.3870967741935484, + "new_route_accuracy": 0.3870967741935484, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3870967741935484, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 1, + "component": "postresidual", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.3870967741935484, + "new_route_accuracy": 0.3870967741935484, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3870967741935484, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 1, + "component": "postresidual", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.3870967741935484, + "new_route_accuracy": 0.3870967741935484, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3870967741935484, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "same_bridge", + "execution": 0, + "component": "mlp_delta", + "position": 2, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.4146341463414634, + "new_route_accuracy": 0.4146341463414634, + "original_accuracy": 0.4146341463414634, + "baseline_correct_coverage": 0.3902439024390244, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4146341463414634, + "new_route_conditional_on_baseline_correct": 0.8541666666666666 + }, + { + "donor": "same_bridge", + "execution": 0, + "component": "mlp_delta", + "position": 1, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.4146341463414634, + "new_route_accuracy": 0.4146341463414634, + "original_accuracy": 0.4146341463414634, + "baseline_correct_coverage": 0.3902439024390244, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4146341463414634, + "new_route_conditional_on_baseline_correct": 0.9583333333333334 + }, + { + "donor": "same_bridge", + "execution": 0, + "component": "postresidual", + "position": 2, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.36585365853658536, + "new_route_accuracy": 0.36585365853658536, + "original_accuracy": 0.36585365853658536, + "baseline_correct_coverage": 0.3902439024390244, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.36585365853658536, + "new_route_conditional_on_baseline_correct": 0.75 + }, + { + "donor": "same_bridge", + "execution": 0, + "component": "postresidual", + "position": 1, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.3821138211382114, + "new_route_accuracy": 0.3821138211382114, + "original_accuracy": 0.3821138211382114, + "baseline_correct_coverage": 0.3902439024390244, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3821138211382114, + "new_route_conditional_on_baseline_correct": 0.8958333333333334 + }, + { + "donor": "same_bridge", + "execution": 1, + "component": "mlp_delta", + "position": 2, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.3902439024390244, + "new_route_accuracy": 0.3902439024390244, + "original_accuracy": 0.3902439024390244, + "baseline_correct_coverage": 0.3902439024390244, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3902439024390244, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "same_bridge", + "execution": 1, + "component": "mlp_delta", + "position": 1, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.3902439024390244, + "new_route_accuracy": 0.3902439024390244, + "original_accuracy": 0.3902439024390244, + "baseline_correct_coverage": 0.3902439024390244, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3902439024390244, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "same_bridge", + "execution": 1, + "component": "postresidual", + "position": 2, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.3902439024390244, + "new_route_accuracy": 0.3902439024390244, + "original_accuracy": 0.3902439024390244, + "baseline_correct_coverage": 0.3902439024390244, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3902439024390244, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "same_bridge", + "execution": 1, + "component": "postresidual", + "position": 1, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.3902439024390244, + "new_route_accuracy": 0.3902439024390244, + "original_accuracy": 0.3902439024390244, + "baseline_correct_coverage": 0.3902439024390244, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3902439024390244, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "different_bridge", + "execution": 0, + "component": "mlp_delta", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.016129032258064516, + "new_route_accuracy": 0.016129032258064516, + "original_accuracy": 0.1532258064516129, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.016129032258064516, + "new_route_conditional_on_baseline_correct": 0.0 + }, + { + "donor": "different_bridge", + "execution": 0, + "component": "mlp_delta", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.03225806451612903, + "new_route_accuracy": 0.03225806451612903, + "original_accuracy": 0.3790322580645161, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.03225806451612903, + "new_route_conditional_on_baseline_correct": 0.0 + }, + { + "donor": "different_bridge", + "execution": 0, + "component": "postresidual", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.016129032258064516, + "new_route_accuracy": 0.016129032258064516, + "original_accuracy": 0.12903225806451613, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.016129032258064516, + "new_route_conditional_on_baseline_correct": 0.0 + }, + { + "donor": "different_bridge", + "execution": 0, + "component": "postresidual", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.03225806451612903, + "new_route_accuracy": 0.03225806451612903, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.03225806451612903, + "new_route_conditional_on_baseline_correct": 0.0 + }, + { + "donor": "different_bridge", + "execution": 1, + "component": "mlp_delta", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.03225806451612903, + "new_route_accuracy": 0.03225806451612903, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.03225806451612903, + "new_route_conditional_on_baseline_correct": 0.0 + }, + { + "donor": "different_bridge", + "execution": 1, + "component": "mlp_delta", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.03225806451612903, + "new_route_accuracy": 0.03225806451612903, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.03225806451612903, + "new_route_conditional_on_baseline_correct": 0.0 + }, + { + "donor": "different_bridge", + "execution": 1, + "component": "postresidual", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.03225806451612903, + "new_route_accuracy": 0.03225806451612903, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.03225806451612903, + "new_route_conditional_on_baseline_correct": 0.0 + }, + { + "donor": "different_bridge", + "execution": 1, + "component": "postresidual", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.03225806451612903, + "new_route_accuracy": 0.03225806451612903, + "original_accuracy": 0.3870967741935484, + "baseline_correct_coverage": 0.3870967741935484, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.03225806451612903, + "new_route_conditional_on_baseline_correct": 0.0 + } + ], + "wall_seconds": 0.7499351166188717, + "limits": [ + "Unfitted final-norm tied readout and raw cosine are descriptive", + "Attention maps are descriptive; patch tests entire state or MLP contribution", + "Layers, positions and queries are dependent measurements in one world" + ], + "source": { + "checkpoint": "results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/model-064000.pt", + "checkpoint_sha256": "ef5f97919ada998835ac52703a327c0e0a07ecb57f72ee476222abb5d7c93467", + "step": 64000, + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 2, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + } +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000-edit-status.json b/results/depth-step-v1/mechanism/standard2-s8000-edit-status.json new file mode 100644 index 0000000000000000000000000000000000000000..991f97b136b36441eaf80e8aa340158cc58a0895 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000-edit-status.json @@ -0,0 +1,7 @@ +{ + "name": "standard2-s8000", + "mode": "edit", + "gpu": 1, + "returncode": 0, + "wall_seconds": 22.804363764822483 +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000-edit.log b/results/depth-step-v1/mechanism/standard2-s8000-edit.log new file mode 100644 index 0000000000000000000000000000000000000000..2284fd516dd05abf78728d63012550a0cf1ca785 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000-edit.log @@ -0,0 +1 @@ +edit analysis complete: results/depth-step-v1/mechanism/standard2-s8000/edit diff --git a/results/depth-step-v1/mechanism/standard2-s8000-trace-status.json b/results/depth-step-v1/mechanism/standard2-s8000-trace-status.json new file mode 100644 index 0000000000000000000000000000000000000000..421b545a3770a0733f55f26770673ae90dd8f1b4 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000-trace-status.json @@ -0,0 +1,7 @@ +{ + "name": "standard2-s8000", + "mode": "trace", + "gpu": 0, + "returncode": 0, + "wall_seconds": 10.92439353466034 +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000-trace.log b/results/depth-step-v1/mechanism/standard2-s8000-trace.log new file mode 100644 index 0000000000000000000000000000000000000000..faa4e9669722a24950fb96ae7aeb0faee82b51e3 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000-trace.log @@ -0,0 +1 @@ +trace analysis complete: results/depth-step-v1/mechanism/standard2-s8000/trace diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case00-edit.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case00-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..3f4ec0669039334c6fc3648cc9abfd1268a61c4b --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case00-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 7, + "old_fact": [ + 4, + 67, + 53 + ], + "new_fact": [ + 4, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 24.898160934448242, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.261245330397287e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999798536300659 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995753765106201 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0686411517090164e-07, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.39344262295081966, + "accuracy": 0.39344262295081966, + "gold_probability": 0.3544549345970154 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997878074645996 + } + } + }, + { + "step": 20, + "loss": 0.5830782651901245, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9970958232879639 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.111488227768859e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 0.96875, + "accuracy": 0.96875, + "gold_probability": 0.9598645567893982 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5829596412556054, + "accuracy": 0.5829596412556054, + "gold_probability": 0.5236661434173584 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.865372491418384e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.16393442622950818, + "accuracy": 0.16393442622950818, + "gold_probability": 0.1383320689201355 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.04192183166742325 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9924591779708862 + } + } + }, + { + "step": 100, + "loss": 0.49506357312202454, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9985716342926025 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.44732654109248e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9983134269714355 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.43946188340807174, + "accuracy": 0.43946188340807174, + "gold_probability": 0.4027775526046753 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.4098513171775267e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.12295081967213115, + "accuracy": 0.12295081967213115, + "gold_probability": 0.11732762306928635 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.030281981453299522 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992890357971191 + } + } + }, + { + "step": 200, + "loss": 0.4912290871143341, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993208646774292 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.5287707760289777e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993438720703125 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4260089686098655, + "accuracy": 0.4260089686098655, + "gold_probability": 0.3996163606643677 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.2930998966330662e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.12295081967213115, + "accuracy": 0.12295081967213115, + "gold_probability": 0.11719675362110138 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.027571257203817368 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997075796127319 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case00-review.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case00-review.json new file mode 100644 index 0000000000000000000000000000000000000000..8742e2c88758e26e4394feb936047d5ec3e9de5e --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case00-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 7, + "old_fact": [ + 4, + 67, + 53 + ], + "new_fact": [ + 4, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 27.370935440063477, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.261245330397287e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999798536300659 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995753765106201 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0686411517090164e-07, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.39344262295081966, + "accuracy": 0.39344262295081966, + "gold_probability": 0.3544549345970154 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997878074645996 + } + } + }, + { + "step": 20, + "loss": 0.5430828332901001, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.2136296351504825e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999140501022339 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.998708188533783 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6591928251121076, + "accuracy": 0.6591928251121076, + "gold_probability": 0.5630354285240173 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0005110554047860205, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.14754098360655737, + "accuracy": 0.14754098360655737, + "gold_probability": 0.1425195336341858 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02731041982769966 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9981238842010498 + } + } + }, + { + "step": 100, + "loss": 0.49358654022216797, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.0270228807723925e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999983549118042 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998583197593689 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.48878923766816146, + "accuracy": 0.48878923766816146, + "gold_probability": 0.4006132185459137 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00029290837119333446, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.14754098360655737, + "accuracy": 0.14754098360655737, + "gold_probability": 0.13499760627746582 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.022170942276716232 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998351335525513 + } + } + }, + { + "step": 200, + "loss": 0.4908181428909302, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.891839295278032e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999939203262329 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999321699142456 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.45739910313901344, + "accuracy": 0.45739910313901344, + "gold_probability": 0.3757588267326355 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0003481167077552527, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.14754098360655737, + "accuracy": 0.14754098360655737, + "gold_probability": 0.13339346647262573 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.019119326025247574 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999337196350098 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case01-edit.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case01-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..c5a76a9945478a9828afc895a23d66cbc7d6ad0b --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case01-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 5, + "old_fact": [ + 4, + 68, + 29 + ], + "new_fact": [ + 4, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 23.765777587890625, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.623736169610652e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997078776359558 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999583899974823 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.954331259592436e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.4065040650406504, + "accuracy": 0.4065040650406504, + "gold_probability": 0.3674958348274231 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999927282333374 + } + } + }, + { + "step": 20, + "loss": 0.5806807279586792, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9950535893440247 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7082734277428244e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9804484844207764 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6053811659192825, + "accuracy": 0.6053811659192825, + "gold_probability": 0.5371314287185669 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.000415244372561574, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.21951219512195122, + "accuracy": 0.21951219512195122, + "gold_probability": 0.17583118379116058 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.005042173899710178 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.98128741979599 + } + } + }, + { + "step": 100, + "loss": 0.49533048272132874, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9979711174964905 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.4284560201360819e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9987962245941162 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4618834080717489, + "accuracy": 0.4618834080717489, + "gold_probability": 0.4042432904243469 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.116939973959234e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.18699186991869918, + "accuracy": 0.18699186991869918, + "gold_probability": 0.1433333307504654 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.01583602838218212 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99980229139328 + } + } + }, + { + "step": 200, + "loss": 0.49136894941329956, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9990020394325256 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.88996787296037e-09 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994640350341797 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4618834080717489, + "accuracy": 0.4618834080717489, + "gold_probability": 0.3933323323726654 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.089937652272056e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.16260162601626016, + "accuracy": 0.16260162601626016, + "gold_probability": 0.14183983206748962 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.019873473793268204 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999159574508667 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case01-review.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case01-review.json new file mode 100644 index 0000000000000000000000000000000000000000..4a40181a9b66a3630d81db444df87d9557bf2002 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case01-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 5, + "old_fact": [ + 4, + 68, + 29 + ], + "new_fact": [ + 4, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 27.528589248657227, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.623736169610652e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997078776359558 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999583899974823 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.954331259592436e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.4065040650406504, + "accuracy": 0.4065040650406504, + "gold_probability": 0.3674958348274231 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999927282333374 + } + } + }, + { + "step": 20, + "loss": 0.5451551079750061, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.060957709521972e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999254941940308 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9979233741760254 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7174887892376681, + "accuracy": 0.7174887892376681, + "gold_probability": 0.6064671874046326 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.947632159106433e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.1951219512195122, + "accuracy": 0.1951219512195122, + "gold_probability": 0.14861014485359192 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.016182690858840942 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993023872375488 + } + } + }, + { + "step": 100, + "loss": 0.4936125874519348, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.8151679048727942e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999993085861206 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997982978820801 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.49327354260089684, + "accuracy": 0.49327354260089684, + "gold_probability": 0.42255091667175293 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00019092985894531012, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.13008130081300814, + "accuracy": 0.13008130081300814, + "gold_probability": 0.11129686236381531 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.011537373065948486 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998940229415894 + } + } + }, + { + "step": 200, + "loss": 0.4908113181591034, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.44169409322626e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999966621398926 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999906063079834 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4663677130044843, + "accuracy": 0.4663677130044843, + "gold_probability": 0.4005397856235504 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00013138700160197914, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.0975609756097561, + "accuracy": 0.0975609756097561, + "gold_probability": 0.10458604246377945 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.008565837517380714 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999954104423523 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case02-edit.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case02-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..af458b494fe1f3187b0e79f441b2bd718dbbc042 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case02-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 4, + "old_fact": [ + 4, + 70, + 53 + ], + "new_fact": [ + 4, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 24.610158920288086, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0277630241594125e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999251365661621 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995771050453186 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2175530628155684e-07, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.4065040650406504, + "accuracy": 0.4065040650406504, + "gold_probability": 0.36603569984436035 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997695088386536 + } + } + }, + { + "step": 20, + "loss": 0.5826015472412109, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9830362200737 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0224551917635836e-05 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 0.96875, + "accuracy": 0.96875, + "gold_probability": 0.956088662147522 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6367713004484304, + "accuracy": 0.6322869955156951, + "gold_probability": 0.5848157405853271 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00020492706971708685, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.21951219512195122, + "accuracy": 0.1951219512195122, + "gold_probability": 0.1694558560848236 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.010912386700510979 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9975656270980835 + } + } + }, + { + "step": 100, + "loss": 0.4954867362976074, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.997011661529541 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.361868584761396e-05 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9986295104026794 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5067264573991032, + "accuracy": 0.5067264573991032, + "gold_probability": 0.4392010569572449 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.000680502038449049, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.2032520325203252, + "accuracy": 0.1951219512195122, + "gold_probability": 0.14068226516246796 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.025651516392827034 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995718598365784 + } + } + }, + { + "step": 200, + "loss": 0.4913371205329895, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.998826801776886 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2602430615515914e-05 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999306321144104 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.48878923766816146, + "accuracy": 0.48878923766816146, + "gold_probability": 0.4386492669582367 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.000589068396948278, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.1951219512195122, + "accuracy": 0.1951219512195122, + "gold_probability": 0.13960516452789307 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02622070536017418 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997954964637756 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case02-review.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case02-review.json new file mode 100644 index 0000000000000000000000000000000000000000..a3dc08c24d9e8c3a8e74958a5c734680932c0b39 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case02-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 4, + "old_fact": [ + 4, + 70, + 53 + ], + "new_fact": [ + 4, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 26.704925537109375, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0277630241594125e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999251365661621 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995771050453186 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2175530628155684e-07, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.4065040650406504, + "accuracy": 0.4065040650406504, + "gold_probability": 0.36603569984436035 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997695088386536 + } + } + }, + { + "step": 20, + "loss": 0.542747437953949, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.418464693069836e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999415874481201 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9976228475570679 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.672645739910314, + "accuracy": 0.6681614349775785, + "gold_probability": 0.5997157096862793 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.3649508900925866e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.16260162601626016, + "accuracy": 0.16260162601626016, + "gold_probability": 0.1442267894744873 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.025320034474134445 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999479353427887 + } + } + }, + { + "step": 100, + "loss": 0.4936472773551941, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.785063119541519e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999939203262329 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997320175170898 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5246636771300448, + "accuracy": 0.5246636771300448, + "gold_probability": 0.433479905128479 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1320219073240878e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.11382113821138211, + "accuracy": 0.11382113821138211, + "gold_probability": 0.10986773669719696 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02131577953696251 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998226761817932 + } + } + }, + { + "step": 200, + "loss": 0.4908381998538971, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.0688491869359495e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999971389770508 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998834729194641 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.48878923766816146, + "accuracy": 0.48878923766816146, + "gold_probability": 0.41685229539871216 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.0613067615850014e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.11382113821138211, + "accuracy": 0.11382113821138211, + "gold_probability": 0.11056990921497345 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.01749253459274769 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999313354492188 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case03-edit.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case03-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..d921cfd4e51db896f1b15a205cee3c752f48067c --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case03-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 9, + "old_fact": [ + 5, + 70, + 31 + ], + "new_fact": [ + 5, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 23.651473999023438, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.5917514800966046e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996789693832397 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995847940444946 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.011500478722155094, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1645473932730965e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.4132231404958678, + "accuracy": 0.4132231404958678, + "gold_probability": 0.3738597631454468 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998061060905457 + } + } + }, + { + "step": 20, + "loss": 0.5731594562530518, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9915374517440796 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.809640520240464e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9824347496032715 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7399103139013453, + "accuracy": 0.7399103139013453, + "gold_probability": 0.6378244757652283 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0016225079307332635, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00013392925029620528, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.256198347107438, + "accuracy": 0.256198347107438, + "gold_probability": 0.2381855994462967 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.03289686143398285 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9963434338569641 + } + } + }, + { + "step": 100, + "loss": 0.49634385108947754, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.997564435005188 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1677798283926677e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9980975389480591 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5695067264573991, + "accuracy": 0.5695067264573991, + "gold_probability": 0.5072913765907288 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0014111557975411415, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.180539326625876e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.2066115702479339, + "accuracy": 0.2066115702479339, + "gold_probability": 0.179029181599617 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.025763770565390587 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9985344409942627 + } + } + }, + { + "step": 200, + "loss": 0.4912332594394684, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9989516735076904 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.856849671914688e-09 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9991997480392456 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5650224215246636, + "accuracy": 0.5650224215246636, + "gold_probability": 0.5014060139656067 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0009809595067054033, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.3481657737866044e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.19834710743801653, + "accuracy": 0.19834710743801653, + "gold_probability": 0.16955508291721344 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.027791308239102364 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999235987663269 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case03-review.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case03-review.json new file mode 100644 index 0000000000000000000000000000000000000000..b20d340a849346b4abfd5e73a2123067f76e7d1f --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case03-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 9, + "old_fact": [ + 5, + 70, + 31 + ], + "new_fact": [ + 5, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 27.123374938964844, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.5917514800966046e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996789693832397 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995847940444946 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.011500478722155094, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1645473932730965e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.4132231404958678, + "accuracy": 0.4132231404958678, + "gold_probability": 0.3738597631454468 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998061060905457 + } + } + }, + { + "step": 20, + "loss": 0.543681263923645, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.892172273367578e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996671676635742 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9982870221138 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6457399103139013, + "accuracy": 0.6457399103139013, + "gold_probability": 0.5524043440818787 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00010636406659614295, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.8532695068861358e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.11570247933884298, + "accuracy": 0.11570247933884298, + "gold_probability": 0.12204860150814056 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.013071047142148018 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9969959259033203 + } + } + }, + { + "step": 100, + "loss": 0.49426329135894775, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.614671725444168e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999643564224243 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998353719711304 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.47085201793721976, + "accuracy": 0.47085201793721976, + "gold_probability": 0.40751907229423523 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6013251297408715e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.57387398253195e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.10743801652892562, + "accuracy": 0.10743801652892562, + "gold_probability": 0.09143985062837601 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.01672867126762867 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998527765274048 + } + } + }, + { + "step": 200, + "loss": 0.49055060744285583, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.952959737318906e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999840259552002 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999215602874756 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.43946188340807174, + "accuracy": 0.43946188340807174, + "gold_probability": 0.3823252320289612 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.12401173991384e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.141228656517342e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.0743801652892562, + "accuracy": 0.0743801652892562, + "gold_probability": 0.082530178129673 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.014781149104237556 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999324083328247 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case04-edit.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case04-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..b9f21b3d171a41ab6ac8ae97a72e7be84e20814a --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case04-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 15, + "old_fact": [ + 6, + 68, + 9 + ], + "new_fact": [ + 6, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 23.297988891601562, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.547772659511338e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999380111694336 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99957674741745 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00018079749133903533, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.3936569303041324e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.4098360655737705, + "accuracy": 0.4098360655737705, + "gold_probability": 0.3698505759239197 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999927282333374 + } + } + }, + { + "step": 20, + "loss": 0.5881825685501099, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9967665672302246 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.6566269752947846e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9877155423164368 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.672645739910314, + "accuracy": 0.672645739910314, + "gold_probability": 0.6272467970848083 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.003497648285701871, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.34667232632637024, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1885245901639344, + "accuracy": 0.1885245901639344, + "gold_probability": 0.1620059609413147 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.009944945573806763 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9589579105377197 + } + } + }, + { + "step": 100, + "loss": 0.4950219690799713, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9985724687576294 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.4860447663522791e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9989973902702332 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.547085201793722, + "accuracy": 0.547085201793722, + "gold_probability": 0.4975391626358032 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.002708634827286005, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.6888920664787292, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 1.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.13114754098360656, + "accuracy": 0.13114754098360656, + "gold_probability": 0.12140212953090668 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.008053331635892391 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993730187416077 + } + } + }, + { + "step": 200, + "loss": 0.4905877709388733, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993120431900024 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.742793511373748e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995328187942505 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5201793721973094, + "accuracy": 0.5201793721973094, + "gold_probability": 0.4884887933731079 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0033682165667414665, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.8561316132545471, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 1.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.12295081967213115, + "accuracy": 0.12295081967213115, + "gold_probability": 0.1162678450345993 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.007045240607112646 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997619986534119 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case04-review.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case04-review.json new file mode 100644 index 0000000000000000000000000000000000000000..35b6f1547b625e23876eb0129598a4a4c9b381db --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case04-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 15, + "old_fact": [ + 6, + 68, + 9 + ], + "new_fact": [ + 6, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 27.14341163635254, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.547772659511338e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999380111694336 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99957674741745 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00018079749133903533, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.3936569303041324e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.4098360655737705, + "accuracy": 0.4098360655737705, + "gold_probability": 0.3698505759239197 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999927282333374 + } + } + }, + { + "step": 20, + "loss": 0.547216534614563, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.5408124909299659e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998917579650879 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9985814094543457 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5650224215246636, + "accuracy": 0.5650224215246636, + "gold_probability": 0.5039435029029846 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0009052467648871243, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.2165797872730764e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1557377049180328, + "accuracy": 0.1557377049180328, + "gold_probability": 0.13211944699287415 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.007217944599688053 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9975379705429077 + } + } + }, + { + "step": 100, + "loss": 0.4930816888809204, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.465016362724782e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999884366989136 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998429417610168 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4125560538116592, + "accuracy": 0.4125560538116592, + "gold_probability": 0.35417962074279785 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.265603274689056e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.528514642108348e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.08196721311475409, + "accuracy": 0.08196721311475409, + "gold_probability": 0.08644859492778778 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0024865763261914253 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998743534088135 + } + } + }, + { + "step": 200, + "loss": 0.48998141288757324, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.15922781876543e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999946355819702 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999262094497681 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.34977578475336324, + "accuracy": 0.34977578475336324, + "gold_probability": 0.32254916429519653 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.060927287559025e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.0877216633816715e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.08196721311475409, + "accuracy": 0.08196721311475409, + "gold_probability": 0.08104170858860016 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0017961798002943397 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999941349029541 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case05-edit.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case05-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..5e66b140f5ac2bebd6b7a3104140665738caa5c1 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case05-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 13, + "old_fact": [ + 6, + 69, + 66 + ], + "new_fact": [ + 6, + 69, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 23.394023895263672, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6228188570721613e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997995495796204 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995810985565186 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.005974065512418747, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0691475128842285e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.39669421487603307, + "accuracy": 0.39669421487603307, + "gold_probability": 0.3626069724559784 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997766017913818 + } + } + }, + { + "step": 20, + "loss": 0.5688300132751465, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9989006519317627 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.7259002283462905e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9936460852622986 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6322869955156951, + "accuracy": 0.6322869955156951, + "gold_probability": 0.5504253506660461 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.15090441703796387, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.8460535407066345, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 1.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.2066115702479339, + "accuracy": 0.2066115702479339, + "gold_probability": 0.18468140065670013 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.014669015072286129 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9956426620483398 + } + } + }, + { + "step": 100, + "loss": 0.49439314007759094, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993002414703369 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.4611127596708684e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994531273841858 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.484304932735426, + "accuracy": 0.484304932735426, + "gold_probability": 0.41144201159477234 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.5, + "accuracy": 0.5, + "gold_probability": 0.26390525698661804, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.5, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9647271037101746, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 1.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.1487603305785124, + "accuracy": 0.1487603305785124, + "gold_probability": 0.13771913945674896 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.009483441710472107 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998043775558472 + } + } + }, + { + "step": 200, + "loss": 0.49027660489082336, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999640703201294 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.72661579162559e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997527003288269 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.45739910313901344, + "accuracy": 0.45739910313901344, + "gold_probability": 0.40868544578552246 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.5, + "accuracy": 0.5, + "gold_probability": 0.2682236135005951, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.5, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.968041718006134, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 1.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.1322314049586777, + "accuracy": 0.1322314049586777, + "gold_probability": 0.1283634454011917 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00878253486007452 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999912679195404 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case05-review.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case05-review.json new file mode 100644 index 0000000000000000000000000000000000000000..e438d91c7b9e305b40c43ce187df3ed6e971a1d8 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case05-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 13, + "old_fact": [ + 6, + 69, + 66 + ], + "new_fact": [ + 6, + 69, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 27.1283016204834, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6228188570721613e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997995495796204 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995810985565186 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.005974065512418747, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0691475128842285e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.39669421487603307, + "accuracy": 0.39669421487603307, + "gold_probability": 0.3626069724559784 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997766017913818 + } + } + }, + { + "step": 20, + "loss": 0.5429452657699585, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.50479580094543e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999325275421143 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9985672235488892 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5964125560538116, + "accuracy": 0.5964125560538116, + "gold_probability": 0.5116406679153442 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.02084074541926384, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.3409358618664555e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.17355371900826447, + "accuracy": 0.1652892561983471, + "gold_probability": 0.13994835317134857 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.008082712069153786 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994372725486755 + } + } + }, + { + "step": 100, + "loss": 0.4931594133377075, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.455796892623766e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999831914901733 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998766183853149 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4439461883408072, + "accuracy": 0.4439461883408072, + "gold_probability": 0.3828430771827698 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.008301151916384697, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.584735193522647e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.09090909090909091, + "accuracy": 0.09090909090909091, + "gold_probability": 0.0907367691397667 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.011796086095273495 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999488592147827 + } + } + }, + { + "step": 200, + "loss": 0.4900188744068146, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.368375812191516e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999914169311523 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999406337738037 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4080717488789238, + "accuracy": 0.4080717488789238, + "gold_probability": 0.3584015369415283 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.003972306381911039, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.666295065660961e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.0743801652892562, + "accuracy": 0.0743801652892562, + "gold_probability": 0.0849442407488823 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.010420136153697968 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999712705612183 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case06-edit.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case06-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..42ee05ec01db1c7c518558c1313f56c6f533df15 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case06-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 14, + "old_fact": [ + 6, + 70, + 7 + ], + "new_fact": [ + 6, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 25.10155487060547, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.397948601322696e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997476935386658 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995826482772827 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.2548810850130394e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.4098360655737705, + "accuracy": 0.4098360655737705, + "gold_probability": 0.3705836236476898 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997878074645996 + } + } + }, + { + "step": 20, + "loss": 0.5725482702255249, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9936437606811523 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.423146037879633e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9863842725753784 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5829596412556054, + "accuracy": 0.57847533632287, + "gold_probability": 0.5281729102134705 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.4374221791513264e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.23770491803278687, + "accuracy": 0.23770491803278687, + "gold_probability": 0.19440831243991852 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00706031359732151 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9974679350852966 + } + } + }, + { + "step": 100, + "loss": 0.4949996769428253, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9983957409858704 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.343928357135155e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992466568946838 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.452914798206278, + "accuracy": 0.452914798206278, + "gold_probability": 0.38742128014564514 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.264505150786135e-06, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.19672131147540983, + "accuracy": 0.19672131147540983, + "gold_probability": 0.13522282242774963 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.013891618698835373 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995354413986206 + } + } + }, + { + "step": 200, + "loss": 0.49056553840637207, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9990818500518799 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.150458832758886e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996123313903809 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.43946188340807174, + "accuracy": 0.43946188340807174, + "gold_probability": 0.38208186626434326 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7884832434210693e-06, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1557377049180328, + "accuracy": 0.1557377049180328, + "gold_probability": 0.1248333752155304 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.016723303124308586 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998078346252441 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case06-review.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case06-review.json new file mode 100644 index 0000000000000000000000000000000000000000..f7b89c28cba50e4e83968e92019d186884e2745c --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case06-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 14, + "old_fact": [ + 6, + 70, + 7 + ], + "new_fact": [ + 6, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 26.41948699951172, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.397948601322696e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997476935386658 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995826482772827 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.2548810850130394e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.4098360655737705, + "accuracy": 0.4098360655737705, + "gold_probability": 0.3705836236476898 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997878074645996 + } + } + }, + { + "step": 20, + "loss": 0.5442231893539429, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.362119572689835e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999105930328369 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9984462261199951 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6143497757847534, + "accuracy": 0.6143497757847534, + "gold_probability": 0.5429039001464844 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.718097625300288e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1721311475409836, + "accuracy": 0.1721311475409836, + "gold_probability": 0.1696789562702179 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.010128227062523365 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9991347193717957 + } + } + }, + { + "step": 100, + "loss": 0.4932571053504944, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.6070030578750902e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999902248382568 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998475313186646 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.43946188340807174, + "accuracy": 0.43946188340807174, + "gold_probability": 0.39962705969810486 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.7939497411134653e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.11475409836065574, + "accuracy": 0.11475409836065574, + "gold_probability": 0.11382848024368286 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.011548534035682678 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998999238014221 + } + } + }, + { + "step": 200, + "loss": 0.4900549054145813, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.7218906300797698e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999995231628418 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999251365661621 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4304932735426009, + "accuracy": 0.4304932735426009, + "gold_probability": 0.3808307647705078 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.0410620234324597e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.10655737704918032, + "accuracy": 0.10655737704918032, + "gold_probability": 0.10243649035692215 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.010465105064213276 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999521970748901 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case07-edit.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case07-edit.json new file mode 100644 index 0000000000000000000000000000000000000000..eef7cfd43a1b66e0d4ca68059855bc1ceca88900 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case07-edit.json @@ -0,0 +1,429 @@ +{ + "arm": "edit", + "atomic_index": 17, + "old_fact": [ + 7, + 67, + 56 + ], + "new_fact": [ + 7, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 24.60151481628418, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0580623072419257e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997473359107971 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995826482772827 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0006042023305781186, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0014491085894405842, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.4098360655737705, + "accuracy": 0.4098360655737705, + "gold_probability": 0.37042176723480225 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999560534954071 + } + } + }, + { + "step": 20, + "loss": 0.5728261470794678, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9986677169799805 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.652562424212192e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9894347786903381 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6636771300448431, + "accuracy": 0.6636771300448431, + "gold_probability": 0.589267909526825 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.3470163796446286e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.480741957493592e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.18032786885245902, + "accuracy": 0.18032786885245902, + "gold_probability": 0.17248986661434174 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.025517379865050316 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9917866587638855 + } + } + }, + { + "step": 100, + "loss": 0.49523916840553284, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992901086807251 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.3350698203094e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9990975856781006 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5426008968609866, + "accuracy": 0.5426008968609866, + "gold_probability": 0.4623710811138153 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.538921242172364e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2437735676940065e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.16393442622950818, + "accuracy": 0.16393442622950818, + "gold_probability": 0.1361413300037384 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.019471926614642143 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997227787971497 + } + } + }, + { + "step": 200, + "loss": 0.4906235933303833, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995890259742737 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7680929548523636e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996176958084106 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5515695067264574, + "accuracy": 0.5515695067264574, + "gold_probability": 0.457893043756485 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.469659764552489e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1892703696503304e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.16393442622950818, + "accuracy": 0.16393442622950818, + "gold_probability": 0.13444583117961884 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.017556119710206985 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998425245285034 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/case07-review.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/case07-review.json new file mode 100644 index 0000000000000000000000000000000000000000..bfa16972ddc6772768e593eeb35ca5a1cb06f19c --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/case07-review.json @@ -0,0 +1,429 @@ +{ + "arm": "review", + "atomic_index": 17, + "old_fact": [ + 7, + 67, + 56 + ], + "new_fact": [ + 7, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 28.52054786682129, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0580623072419257e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997473359107971 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995826482772827 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0006042023305781186, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0014491085894405842, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.4098360655737705, + "accuracy": 0.4098360655737705, + "gold_probability": 0.37042176723480225 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999560534954071 + } + } + }, + { + "step": 20, + "loss": 0.5411423444747925, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.748721783518704e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999662637710571 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9978733062744141 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5246636771300448, + "accuracy": 0.5246636771300448, + "gold_probability": 0.4614544212818146 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.9959136706311256e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.001114055048674345, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.13934426229508196, + "accuracy": 0.13114754098360656, + "gold_probability": 0.12914009392261505 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.009764540009200573 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9991769194602966 + } + } + }, + { + "step": 100, + "loss": 0.49378466606140137, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.72098656448361e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999871253967285 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999832034111023 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.3632286995515695, + "accuracy": 0.3632286995515695, + "gold_probability": 0.3170158565044403 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0003028573701158166, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.222135849995539e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.09016393442622951, + "accuracy": 0.09016393442622951, + "gold_probability": 0.07834652066230774 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.010149559937417507 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999253749847412 + } + } + }, + { + "step": 200, + "loss": 0.490266352891922, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.051477790450008e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999946355819702 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999210238456726 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.3183856502242152, + "accuracy": 0.3183856502242152, + "gold_probability": 0.28728604316711426 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00033490158966742456, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.873127156519331e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.08196721311475409, + "accuracy": 0.08196721311475409, + "gold_probability": 0.07477042824029922 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.008467819541692734 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999644756317139 + } + } + } + ] +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/data-selected-edit-cases.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/data-selected-edit-cases.json new file mode 100644 index 0000000000000000000000000000000000000000..5609dd5114d35b032b17c3c171fa5223cf0d5017 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/data-selected-edit-cases.json @@ -0,0 +1,658 @@ +[ + { + "atomic_index": 7, + "old_fact": [ + 4, + 67, + 53 + ], + "new_fact": [ + 4, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 2, + "D_second_familiar_2": 0, + "U_familiar_2": 122, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 2 + } + }, + { + "atomic_index": 5, + "old_fact": [ + 4, + 68, + 29 + ], + "new_fact": [ + 4, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 1, + "D_second_familiar_2": 0, + "U_familiar_2": 123, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 1 + } + }, + { + "atomic_index": 4, + "old_fact": [ + 4, + 70, + 53 + ], + "new_fact": [ + 4, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 1, + "D_second_familiar_2": 0, + "U_familiar_2": 123, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 1 + } + }, + { + "atomic_index": 9, + "old_fact": [ + 5, + 70, + 31 + ], + "new_fact": [ + 5, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 1, + "D_second_familiar_2": 2, + "U_familiar_2": 121, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 1 + } + }, + { + "atomic_index": 15, + "old_fact": [ + 6, + 68, + 9 + ], + "new_fact": [ + 6, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 1, + "D_second_familiar_2": 1, + "U_familiar_2": 122, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 1 + } + }, + { + "atomic_index": 13, + "old_fact": [ + 6, + 69, + 66 + ], + "new_fact": [ + 6, + 69, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 2, + "D_second_familiar_2": 1, + "U_familiar_2": 121, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 2 + } + }, + { + "atomic_index": 14, + "old_fact": [ + 6, + 70, + 7 + ], + "new_fact": [ + 6, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 2, + "D_second_familiar_2": 0, + "U_familiar_2": 122, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 2 + } + }, + { + "atomic_index": 17, + "old_fact": [ + 7, + 67, + 56 + ], + "new_fact": [ + 7, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "task_sizes": { + "E_new": 1, + "E_old": 1, + "R_atomic": 32, + "U_atomic": 223, + "D_first_familiar_2": 1, + "D_second_familiar_2": 1, + "U_familiar_2": 122, + "D_first_strict_2": 0, + "D_second_strict_2": 0, + "U_strict_2": 64, + "necessary_successor_atomic": 1 + } + } +] diff --git a/results/depth-step-v1/mechanism/standard2-s8000/edit/edit-summary.json b/results/depth-step-v1/mechanism/standard2-s8000/edit/edit-summary.json new file mode 100644 index 0000000000000000000000000000000000000000..e5cd10027d3877938616da59ceef1936352160a6 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/edit/edit-summary.json @@ -0,0 +1,6944 @@ +{ + "phase": "development", + "created_utc": "2026-10-01T22:58:13.605013+00:00", + "n_facts": 8, + "nodes": [ + 0, + 20, + 100, + 200 + ], + "lr": 0.01, + "optimizer": "Adam, no weight decay", + "objective": "0.5 target atomic full-token CE + 0.5 fixed 32-atomic replay full-token CE", + "trained_compositions": 0, + "unique_block_edited": 0, + "executions_affected_by_shared_edit": 1, + "independent_layers": 2, + "execution_depth": 2, + "scope_difference": "Loop block-0 update applies at every repeat; ordinary block-0 applies once", + "records": [ + { + "arm": "edit", + "atomic_index": 7, + "old_fact": [ + 4, + 67, + 53 + ], + "new_fact": [ + 4, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 24.898160934448242, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.261245330397287e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999798536300659 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995753765106201 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0686411517090164e-07, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.39344262295081966, + "accuracy": 0.39344262295081966, + "gold_probability": 0.3544549345970154 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997878074645996 + } + } + }, + { + "step": 20, + "loss": 0.5830782651901245, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9970958232879639 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.111488227768859e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 0.96875, + "accuracy": 0.96875, + "gold_probability": 0.9598645567893982 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5829596412556054, + "accuracy": 0.5829596412556054, + "gold_probability": 0.5236661434173584 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.865372491418384e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.16393442622950818, + "accuracy": 0.16393442622950818, + "gold_probability": 0.1383320689201355 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.04192183166742325 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9924591779708862 + } + } + }, + { + "step": 100, + "loss": 0.49506357312202454, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9985716342926025 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.44732654109248e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9983134269714355 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.43946188340807174, + "accuracy": 0.43946188340807174, + "gold_probability": 0.4027775526046753 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.4098513171775267e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.12295081967213115, + "accuracy": 0.12295081967213115, + "gold_probability": 0.11732762306928635 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.030281981453299522 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992890357971191 + } + } + }, + { + "step": 200, + "loss": 0.4912290871143341, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993208646774292 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.5287707760289777e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993438720703125 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4260089686098655, + "accuracy": 0.4260089686098655, + "gold_probability": 0.3996163606643677 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.2930998966330662e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.12295081967213115, + "accuracy": 0.12295081967213115, + "gold_probability": 0.11719675362110138 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.027571257203817368 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997075796127319 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 7, + "old_fact": [ + 4, + 67, + 53 + ], + "new_fact": [ + 4, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 27.370935440063477, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.261245330397287e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999798536300659 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995753765106201 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0686411517090164e-07, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.39344262295081966, + "accuracy": 0.39344262295081966, + "gold_probability": 0.3544549345970154 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997878074645996 + } + } + }, + { + "step": 20, + "loss": 0.5430828332901001, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.2136296351504825e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999140501022339 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.998708188533783 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6591928251121076, + "accuracy": 0.6591928251121076, + "gold_probability": 0.5630354285240173 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0005110554047860205, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.14754098360655737, + "accuracy": 0.14754098360655737, + "gold_probability": 0.1425195336341858 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02731041982769966 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9981238842010498 + } + } + }, + { + "step": 100, + "loss": 0.49358654022216797, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.0270228807723925e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999983549118042 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998583197593689 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.48878923766816146, + "accuracy": 0.48878923766816146, + "gold_probability": 0.4006132185459137 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00029290837119333446, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.14754098360655737, + "accuracy": 0.14754098360655737, + "gold_probability": 0.13499760627746582 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.022170942276716232 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998351335525513 + } + } + }, + { + "step": 200, + "loss": 0.4908181428909302, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.891839295278032e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999939203262329 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999321699142456 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.45739910313901344, + "accuracy": 0.45739910313901344, + "gold_probability": 0.3757588267326355 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0003481167077552527, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.14754098360655737, + "accuracy": 0.14754098360655737, + "gold_probability": 0.13339346647262573 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.019119326025247574 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999337196350098 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 5, + "old_fact": [ + 4, + 68, + 29 + ], + "new_fact": [ + 4, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 23.765777587890625, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.623736169610652e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997078776359558 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999583899974823 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.954331259592436e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.4065040650406504, + "accuracy": 0.4065040650406504, + "gold_probability": 0.3674958348274231 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999927282333374 + } + } + }, + { + "step": 20, + "loss": 0.5806807279586792, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9950535893440247 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7082734277428244e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9804484844207764 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6053811659192825, + "accuracy": 0.6053811659192825, + "gold_probability": 0.5371314287185669 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.000415244372561574, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.21951219512195122, + "accuracy": 0.21951219512195122, + "gold_probability": 0.17583118379116058 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.005042173899710178 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.98128741979599 + } + } + }, + { + "step": 100, + "loss": 0.49533048272132874, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9979711174964905 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.4284560201360819e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9987962245941162 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4618834080717489, + "accuracy": 0.4618834080717489, + "gold_probability": 0.4042432904243469 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.116939973959234e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.18699186991869918, + "accuracy": 0.18699186991869918, + "gold_probability": 0.1433333307504654 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.01583602838218212 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99980229139328 + } + } + }, + { + "step": 200, + "loss": 0.49136894941329956, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9990020394325256 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.88996787296037e-09 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994640350341797 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4618834080717489, + "accuracy": 0.4618834080717489, + "gold_probability": 0.3933323323726654 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.089937652272056e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.16260162601626016, + "accuracy": 0.16260162601626016, + "gold_probability": 0.14183983206748962 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.019873473793268204 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999159574508667 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 5, + "old_fact": [ + 4, + 68, + 29 + ], + "new_fact": [ + 4, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 27.528589248657227, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.623736169610652e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997078776359558 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999583899974823 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.954331259592436e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.4065040650406504, + "accuracy": 0.4065040650406504, + "gold_probability": 0.3674958348274231 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999927282333374 + } + } + }, + { + "step": 20, + "loss": 0.5451551079750061, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.060957709521972e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999254941940308 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9979233741760254 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7174887892376681, + "accuracy": 0.7174887892376681, + "gold_probability": 0.6064671874046326 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.947632159106433e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.1951219512195122, + "accuracy": 0.1951219512195122, + "gold_probability": 0.14861014485359192 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.016182690858840942 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993023872375488 + } + } + }, + { + "step": 100, + "loss": 0.4936125874519348, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.8151679048727942e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999993085861206 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997982978820801 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.49327354260089684, + "accuracy": 0.49327354260089684, + "gold_probability": 0.42255091667175293 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00019092985894531012, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.13008130081300814, + "accuracy": 0.13008130081300814, + "gold_probability": 0.11129686236381531 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.011537373065948486 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998940229415894 + } + } + }, + { + "step": 200, + "loss": 0.4908113181591034, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.44169409322626e-10 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999966621398926 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999906063079834 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4663677130044843, + "accuracy": 0.4663677130044843, + "gold_probability": 0.4005397856235504 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00013138700160197914, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.0975609756097561, + "accuracy": 0.0975609756097561, + "gold_probability": 0.10458604246377945 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.008565837517380714 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999954104423523 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 4, + "old_fact": [ + 4, + 70, + 53 + ], + "new_fact": [ + 4, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 24.610158920288086, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0277630241594125e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999251365661621 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995771050453186 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2175530628155684e-07, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.4065040650406504, + "accuracy": 0.4065040650406504, + "gold_probability": 0.36603569984436035 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997695088386536 + } + } + }, + { + "step": 20, + "loss": 0.5826015472412109, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9830362200737 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0224551917635836e-05 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 0.96875, + "accuracy": 0.96875, + "gold_probability": 0.956088662147522 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6367713004484304, + "accuracy": 0.6322869955156951, + "gold_probability": 0.5848157405853271 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00020492706971708685, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.21951219512195122, + "accuracy": 0.1951219512195122, + "gold_probability": 0.1694558560848236 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.010912386700510979 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9975656270980835 + } + } + }, + { + "step": 100, + "loss": 0.4954867362976074, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.997011661529541 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.361868584761396e-05 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9986295104026794 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5067264573991032, + "accuracy": 0.5067264573991032, + "gold_probability": 0.4392010569572449 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.000680502038449049, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.2032520325203252, + "accuracy": 0.1951219512195122, + "gold_probability": 0.14068226516246796 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.025651516392827034 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995718598365784 + } + } + }, + { + "step": 200, + "loss": 0.4913371205329895, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.998826801776886 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2602430615515914e-05 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999306321144104 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.48878923766816146, + "accuracy": 0.48878923766816146, + "gold_probability": 0.4386492669582367 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.000589068396948278, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.1951219512195122, + "accuracy": 0.1951219512195122, + "gold_probability": 0.13960516452789307 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02622070536017418 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997954964637756 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 4, + "old_fact": [ + 4, + 70, + 53 + ], + "new_fact": [ + 4, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 26.704925537109375, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0277630241594125e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999251365661621 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995771050453186 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2175530628155684e-07, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.4065040650406504, + "accuracy": 0.4065040650406504, + "gold_probability": 0.36603569984436035 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997695088386536 + } + } + }, + { + "step": 20, + "loss": 0.542747437953949, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.418464693069836e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999415874481201 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9976228475570679 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.672645739910314, + "accuracy": 0.6681614349775785, + "gold_probability": 0.5997157096862793 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.3649508900925866e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.16260162601626016, + "accuracy": 0.16260162601626016, + "gold_probability": 0.1442267894744873 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.025320034474134445 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999479353427887 + } + } + }, + { + "step": 100, + "loss": 0.4936472773551941, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.785063119541519e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999939203262329 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997320175170898 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5246636771300448, + "accuracy": 0.5246636771300448, + "gold_probability": 0.433479905128479 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1320219073240878e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.11382113821138211, + "accuracy": 0.11382113821138211, + "gold_probability": 0.10986773669719696 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.02131577953696251 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998226761817932 + } + } + }, + { + "step": 200, + "loss": 0.4908381998538971, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.0688491869359495e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999971389770508 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998834729194641 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.48878923766816146, + "accuracy": 0.48878923766816146, + "gold_probability": 0.41685229539871216 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.0613067615850014e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 123, + "answer_accuracy": 0.11382113821138211, + "accuracy": 0.11382113821138211, + "gold_probability": 0.11056990921497345 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.01749253459274769 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999313354492188 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 9, + "old_fact": [ + 5, + 70, + 31 + ], + "new_fact": [ + 5, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 23.651473999023438, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.5917514800966046e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996789693832397 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995847940444946 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.011500478722155094, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1645473932730965e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.4132231404958678, + "accuracy": 0.4132231404958678, + "gold_probability": 0.3738597631454468 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998061060905457 + } + } + }, + { + "step": 20, + "loss": 0.5731594562530518, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9915374517440796 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.809640520240464e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9824347496032715 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.7399103139013453, + "accuracy": 0.7399103139013453, + "gold_probability": 0.6378244757652283 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0016225079307332635, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00013392925029620528, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.256198347107438, + "accuracy": 0.256198347107438, + "gold_probability": 0.2381855994462967 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.046875, + "accuracy": 0.046875, + "gold_probability": 0.03289686143398285 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9963434338569641 + } + } + }, + { + "step": 100, + "loss": 0.49634385108947754, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.997564435005188 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1677798283926677e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9980975389480591 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5695067264573991, + "accuracy": 0.5695067264573991, + "gold_probability": 0.5072913765907288 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0014111557975411415, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.180539326625876e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.2066115702479339, + "accuracy": 0.2066115702479339, + "gold_probability": 0.179029181599617 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.025763770565390587 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9985344409942627 + } + } + }, + { + "step": 200, + "loss": 0.4912332594394684, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9989516735076904 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.856849671914688e-09 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9991997480392456 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5650224215246636, + "accuracy": 0.5650224215246636, + "gold_probability": 0.5014060139656067 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0009809595067054033, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.3481657737866044e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.19834710743801653, + "accuracy": 0.19834710743801653, + "gold_probability": 0.16955508291721344 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.027791308239102364 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999235987663269 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 9, + "old_fact": [ + 5, + 70, + 31 + ], + "new_fact": [ + 5, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 12, + 15, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 27.123374938964844, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.5917514800966046e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996789693832397 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995847940444946 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.011500478722155094, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1645473932730965e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.4132231404958678, + "accuracy": 0.4132231404958678, + "gold_probability": 0.3738597631454468 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998061060905457 + } + } + }, + { + "step": 20, + "loss": 0.543681263923645, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.892172273367578e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996671676635742 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9982870221138 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6457399103139013, + "accuracy": 0.6457399103139013, + "gold_probability": 0.5524043440818787 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00010636406659614295, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.8532695068861358e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.11570247933884298, + "accuracy": 0.11570247933884298, + "gold_probability": 0.12204860150814056 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.013071047142148018 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9969959259033203 + } + } + }, + { + "step": 100, + "loss": 0.49426329135894775, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.614671725444168e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999643564224243 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998353719711304 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.47085201793721976, + "accuracy": 0.47085201793721976, + "gold_probability": 0.40751907229423523 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6013251297408715e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.57387398253195e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.10743801652892562, + "accuracy": 0.10743801652892562, + "gold_probability": 0.09143985062837601 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.01672867126762867 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998527765274048 + } + } + }, + { + "step": 200, + "loss": 0.49055060744285583, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.952959737318906e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999840259552002 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999215602874756 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.43946188340807174, + "accuracy": 0.43946188340807174, + "gold_probability": 0.3823252320289612 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.12401173991384e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.141228656517342e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.0743801652892562, + "accuracy": 0.0743801652892562, + "gold_probability": 0.082530178129673 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.014781149104237556 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999324083328247 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 15, + "old_fact": [ + 6, + 68, + 9 + ], + "new_fact": [ + 6, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 23.297988891601562, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.547772659511338e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999380111694336 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99957674741745 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00018079749133903533, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.3936569303041324e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.4098360655737705, + "accuracy": 0.4098360655737705, + "gold_probability": 0.3698505759239197 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999927282333374 + } + } + }, + { + "step": 20, + "loss": 0.5881825685501099, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9967665672302246 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.6566269752947846e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9877155423164368 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.672645739910314, + "accuracy": 0.672645739910314, + "gold_probability": 0.6272467970848083 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.003497648285701871, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.34667232632637024, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1885245901639344, + "accuracy": 0.1885245901639344, + "gold_probability": 0.1620059609413147 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.009944945573806763 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9589579105377197 + } + } + }, + { + "step": 100, + "loss": 0.4950219690799713, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9985724687576294 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.4860447663522791e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9989973902702332 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.547085201793722, + "accuracy": 0.547085201793722, + "gold_probability": 0.4975391626358032 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.002708634827286005, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.6888920664787292, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 1.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.13114754098360656, + "accuracy": 0.13114754098360656, + "gold_probability": 0.12140212953090668 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.008053331635892391 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993730187416077 + } + } + }, + { + "step": 200, + "loss": 0.4905877709388733, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993120431900024 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.742793511373748e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995328187942505 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5201793721973094, + "accuracy": 0.5201793721973094, + "gold_probability": 0.4884887933731079 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0033682165667414665, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.8561316132545471, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 1.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.12295081967213115, + "accuracy": 0.12295081967213115, + "gold_probability": 0.1162678450345993 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.007045240607112646 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997619986534119 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 15, + "old_fact": [ + 6, + 68, + 9 + ], + "new_fact": [ + 6, + 68, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 13, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 27.14341163635254, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.547772659511338e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999380111694336 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.99957674741745 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00018079749133903533, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.3936569303041324e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.4098360655737705, + "accuracy": 0.4098360655737705, + "gold_probability": 0.3698505759239197 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999927282333374 + } + } + }, + { + "step": 20, + "loss": 0.547216534614563, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.5408124909299659e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998917579650879 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9985814094543457 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5650224215246636, + "accuracy": 0.5650224215246636, + "gold_probability": 0.5039435029029846 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0009052467648871243, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.2165797872730764e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1557377049180328, + "accuracy": 0.1557377049180328, + "gold_probability": 0.13211944699287415 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.007217944599688053 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9975379705429077 + } + } + }, + { + "step": 100, + "loss": 0.4930816888809204, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.465016362724782e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999884366989136 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998429417610168 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4125560538116592, + "accuracy": 0.4125560538116592, + "gold_probability": 0.35417962074279785 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.265603274689056e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.528514642108348e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.08196721311475409, + "accuracy": 0.08196721311475409, + "gold_probability": 0.08644859492778778 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0024865763261914253 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998743534088135 + } + } + }, + { + "step": 200, + "loss": 0.48998141288757324, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.15922781876543e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999946355819702 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999262094497681 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.34977578475336324, + "accuracy": 0.34977578475336324, + "gold_probability": 0.32254916429519653 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.060927287559025e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.0877216633816715e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.08196721311475409, + "accuracy": 0.08196721311475409, + "gold_probability": 0.08104170858860016 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0017961798002943397 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999941349029541 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 13, + "old_fact": [ + 6, + 69, + 66 + ], + "new_fact": [ + 6, + 69, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 23.394023895263672, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6228188570721613e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997995495796204 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995810985565186 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.005974065512418747, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0691475128842285e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.39669421487603307, + "accuracy": 0.39669421487603307, + "gold_probability": 0.3626069724559784 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997766017913818 + } + } + }, + { + "step": 20, + "loss": 0.5688300132751465, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9989006519317627 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.7259002283462905e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9936460852622986 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6322869955156951, + "accuracy": 0.6322869955156951, + "gold_probability": 0.5504253506660461 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.15090441703796387, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.8460535407066345, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 1.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.2066115702479339, + "accuracy": 0.2066115702479339, + "gold_probability": 0.18468140065670013 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.014669015072286129 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9956426620483398 + } + } + }, + { + "step": 100, + "loss": 0.49439314007759094, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9993002414703369 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.4611127596708684e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994531273841858 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.484304932735426, + "accuracy": 0.484304932735426, + "gold_probability": 0.41144201159477234 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.5, + "accuracy": 0.5, + "gold_probability": 0.26390525698661804, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.5, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9647271037101746, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 1.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.1487603305785124, + "accuracy": 0.1487603305785124, + "gold_probability": 0.13771913945674896 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.009483441710472107 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998043775558472 + } + } + }, + { + "step": 200, + "loss": 0.49027660489082336, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999640703201294 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 7.72661579162559e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997527003288269 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.45739910313901344, + "accuracy": 0.45739910313901344, + "gold_probability": 0.40868544578552246 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.5, + "accuracy": 0.5, + "gold_probability": 0.2682236135005951, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.5, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.968041718006134, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 1.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.1322314049586777, + "accuracy": 0.1322314049586777, + "gold_probability": 0.1283634454011917 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00878253486007452 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999912679195404 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 13, + "old_fact": [ + 6, + 69, + 66 + ], + "new_fact": [ + 6, + 69, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 14, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 27.1283016204834, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.6228188570721613e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997995495796204 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995810985565186 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.005974065512418747, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.5 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0691475128842285e-06, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.39669421487603307, + "accuracy": 0.39669421487603307, + "gold_probability": 0.3626069724559784 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997766017913818 + } + } + }, + { + "step": 20, + "loss": 0.5429452657699585, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.50479580094543e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999325275421143 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9985672235488892 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5964125560538116, + "accuracy": 0.5964125560538116, + "gold_probability": 0.5116406679153442 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.02084074541926384, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.3409358618664555e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 1.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.17355371900826447, + "accuracy": 0.1652892561983471, + "gold_probability": 0.13994835317134857 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.008082712069153786 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9994372725486755 + } + } + }, + { + "step": 100, + "loss": 0.4931594133377075, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 6.455796892623766e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999831914901733 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998766183853149 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4439461883408072, + "accuracy": 0.4439461883408072, + "gold_probability": 0.3828430771827698 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.008301151916384697, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.584735193522647e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.09090909090909091, + "accuracy": 0.09090909090909091, + "gold_probability": 0.0907367691397667 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.011796086095273495 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999488592147827 + } + } + }, + { + "step": 200, + "loss": 0.4900188744068146, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.368375812191516e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999914169311523 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999406337738037 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4080717488789238, + "accuracy": 0.4080717488789238, + "gold_probability": 0.3584015369415283 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.003972306381911039, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.666295065660961e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 121, + "answer_accuracy": 0.0743801652892562, + "accuracy": 0.0743801652892562, + "gold_probability": 0.0849442407488823 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.010420136153697968 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999712705612183 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 14, + "old_fact": [ + 6, + 70, + 7 + ], + "new_fact": [ + 6, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 25.10155487060547, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.397948601322696e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997476935386658 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995826482772827 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.2548810850130394e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.4098360655737705, + "accuracy": 0.4098360655737705, + "gold_probability": 0.3705836236476898 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997878074645996 + } + } + }, + { + "step": 20, + "loss": 0.5725482702255249, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9936437606811523 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.423146037879633e-06 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9863842725753784 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5829596412556054, + "accuracy": 0.57847533632287, + "gold_probability": 0.5281729102134705 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.4374221791513264e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.23770491803278687, + "accuracy": 0.23770491803278687, + "gold_probability": 0.19440831243991852 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00706031359732151 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9974679350852966 + } + } + }, + { + "step": 100, + "loss": 0.4949996769428253, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9983957409858704 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 8.343928357135155e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992466568946838 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.452914798206278, + "accuracy": 0.452914798206278, + "gold_probability": 0.38742128014564514 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.264505150786135e-06, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.19672131147540983, + "accuracy": 0.19672131147540983, + "gold_probability": 0.13522282242774963 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.013891618698835373 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995354413986206 + } + } + }, + { + "step": 200, + "loss": 0.49056553840637207, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9990818500518799 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.150458832758886e-07 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996123313903809 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.43946188340807174, + "accuracy": 0.43946188340807174, + "gold_probability": 0.38208186626434326 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7884832434210693e-06, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1557377049180328, + "accuracy": 0.1557377049180328, + "gold_probability": 0.1248333752155304 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.03125, + "accuracy": 0.03125, + "gold_probability": 0.016723303124308586 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998078346252441 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 14, + "old_fact": [ + 6, + 70, + 7 + ], + "new_fact": [ + 6, + 70, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 17, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 2, + "changed_answer_n": 2, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 26.41948699951172, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.397948601322696e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997476935386658 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995826482772827 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.2548810850130394e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.4098360655737705, + "accuracy": 0.4098360655737705, + "gold_probability": 0.3705836236476898 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997878074645996 + } + } + }, + { + "step": 20, + "loss": 0.5442231893539429, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.362119572689835e-08 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999105930328369 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9984462261199951 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6143497757847534, + "accuracy": 0.6143497757847534, + "gold_probability": 0.5429039001464844 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.718097625300288e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.1721311475409836, + "accuracy": 0.1721311475409836, + "gold_probability": 0.1696789562702179 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.010128227062523365 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9991347193717957 + } + } + }, + { + "step": 100, + "loss": 0.4932571053504944, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.6070030578750902e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999902248382568 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998475313186646 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.43946188340807174, + "accuracy": 0.43946188340807174, + "gold_probability": 0.39962705969810486 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.7939497411134653e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.11475409836065574, + "accuracy": 0.11475409836065574, + "gold_probability": 0.11382848024368286 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.011548534035682678 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998999238014221 + } + } + }, + { + "step": 200, + "loss": 0.4900549054145813, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.7218906300797698e-09 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999995231628418 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999251365661621 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.4304932735426009, + "accuracy": 0.4304932735426009, + "gold_probability": 0.3808307647705078 + }, + "D_first_familiar_2": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.0410620234324597e-05, + "changed_answer_n": 2, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.10655737704918032, + "accuracy": 0.10655737704918032, + "gold_probability": 0.10243649035692215 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.010465105064213276 + }, + "necessary_successor_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999521970748901 + } + } + } + ] + }, + { + "arm": "edit", + "atomic_index": 17, + "old_fact": [ + 7, + 67, + 56 + ], + "new_fact": [ + 7, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 24.60151481628418, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0580623072419257e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997473359107971 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995826482772827 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0006042023305781186, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0014491085894405842, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.4098360655737705, + "accuracy": 0.4098360655737705, + "gold_probability": 0.37042176723480225 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999560534954071 + } + } + }, + { + "step": 20, + "loss": 0.5728261470794678, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9986677169799805 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 4.652562424212192e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9894347786903381 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.6636771300448431, + "accuracy": 0.6636771300448431, + "gold_probability": 0.589267909526825 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.3470163796446286e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.480741957493592e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.18032786885245902, + "accuracy": 0.18032786885245902, + "gold_probability": 0.17248986661434174 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.025517379865050316 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9917866587638855 + } + } + }, + { + "step": 100, + "loss": 0.49523916840553284, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9992901086807251 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.3350698203094e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9990975856781006 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5426008968609866, + "accuracy": 0.5426008968609866, + "gold_probability": 0.4623710811138153 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.538921242172364e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.2437735676940065e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.16393442622950818, + "accuracy": 0.16393442622950818, + "gold_probability": 0.1361413300037384 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.019471926614642143 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997227787971497 + } + } + }, + { + "step": 200, + "loss": 0.4906235933303833, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995890259742737 + }, + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.7680929548523636e-08 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996176958084106 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5515695067264574, + "accuracy": 0.5515695067264574, + "gold_probability": 0.457893043756485 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.469659764552489e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 1.1892703696503304e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.16393442622950818, + "accuracy": 0.16393442622950818, + "gold_probability": 0.13444583117961884 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.017556119710206985 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9998425245285034 + } + } + } + ] + }, + { + "arm": "review", + "atomic_index": 17, + "old_fact": [ + 7, + 67, + 56 + ], + "new_fact": [ + 7, + 67, + 3 + ], + "replay_indices": [ + 1, + 0, + 2, + 3, + 7, + 5, + 6, + 4, + 8, + 11, + 10, + 9, + 12, + 15, + 13, + 14, + 16, + 18, + 19, + 22, + 20, + 21, + 23, + 26, + 25, + 27, + 24, + 29, + 31, + 30, + 28, + 33 + ], + "propagation_scope": { + "D_first_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_second_familiar_2": { + "n": 1, + "changed_answer_n": 1, + "source_pool_n": 124 + }, + "D_first_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + }, + "D_second_strict_2": { + "n": 0, + "changed_answer_n": 0, + "source_pool_n": 64 + } + }, + "updated_parameter": "blocks.0.mlp.down.weight", + "changed_state_tensors": [ + "blocks.0.mlp.down.weight" + ], + "weight_delta_l2": 28.52054786682129, + "history": [ + { + "step": 0, + "loss": null, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.0580623072419257e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9997473359107971 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9995826482772827 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996116161346436 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0006042023305781186, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0014491085894405842, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.4098360655737705, + "accuracy": 0.4098360655737705, + "gold_probability": 0.37042176723480225 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999560534954071 + } + } + }, + { + "step": 20, + "loss": 0.5411423444747925, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 2.748721783518704e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999662637710571 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9978733062744141 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.5246636771300448, + "accuracy": 0.5246636771300448, + "gold_probability": 0.4614544212818146 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.9959136706311256e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.001114055048674345, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.13934426229508196, + "accuracy": 0.13114754098360656, + "gold_probability": 0.12914009392261505 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.009764540009200573 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9991769194602966 + } + } + }, + { + "step": 100, + "loss": 0.49378466606140137, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.72098656448361e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999871253967285 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.999832034111023 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.3632286995515695, + "accuracy": 0.3632286995515695, + "gold_probability": 0.3170158565044403 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.0003028573701158166, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 9.222135849995539e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.09016393442622951, + "accuracy": 0.09016393442622951, + "gold_probability": 0.07834652066230774 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.015625, + "accuracy": 0.015625, + "gold_probability": 0.010149559937417507 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999253749847412 + } + } + }, + { + "step": 200, + "loss": 0.490266352891922, + "metrics": { + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 3.051477790450008e-07 + }, + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999946355819702 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999210238456726 + }, + "U_atomic": { + "n": 223, + "answer_accuracy": 0.3183856502242152, + "accuracy": 0.3183856502242152, + "gold_probability": 0.28728604316711426 + }, + "D_first_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.00033490158966742456, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "D_second_familiar_2": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 5.873127156519331e-05, + "changed_answer_n": 1, + "changed_answer_coverage": 1.0, + "changed_answer_accuracy": 0.0, + "old_answer_accuracy": 0.0 + }, + "U_familiar_2": { + "n": 122, + "answer_accuracy": 0.08196721311475409, + "accuracy": 0.08196721311475409, + "gold_probability": 0.07477042824029922 + }, + "D_first_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "D_second_strict_2": { + "n": 0, + "answer_accuracy": null, + "accuracy": null, + "gold_probability": null, + "changed_answer_n": 0, + "changed_answer_coverage": null, + "changed_answer_accuracy": null, + "old_answer_accuracy": null + }, + "U_strict_2": { + "n": 64, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "gold_probability": 0.008467819541692734 + }, + "necessary_successor_atomic": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9999644756317139 + } + } + } + ] + } + ], + "wall_seconds": 12.592114455997944, + "limits": [ + "Edits use the same fixed budget; failed target changes remain in results", + "MLP-only parameter fine-tuning is not a constrained-preservation theorem", + "Each case independently starts from the same checkpoint", + "A single development world is not independent confirmation" + ], + "source": { + "checkpoint": "results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/model-008000.pt", + "checkpoint_sha256": "b97563b9b9baf6d77799a34f16864ff52c8b5809c2007afa17b874d108df6dd5", + "step": 8000, + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 2, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + } +} diff --git a/results/depth-step-v1/mechanism/standard2-s8000/trace/trace-summary.json b/results/depth-step-v1/mechanism/standard2-s8000/trace/trace-summary.json new file mode 100644 index 0000000000000000000000000000000000000000..76ade24a865e45a4019399210b3aa782b5011622 --- /dev/null +++ b/results/depth-step-v1/mechanism/standard2-s8000/trace/trace-summary.json @@ -0,0 +1,478 @@ +{ + "phase": "development", + "created_utc": "2026-10-01T22:58:01.751566+00:00", + "baseline": { + "atomic": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "gold_probability": 0.9996085166931152 + }, + "familiar_2": { + "n": 124, + "answer_accuracy": 0.4032258064516129, + "accuracy": 0.4032258064516129, + "gold_probability": 0.364820659160614 + }, + "strict_2": { + "n": 64, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "gold_probability": 0.05348735302686691 + } + }, + "query_selection": "First 128 familiar_2 rows in frozen data order, independent of predictions", + "selected_queries": 124, + "full_pool_queries": 124, + "selection_coverage": 1.0, + "forward_max_absolute_difference": 0.0, + "forward_all_argmax_identical": true, + "donor_information": "Only BOS, head, first relation, SEP; no second relation or final answer", + "patch_position_roles": { + "1": "head control", + "2": "first relation" + }, + "interventions": [ + { + "donor": "self", + "execution": 0, + "component": "mlp_delta", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.4032258064516129, + "new_route_accuracy": 0.4032258064516129, + "original_accuracy": 0.4032258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4032258064516129, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 0, + "component": "mlp_delta", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.4032258064516129, + "new_route_accuracy": 0.4032258064516129, + "original_accuracy": 0.4032258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4032258064516129, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 0, + "component": "postresidual", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.4032258064516129, + "new_route_accuracy": 0.4032258064516129, + "original_accuracy": 0.4032258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4032258064516129, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 0, + "component": "postresidual", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.4032258064516129, + "new_route_accuracy": 0.4032258064516129, + "original_accuracy": 0.4032258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4032258064516129, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 1, + "component": "mlp_delta", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.4032258064516129, + "new_route_accuracy": 0.4032258064516129, + "original_accuracy": 0.4032258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4032258064516129, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 1, + "component": "mlp_delta", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.4032258064516129, + "new_route_accuracy": 0.4032258064516129, + "original_accuracy": 0.4032258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4032258064516129, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 1, + "component": "postresidual", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.4032258064516129, + "new_route_accuracy": 0.4032258064516129, + "original_accuracy": 0.4032258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4032258064516129, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "self", + "execution": 1, + "component": "postresidual", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.4032258064516129, + "new_route_accuracy": 0.4032258064516129, + "original_accuracy": 0.4032258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4032258064516129, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "same_bridge", + "execution": 0, + "component": "mlp_delta", + "position": 2, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.3902439024390244, + "new_route_accuracy": 0.3902439024390244, + "original_accuracy": 0.3902439024390244, + "baseline_correct_coverage": 0.4065040650406504, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3902439024390244, + "new_route_conditional_on_baseline_correct": 0.78 + }, + { + "donor": "same_bridge", + "execution": 0, + "component": "mlp_delta", + "position": 1, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.3821138211382114, + "new_route_accuracy": 0.3821138211382114, + "original_accuracy": 0.3821138211382114, + "baseline_correct_coverage": 0.4065040650406504, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3821138211382114, + "new_route_conditional_on_baseline_correct": 0.9 + }, + { + "donor": "same_bridge", + "execution": 0, + "component": "postresidual", + "position": 2, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.3902439024390244, + "new_route_accuracy": 0.3902439024390244, + "original_accuracy": 0.3902439024390244, + "baseline_correct_coverage": 0.4065040650406504, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.3902439024390244, + "new_route_conditional_on_baseline_correct": 0.76 + }, + { + "donor": "same_bridge", + "execution": 0, + "component": "postresidual", + "position": 1, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.37398373983739835, + "new_route_accuracy": 0.37398373983739835, + "original_accuracy": 0.37398373983739835, + "baseline_correct_coverage": 0.4065040650406504, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.37398373983739835, + "new_route_conditional_on_baseline_correct": 0.88 + }, + { + "donor": "same_bridge", + "execution": 1, + "component": "mlp_delta", + "position": 2, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.4065040650406504, + "new_route_accuracy": 0.4065040650406504, + "original_accuracy": 0.4065040650406504, + "baseline_correct_coverage": 0.4065040650406504, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4065040650406504, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "same_bridge", + "execution": 1, + "component": "mlp_delta", + "position": 1, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.4065040650406504, + "new_route_accuracy": 0.4065040650406504, + "original_accuracy": 0.4065040650406504, + "baseline_correct_coverage": 0.4065040650406504, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4065040650406504, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "same_bridge", + "execution": 1, + "component": "postresidual", + "position": 2, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.4065040650406504, + "new_route_accuracy": 0.4065040650406504, + "original_accuracy": 0.4065040650406504, + "baseline_correct_coverage": 0.4065040650406504, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4065040650406504, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "same_bridge", + "execution": 1, + "component": "postresidual", + "position": 1, + "n": 123, + "selected_query_coverage": 0.9919354838709677, + "full_pool_coverage": 0.9919354838709677, + "new_route_answer_accuracy": 0.4065040650406504, + "new_route_accuracy": 0.4065040650406504, + "original_accuracy": 0.4065040650406504, + "baseline_correct_coverage": 0.4065040650406504, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.4065040650406504, + "new_route_conditional_on_baseline_correct": 1.0 + }, + { + "donor": "different_bridge", + "execution": 0, + "component": "mlp_delta", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.024193548387096774, + "new_route_accuracy": 0.024193548387096774, + "original_accuracy": 0.18548387096774194, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.024193548387096774, + "new_route_conditional_on_baseline_correct": 0.02 + }, + { + "donor": "different_bridge", + "execution": 0, + "component": "mlp_delta", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.024193548387096774, + "new_route_accuracy": 0.024193548387096774, + "original_accuracy": 0.3951612903225806, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.024193548387096774, + "new_route_conditional_on_baseline_correct": 0.0 + }, + { + "donor": "different_bridge", + "execution": 0, + "component": "postresidual", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.03225806451612903, + "new_route_accuracy": 0.03225806451612903, + "original_accuracy": 0.1532258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.03225806451612903, + "new_route_conditional_on_baseline_correct": 0.02 + }, + { + "donor": "different_bridge", + "execution": 0, + "component": "postresidual", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.024193548387096774, + "new_route_accuracy": 0.024193548387096774, + "original_accuracy": 0.3951612903225806, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.024193548387096774, + "new_route_conditional_on_baseline_correct": 0.0 + }, + { + "donor": "different_bridge", + "execution": 1, + "component": "mlp_delta", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.04032258064516129, + "new_route_accuracy": 0.04032258064516129, + "original_accuracy": 0.4032258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.04032258064516129, + "new_route_conditional_on_baseline_correct": 0.0 + }, + { + "donor": "different_bridge", + "execution": 1, + "component": "mlp_delta", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.04032258064516129, + "new_route_accuracy": 0.04032258064516129, + "original_accuracy": 0.4032258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.04032258064516129, + "new_route_conditional_on_baseline_correct": 0.0 + }, + { + "donor": "different_bridge", + "execution": 1, + "component": "postresidual", + "position": 2, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.04032258064516129, + "new_route_accuracy": 0.04032258064516129, + "original_accuracy": 0.4032258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.04032258064516129, + "new_route_conditional_on_baseline_correct": 0.0 + }, + { + "donor": "different_bridge", + "execution": 1, + "component": "postresidual", + "position": 1, + "n": 124, + "selected_query_coverage": 1.0, + "full_pool_coverage": 1.0, + "new_route_answer_accuracy": 0.04032258064516129, + "new_route_accuracy": 0.04032258064516129, + "original_accuracy": 0.4032258064516129, + "baseline_correct_coverage": 0.4032258064516129, + "all_required_atomic_correct_coverage": 1.0, + "new_route_conditional_on_required_atomics": 0.04032258064516129, + "new_route_conditional_on_baseline_correct": 0.0 + } + ], + "wall_seconds": 0.7892516739666462, + "limits": [ + "Unfitted final-norm tied readout and raw cosine are descriptive", + "Attention maps are descriptive; patch tests entire state or MLP contribution", + "Layers, positions and queries are dependent measurements in one world" + ], + "source": { + "checkpoint": "results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/model-008000.pt", + "checkpoint_sha256": "b97563b9b9baf6d77799a34f16864ff52c8b5809c2007afa17b874d108df6dd5", + "step": 8000, + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 2, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/audit-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/audit-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..08a23ae87fc0558d65ace192b176f31f0ab1146a --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/audit-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "audit", + "gpu": 0, + "returncode": 0, + "seconds": 3.657519929111004 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/audit-process.log b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/audit-process.log new file mode 100644 index 0000000000000000000000000000000000000000..15281776e3ec2c992af5737e77f1674929453790 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/audit-process.log @@ -0,0 +1 @@ +{"passed": true, "dataset_rebuilt_and_archived_exact": true, "initial_model_exact": true, "checkpoint_nodes": [0, 8000, 32000, 64000], "endpoint_tokens_exact": true, "all_nodes_exposure_counters_exact": true, "stream_state_continuation_exact": true, "max_nll_difference": 0.0, "nll_rtol": 1e-05, "nll_atol": 1e-05, "utc": "2026-10-01T22:54:51.490942+00:00"} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/audit.json b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/audit.json new file mode 100644 index 0000000000000000000000000000000000000000..f038a63fc6745a1fed1014511160cd6e1324b51f --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/audit.json @@ -0,0 +1,18 @@ +{ + "passed": true, + "dataset_rebuilt_and_archived_exact": true, + "initial_model_exact": true, + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "endpoint_tokens_exact": true, + "all_nodes_exposure_counters_exact": true, + "stream_state_continuation_exact": true, + "max_nll_difference": 0.0, + "nll_rtol": 1e-05, + "nll_atol": 1e-05, + "utc": "2026-10-01T22:54:51.490942+00:00" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/complete.json b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..f654a59f88de0e431ca43cf23ba7ba2882614e02 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/complete.json @@ -0,0 +1,204 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "initial_model_sha256": "070ce83b6d09c63a16a916f7e7ce08e113dd663645d6f730d04f948bafe13a43", + "checkpoint_sha256": "62aa888a8af40b6815fc6bf1bd703e6b677d113f63148f836ddbb66c310658a2", + "finished_utc": "2026-10-01T22:54:47.720346+00:00", + "parameters": 208896, + "strata_counts": { + "atomic": 256, + "train_2": 444, + "train_3": 768, + "train_4": 768 + }, + "endpoint": { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 5.733296711696312e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 9.781827975530177e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.20967741935483872, + "answer_accuracy": 0.20967741935483872, + "answer_nll": 5.877518653869629, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.20967741935483872, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 11.534342765808105, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.046875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00014832851593382657, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.22796352583586627, + "answer_accuracy": 0.22796352583586627, + "answer_nll": 6.159613609313965, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.22796352583586627, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 12.800759315490723, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00014919994282536209, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.1404878048780488, + "answer_accuracy": 0.1404878048780488, + "answer_nll": 7.557298183441162, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.1404878048780488, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.952064514160156, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1735846996307373, + "training_seconds": 27.471658520400524, + "estimated_training_flops": 81738596352000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + }, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000, + "estimated_training_flops": 81738596352000, + "training_seconds": 27.471658520400524, + "process_seconds": 32.64521952718496, + "environment": { + "torch": "2.6.0+cu126", + "numpy": "1.23.5", + "cuda": "12.6", + "gpu": "NVIDIA L20X", + "tf32": true + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/input-spec.json b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/input-spec.json new file mode 100644 index 0000000000000000000000000000000000000000..16ccb41a2dd4930e5942ac7a801ae790f4915e57 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/input-spec.json @@ -0,0 +1,65 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/learning.json b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..6b8e08c70b1fa6c25dce52255196629fcb611103 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/learning.json @@ -0,0 +1,1162 @@ +[ + { + "step": 0, + "lr": 0.0, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.346866607666016 + }, + "train_2": { + "n": 444, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.329736232757568, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.346903324127197, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.334085464477539, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.356101989746094, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.362302303314209, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.343281269073486, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.334499359130859, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.341049671173096, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.346620559692383, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": null, + "training_seconds": 0.0, + "estimated_training_flops": 0, + "supervised_tokens": 0, + "padded_input_tokens": 0 + }, + { + "step": 256, + "lr": 0.0009999982891312849, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.1640625, + "answer_accuracy": 0.1640625, + "answer_nll": 3.299086809158325 + }, + "train_2": { + "n": 444, + "accuracy": 0.1373873873873874, + "answer_accuracy": 0.1373873873873874, + "answer_nll": 3.2139692306518555, + "atomic_correct_coverage": 0.08108108108108109, + "conditional_accuracy": 0.5833333333333334, + "autonomous_two_calls": 0.12387387387387387, + "autonomous_path_accuracy": 0.08108108108108109, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.08064516129032258, + "answer_accuracy": 0.08064516129032258, + "answer_nll": 3.3331971168518066, + "atomic_correct_coverage": 0.07258064516129033, + "conditional_accuracy": 0.3333333333333333, + "autonomous_two_calls": 0.13709677419354838, + "autonomous_path_accuracy": 0.07258064516129033, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 4.555891990661621, + "atomic_correct_coverage": 0.03125, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.046875, + "autonomous_path_accuracy": 0.03125, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.11588541666666667, + "answer_accuracy": 0.11588541666666667, + "answer_nll": 3.2857601642608643, + "atomic_correct_coverage": 0.037760416666666664, + "conditional_accuracy": 0.6551724137931034, + "autonomous_two_calls": 0.09765625, + "autonomous_path_accuracy": 0.037760416666666664, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.1094224924012158, + "answer_accuracy": 0.1094224924012158, + "answer_nll": 3.379608631134033, + "atomic_correct_coverage": 0.0486322188449848, + "conditional_accuracy": 0.375, + "autonomous_two_calls": 0.13069908814589665, + "autonomous_path_accuracy": 0.0486322188449848, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 4.938816547393799, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.01694915254237288, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.12890625, + "answer_accuracy": 0.12890625, + "answer_nll": 3.2964985370635986, + "atomic_correct_coverage": 0.018229166666666668, + "conditional_accuracy": 0.5714285714285714, + "autonomous_two_calls": 0.09635416666666667, + "autonomous_path_accuracy": 0.018229166666666668, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.09951219512195122, + "answer_accuracy": 0.09951219512195122, + "answer_nll": 3.4285964965820312, + "atomic_correct_coverage": 0.010731707317073172, + "conditional_accuracy": 0.45454545454545453, + "autonomous_two_calls": 0.07512195121951219, + "autonomous_path_accuracy": 0.010731707317073172, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 5.096118927001953, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": 1.892952799797058, + "training_seconds": 0.1104639582335949, + "estimated_training_flops": 326954385408, + "supervised_tokens": 212992, + "padded_input_tokens": 262144 + }, + { + "step": 512, + "lr": 0.0009999468942493638, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.9140625, + "answer_accuracy": 0.9140625, + "answer_nll": 0.8947567939758301 + }, + "train_2": { + "n": 444, + "accuracy": 0.6193693693693694, + "answer_accuracy": 0.6193693693693694, + "answer_nll": 1.550113320350647, + "atomic_correct_coverage": 0.9031531531531531, + "conditional_accuracy": 0.6433915211970075, + "autonomous_two_calls": 0.9031531531531531, + "autonomous_path_accuracy": 0.9031531531531531, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.21774193548387097, + "answer_accuracy": 0.21774193548387097, + "answer_nll": 2.895408868789673, + "atomic_correct_coverage": 0.8629032258064516, + "conditional_accuracy": 0.2336448598130841, + "autonomous_two_calls": 0.8629032258064516, + "autonomous_path_accuracy": 0.8629032258064516, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 5.199976921081543, + "atomic_correct_coverage": 0.6875, + "conditional_accuracy": 0.022727272727272728, + "autonomous_two_calls": 0.6875, + "autonomous_path_accuracy": 0.6875, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.3411458333333333, + "answer_accuracy": 0.3411458333333333, + "answer_nll": 2.222402334213257, + "atomic_correct_coverage": 0.84765625, + "conditional_accuracy": 0.37019969278033793, + "autonomous_two_calls": 0.84765625, + "autonomous_path_accuracy": 0.84765625, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.1641337386018237, + "answer_accuracy": 0.1641337386018237, + "answer_nll": 2.9348268508911133, + "atomic_correct_coverage": 0.8723404255319149, + "conditional_accuracy": 0.17421602787456447, + "autonomous_two_calls": 0.8723404255319149, + "autonomous_path_accuracy": 0.8723404255319149, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 5.513750076293945, + "atomic_correct_coverage": 0.576271186440678, + "conditional_accuracy": 0.029411764705882353, + "autonomous_two_calls": 0.5932203389830508, + "autonomous_path_accuracy": 0.576271186440678, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.2825520833333333, + "answer_accuracy": 0.2825520833333333, + "answer_nll": 2.482841730117798, + "atomic_correct_coverage": 0.7916666666666666, + "conditional_accuracy": 0.31414473684210525, + "autonomous_two_calls": 0.7942708333333334, + "autonomous_path_accuracy": 0.7916666666666666, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.13658536585365855, + "answer_accuracy": 0.13658536585365855, + "answer_nll": 3.2447147369384766, + "atomic_correct_coverage": 0.7902439024390244, + "conditional_accuracy": 0.15308641975308643, + "autonomous_two_calls": 0.7931707317073171, + "autonomous_path_accuracy": 0.7902439024390244, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 5.661643028259277, + "atomic_correct_coverage": 0.41509433962264153, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.4716981132075472, + "autonomous_path_accuracy": 0.41509433962264153, + "hop_count": 4 + } + }, + "loss": 1.6418012380599976, + "training_seconds": 0.22090744972229004, + "estimated_training_flops": 653908770816, + "supervised_tokens": 425984, + "padded_input_tokens": 524288 + }, + { + "step": 1000, + "lr": 0.0009996508880478938, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.04182861000299454 + }, + "train_2": { + "n": 444, + "accuracy": 0.9977477477477478, + "answer_accuracy": 0.9977477477477478, + "answer_nll": 0.0839880183339119, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9977477477477478, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.2903225806451613, + "answer_accuracy": 0.2903225806451613, + "answer_nll": 3.109168291091919, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2903225806451613, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 7.18263053894043, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.046875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9752604166666666, + "answer_accuracy": 0.9752604166666666, + "answer_nll": 0.20363612473011017, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9752604166666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.24620060790273557, + "answer_accuracy": 0.24620060790273557, + "answer_nll": 3.1925408840179443, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.24620060790273557, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 7.9352030754089355, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.921875, + "answer_accuracy": 0.921875, + "answer_nll": 0.373847097158432, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.921875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.16390243902439025, + "answer_accuracy": 0.16390243902439025, + "answer_nll": 4.311890125274658, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.16390243902439025, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 7.838522911071777, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.3353984355926514, + "training_seconds": 0.4310355633497238, + "estimated_training_flops": 1277165568000, + "supervised_tokens": 832000, + "padded_input_tokens": 1024000 + }, + { + "step": 2000, + "lr": 0.000998233549067816, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.011010147631168365 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.018847517669200897, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.22580645161290322, + "answer_accuracy": 0.22580645161290322, + "answer_nll": 3.833946704864502, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.22580645161290322, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 8.335877418518066, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9986979166666666, + "answer_accuracy": 0.9986979166666666, + "answer_nll": 0.0367509163916111, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9986979166666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.24316109422492402, + "answer_accuracy": 0.24316109422492402, + "answer_nll": 3.9599156379699707, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.24316109422492402, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 9.146464347839355, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9934895833333334, + "answer_accuracy": 0.9934895833333334, + "answer_nll": 0.03932107612490654, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9934895833333334, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.15414634146341463, + "answer_accuracy": 0.15414634146341463, + "answer_nll": 5.339705944061279, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.15414634146341463, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 8.624388694763184, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.2294633388519287, + "training_seconds": 0.8607939667999744, + "estimated_training_flops": 2554331136000, + "supervised_tokens": 1664000, + "padded_input_tokens": 2048000 + }, + { + "step": 4000, + "lr": 0.0009921451014991594, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0027140469755977392 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.003726556431502104, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.25806451612903225, + "answer_accuracy": 0.25806451612903225, + "answer_nll": 4.314404487609863, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.25806451612903225, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 9.47008991241455, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00439372519031167, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.2553191489361702, + "answer_accuracy": 0.2553191489361702, + "answer_nll": 4.369507789611816, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2553191489361702, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 10.70443344116211, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0045104557648301125, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.1551219512195122, + "answer_accuracy": 0.1551219512195122, + "answer_nll": 6.062958240509033, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.1551219512195122, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 10.094388008117676, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.2073472738265991, + "training_seconds": 1.7196418605744839, + "estimated_training_flops": 5108662272000, + "supervised_tokens": 3328000, + "padded_input_tokens": 4096000 + }, + { + "step": 8000, + "lr": 0.0009672142859549292, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.99609375, + "answer_accuracy": 0.99609375, + "answer_nll": 0.019246121868491173 + }, + "train_2": { + "n": 444, + "accuracy": 0.972972972972973, + "answer_accuracy": 0.972972972972973, + "answer_nll": 0.10678722709417343, + "atomic_correct_coverage": 0.9842342342342343, + "conditional_accuracy": 0.9725400457665904, + "autonomous_two_calls": 0.9842342342342343, + "autonomous_path_accuracy": 0.9842342342342343, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.20967741935483872, + "answer_accuracy": 0.20967741935483872, + "answer_nll": 5.193539142608643, + "atomic_correct_coverage": 0.9919354838709677, + "conditional_accuracy": 0.2032520325203252, + "autonomous_two_calls": 0.9919354838709677, + "autonomous_path_accuracy": 0.9919354838709677, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 10.400691986083984, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.8854166666666666, + "answer_accuracy": 0.8854166666666666, + "answer_nll": 0.38309574127197266, + "atomic_correct_coverage": 0.9765625, + "conditional_accuracy": 0.884, + "autonomous_two_calls": 0.9765625, + "autonomous_path_accuracy": 0.9765625, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.23100303951367782, + "answer_accuracy": 0.23100303951367782, + "answer_nll": 4.871762275695801, + "atomic_correct_coverage": 0.9635258358662614, + "conditional_accuracy": 0.2302839116719243, + "autonomous_two_calls": 0.9635258358662614, + "autonomous_path_accuracy": 0.9635258358662614, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 11.80068588256836, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.8385416666666666, + "answer_accuracy": 0.8385416666666666, + "answer_nll": 0.5307543277740479, + "atomic_correct_coverage": 0.9583333333333334, + "conditional_accuracy": 0.8383152173913043, + "autonomous_two_calls": 0.9583333333333334, + "autonomous_path_accuracy": 0.9583333333333334, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.13463414634146342, + "answer_accuracy": 0.13463414634146342, + "answer_nll": 6.602649688720703, + "atomic_correct_coverage": 0.9619512195121951, + "conditional_accuracy": 0.1328600405679513, + "autonomous_two_calls": 0.9619512195121951, + "autonomous_path_accuracy": 0.9619512195121951, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.387476921081543, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.2675038576126099, + "training_seconds": 3.4370771795511246, + "estimated_training_flops": 10217324544000, + "supervised_tokens": 6656000, + "padded_input_tokens": 8192000 + }, + { + "step": 16000, + "lr": 0.0008705396215758866, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00043348659528419375 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.000664903549477458, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.21774193548387097, + "answer_accuracy": 0.21774193548387097, + "answer_nll": 5.296144008636475, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.21774193548387097, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 11.07605266571045, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.046875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.000986517290584743, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.22796352583586627, + "answer_accuracy": 0.22796352583586627, + "answer_nll": 5.162211894989014, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.22796352583586627, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 12.562101364135742, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.001013452303595841, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.15024390243902438, + "answer_accuracy": 0.15024390243902438, + "answer_nll": 7.019964218139648, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.15024390243902438, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.675963401794434, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1864815950393677, + "training_seconds": 6.870782166719437, + "estimated_training_flops": 20434649088000, + "supervised_tokens": 13312000, + "padded_input_tokens": 16384000 + }, + { + "step": 32000, + "lr": 0.0005522158479326845, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00015135634748730808 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0002563308225944638, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.21774193548387097, + "answer_accuracy": 0.21774193548387097, + "answer_nll": 5.540139675140381, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.21774193548387097, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 11.130552291870117, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00037102619535289705, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.23100303951367782, + "answer_accuracy": 0.23100303951367782, + "answer_nll": 5.659815311431885, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.23100303951367782, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 12.36515998840332, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00035770866088569164, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.14536585365853658, + "answer_accuracy": 0.14536585365853658, + "answer_nll": 7.027374267578125, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.14536585365853658, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.896111488342285, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1758761405944824, + "training_seconds": 13.73819974809885, + "estimated_training_flops": 40869298176000, + "supervised_tokens": 26624000, + "padded_input_tokens": 32768000 + }, + { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 5.733296711696312e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 9.781827975530177e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.20967741935483872, + "answer_accuracy": 0.20967741935483872, + "answer_nll": 5.877518653869629, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.20967741935483872, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 11.534342765808105, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.046875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00014832851593382657, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.22796352583586627, + "answer_accuracy": 0.22796352583586627, + "answer_nll": 6.159613609313965, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.22796352583586627, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 12.800759315490723, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00014919994282536209, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.1404878048780488, + "answer_accuracy": 0.1404878048780488, + "answer_nll": 7.557298183441162, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.1404878048780488, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.952064514160156, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1735846996307373, + "training_seconds": 27.471658520400524, + "estimated_training_flops": 81738596352000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + } +] diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/spec.json b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/spec.json new file mode 100644 index 0000000000000000000000000000000000000000..2771f2f42369d3de489f6400acf75c17ea5f71f0 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/spec.json @@ -0,0 +1,66 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/status.json new file mode 100644 index 0000000000000000000000000000000000000000..d332dc2b8bde7c33219e9f3a7045f6466b684b92 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/status.json @@ -0,0 +1,4 @@ +{ + "step": 64000, + "budget": 64000 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/train-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/train-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..6d91a3b47ffc5a6ca6901ec7468d5709c9671927 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/train-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "train", + "gpu": 0, + "returncode": 0, + "seconds": 40.82625624164939 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/train-process.log b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/train-process.log new file mode 100644 index 0000000000000000000000000000000000000000..d40b146f578ef0c2e77aa0939f65b52265c2edf2 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/train-process.log @@ -0,0 +1,10 @@ +{"run": "w751011-i752011-d128-l1-r1-s64000", "step": 0, "atomic": 0.0, "familiar": {"2": 0.0, "3": 0.0, "4": 0.0}} +{"run": "w751011-i752011-d128-l1-r1-s64000", "step": 256, "atomic": 0.1640625, "familiar": {"2": 0.08064516129032258, "3": 0.1094224924012158, "4": 0.09951219512195122}} +{"run": "w751011-i752011-d128-l1-r1-s64000", "step": 512, "atomic": 0.9140625, "familiar": {"2": 0.21774193548387097, "3": 0.1641337386018237, "4": 0.13658536585365855}} +{"run": "w751011-i752011-d128-l1-r1-s64000", "step": 1000, "atomic": 1.0, "familiar": {"2": 0.2903225806451613, "3": 0.24620060790273557, "4": 0.16390243902439025}} +{"run": "w751011-i752011-d128-l1-r1-s64000", "step": 2000, "atomic": 1.0, "familiar": {"2": 0.22580645161290322, "3": 0.24316109422492402, "4": 0.15414634146341463}} +{"run": "w751011-i752011-d128-l1-r1-s64000", "step": 4000, "atomic": 1.0, "familiar": {"2": 0.25806451612903225, "3": 0.2553191489361702, "4": 0.1551219512195122}} +{"run": "w751011-i752011-d128-l1-r1-s64000", "step": 8000, "atomic": 0.99609375, "familiar": {"2": 0.20967741935483872, "3": 0.23100303951367782, "4": 0.13463414634146342}} +{"run": "w751011-i752011-d128-l1-r1-s64000", "step": 16000, "atomic": 1.0, "familiar": {"2": 0.21774193548387097, "3": 0.22796352583586627, "4": 0.15024390243902438}} +{"run": "w751011-i752011-d128-l1-r1-s64000", "step": 32000, "atomic": 1.0, "familiar": {"2": 0.21774193548387097, "3": 0.23100303951367782, "4": 0.14536585365853658}} +{"run": "w751011-i752011-d128-l1-r1-s64000", "step": 64000, "atomic": 1.0, "familiar": {"2": 0.20967741935483872, "3": 0.22796352583586627, "4": 0.1404878048780488}} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/world-metadata.json b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/world-metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0d160c9e2f6a49b4d5ec9ef5ade290343346beb5 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r1-s64000/world-metadata.json @@ -0,0 +1,11519 @@ +{ + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "id_mask": [ + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + false, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + true, + true, + false, + false, + false, + true, + true, + true, + false, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + false, + true, + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true + ], + "source_worlds": { + "2": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": true, + "phi_actual": 2.3125, + "mixed_composite_excluded": 392, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 444, + "test_composite": 124, + "test_full_composite": 124, + "ood_composite": 64, + "unused_composite": 0 + }, + "dataset_sha256": "59e810faf8478e02f02ffd785bce119413d62608e48c5d41a4c24032dda4abc2", + "warnings": [ + "Training request capped at eligible pool" + ], + "hops": 2, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 568, + "all_paths_total": 1024, + "training_fraction_of_id_paths": 0.7816901408450704, + "training_fraction_of_nonreserved_id_paths": 1.0, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 29, + 49, + 14, + 32, + 62, + 86, + 66, + 5, + 8, + 83, + 50, + 88, + 116, + 23, + 87, + 80, + 100, + 9, + 117, + 81, + 79, + 54, + 91, + 111, + 19, + 4, + 68, + 2, + 113, + 40, + 65, + 27, + 38, + 0, + 41, + 21, + 1, + 78, + 82, + 101, + 15, + 20, + 59, + 35, + 99, + 53, + 84, + 123, + 114, + 56, + 108, + 72, + 55, + 104, + 92, + 22, + 89, + 43, + 18, + 11, + 74, + 13, + 52, + 60, + 25, + 109, + 48, + 57, + 71, + 115, + 30, + 110, + 61, + 119, + 44, + 95, + 106, + 47, + 121, + 24, + 69, + 118, + 98, + 39, + 34, + 112, + 26, + 102, + 36, + 75, + 33, + 105, + 96, + 51, + 94, + 58, + 90, + 12, + 10, + 97, + 76, + 107, + 93, + 42, + 6, + 17, + 46, + 122, + 64, + 67, + 73, + 85, + 77, + 28, + 7, + 45, + 3, + 120, + 63, + 70, + 37, + 16, + 31, + 103 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 444, + "any_repeated_entity_n": 45, + "any_repeated_entity_fraction": 0.10135135135135136, + "answer_equals_preceding_entity_n": 33, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 185, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 0, + 4, + 2, + 0, + 1, + 0, + 2, + 0, + 3, + 2, + 0, + 1, + 2, + 0, + 0, + 2, + 3, + 3, + 2, + 1, + 3, + 3, + 0, + 3, + 2, + 2, + 0, + 2, + 3, + 1, + 2, + 4, + 3, + 3, + 2, + 0, + 0, + 1, + 3, + 0, + 0, + 4, + 4, + 1, + 0, + 2, + 2, + 0, + 0, + 0, + 1, + 4, + 3, + 0, + 0, + 1, + 0, + 3, + 0, + 0, + 4, + 2, + 2, + 2, + 0, + 2, + 2, + 0, + 2, + 3, + 0, + 0, + 2, + 3, + 3, + 4, + 0, + 3, + 4, + 2, + 3, + 0, + 2, + 2, + 0, + 3, + 1, + 3, + 3, + 3, + 0, + 2, + 3, + 1, + 0, + 3, + 2, + 3, + 3, + 3, + 1, + 2, + 2, + 2, + 0, + 3, + 2, + 4, + 2, + 2, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 3, + 3, + 0, + 3, + 3, + 2, + 3, + 3, + 0, + 1, + 3, + 3, + 1, + 2, + 3, + 1, + 1, + 1, + 4, + 3, + 3, + 0, + 2, + 3, + 2, + 3, + 1, + 3, + 0, + 3, + 2, + 0, + 0, + 2, + 2, + 4, + 1, + 3, + 3, + 3, + 0, + 2, + 2, + 2, + 2, + 2, + 0, + 3, + 0, + 0, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 0, + 2, + 0, + 3, + 2, + 2, + 4, + 2, + 0, + 4, + 2, + 3, + 4, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 4, + 2, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 2, + 2, + 3, + 1, + 2, + 2, + 2, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 2, + 1, + 0, + 1, + 3, + 4, + 2, + 2, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 182, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 0, + 3, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 0, + 5, + 3, + 0, + 1, + 1, + 1, + 3, + 0, + 4, + 4, + 4, + 0, + 5, + 4, + 1, + 2, + 1, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 3, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 5, + 4, + 0, + 1, + 2, + 0, + 0, + 4, + 6, + 5, + 5, + 0, + 2, + 2, + 2, + 1, + 0, + 2, + 3, + 3, + 2, + 2, + 2, + 2, + 2, + 0, + 2, + 2, + 4, + 0, + 4, + 3, + 1, + 1, + 1, + 1, + 2, + 2, + 1, + 0, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 0, + 2, + 3, + 0, + 4, + 0, + 1, + 1, + 2, + 3, + 0, + 3, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 2, + 1, + 3, + 3, + 3, + 2, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 2, + 2, + 2, + 2, + 2, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 3, + 2, + 0, + 3, + 2, + 2, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 2, + 3, + 1, + 5, + 6, + 7, + 6, + 3, + 2, + 0, + 3, + 2, + 3, + 2, + 3, + 0, + 4, + 3, + 3, + 1, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 1, + 2, + 2, + 0, + 5, + 0, + 6, + 0, + 0, + 4, + 4, + 3, + 1, + 3, + 2, + 2, + 0, + 2, + 3, + 2, + 4, + 0, + 3, + 3, + 2, + 0, + 2, + 3, + 4, + 4, + 4, + 3 + ], + "id_count_min": 0, + "id_count_max": 7 + } + ] + }, + "test_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + }, + "test_full_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 3, + 0, + 4, + 0, + 4, + 3, + 2, + 3, + 0, + 3, + 4, + 0, + 8, + 5, + 4, + 4, + 0, + 5, + 0, + 5, + 3, + 0, + 3, + 4, + 0, + 0, + 7, + 6, + 3, + 3, + 2, + 4, + 6, + 0, + 7, + 6, + 6, + 0, + 7, + 7, + 2, + 4, + 5, + 4, + 4, + 4, + 0, + 0, + 2, + 4, + 0, + 0, + 8, + 9, + 6, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 6, + 5, + 0, + 0, + 4, + 0, + 4, + 0, + 0, + 5, + 4, + 4, + 3, + 0, + 7, + 6, + 0, + 3, + 5, + 0, + 0, + 6, + 9, + 8, + 9, + 0, + 5, + 6, + 4, + 4, + 0, + 4, + 5, + 3, + 5, + 3, + 5, + 5, + 5, + 0, + 4, + 5, + 5, + 0, + 7, + 5, + 4, + 4, + 4, + 2, + 4, + 4, + 3, + 0, + 4, + 3, + 5, + 2, + 4, + 4, + 0, + 0, + 4, + 3, + 0, + 7, + 0, + 3, + 3, + 5, + 6, + 0, + 6, + 4, + 3, + 4, + 4, + 0, + 1, + 3, + 3, + 1, + 4, + 5, + 3, + 2, + 4, + 7, + 6, + 5, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 7, + 5, + 0, + 0, + 4, + 4, + 6, + 3, + 5, + 4, + 5, + 0, + 6, + 5, + 6, + 5, + 5, + 0, + 6, + 0, + 0, + 0, + 6, + 3, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 0, + 4, + 3, + 4, + 0, + 0, + 5, + 5, + 3, + 7, + 10, + 9, + 8, + 3, + 4, + 0, + 6, + 4, + 5, + 6, + 5, + 0, + 8, + 5, + 6, + 5, + 0, + 6, + 4, + 0, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 9, + 0, + 8, + 0, + 0, + 6, + 6, + 6, + 2, + 5, + 4, + 4, + 0, + 2, + 3, + 4, + 6, + 0, + 5, + 5, + 3, + 0, + 3, + 6, + 8, + 6, + 6, + 5 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 444, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 444, + "any_relevant_fact_in_composite_training_n": 444, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 444, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 185, + 182 + ], + "within_split_majority_tail": { + "target_token": 8, + "count": 16, + "fraction": 0.036036036036036036, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.036036036036036036, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08783783783783784, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08783783783783784, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 36, + 67, + 66, + 43 + ], + [ + 47, + 69, + 66, + 56 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.13063063063063063, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.13063063063063063, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 54, + 66, + 66, + 43 + ], + [ + 11, + 66, + 66, + 22 + ] + ] + } + ] + }, + "test_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 15, + 68, + 66, + 34 + ], + [ + 18, + 68, + 66, + 22 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 35, + 66, + 66, + 53 + ], + [ + 55, + 66, + 66, + 60 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 66, + 53 + ], + [ + 5, + 69, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 53 + ], + [ + 25, + 66, + 66, + 16 + ] + ] + } + ] + }, + "ood_composite": { + "n": 64, + "unique_relevant_atomic_facts": 53, + "relevant_atomic_fact_coverage_of_graph": 0.20703125, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 44, + 39 + ], + "within_split_majority_tail": { + "target_token": 58, + "count": 5, + "fraction": 0.078125, + "distinct_targets": 30 + }, + "train_composite_majority_tail_fraction": 0.0, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.25, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 6, + 67, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.328125, + "single_target_group_query_fraction": 0.03125, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.328125, + "multi_target_groups": 14, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 13, + 66, + 66, + 13 + ] + ] + } + ] + }, + "unused_composite": { + "n": 0, + "unique_relevant_atomic_facts": 0, + "relevant_atomic_fact_coverage_of_graph": 0.0, + "all_relevant_facts_in_atomic_training_fraction": null, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": null, + "all_id_queries": 0, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 0, + 0 + ], + "within_split_majority_tail": { + "target_token": null, + "count": 0, + "fraction": null, + "distinct_targets": 0 + }, + "train_composite_majority_tail_fraction": null, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + }, + { + "suffix_relation_count": 2, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "3": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 2331, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 329, + "test_full_composite": 329, + "ood_composite": 59, + "unused_composite": 609 + }, + "dataset_sha256": "874230d99d7b1184953935d1476d34c3d69968bcc196b499299cf4c63dc75d6f", + "warnings": [], + "hops": 3, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 1706, + "all_paths_total": 4096, + "training_fraction_of_id_paths": 0.4501758499413834, + "training_fraction_of_nonreserved_id_paths": 0.5577342047930284, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 177, + 263, + 289, + 328, + 73, + 17, + 112, + 159, + 45, + 110, + 16, + 286, + 225, + 25, + 95, + 24, + 49, + 66, + 230, + 201, + 19, + 7, + 172, + 323, + 321, + 152, + 181, + 58, + 313, + 169, + 218, + 231, + 221, + 121, + 285, + 243, + 150, + 256, + 292, + 141, + 105, + 51, + 34, + 37, + 102, + 266, + 196, + 139, + 106, + 250, + 65, + 28, + 195, + 188, + 113, + 52, + 228, + 173, + 246, + 99, + 125, + 167, + 175, + 244, + 61, + 47, + 178, + 257, + 50, + 2, + 301, + 252, + 55, + 202, + 165, + 41, + 148, + 140, + 309, + 239, + 213, + 238, + 128, + 318, + 97, + 86, + 242, + 311, + 88, + 197, + 248, + 96, + 293, + 273, + 155, + 281, + 90, + 214, + 87, + 278, + 270, + 21, + 237, + 35, + 71, + 44, + 157, + 315, + 156, + 174, + 222, + 4, + 134, + 249, + 32, + 119, + 260, + 130, + 232, + 259, + 192, + 183, + 291, + 185, + 264, + 79, + 75, + 104, + 13, + 296, + 26, + 133, + 101, + 272, + 304, + 205, + 319, + 254, + 11, + 162, + 48, + 93, + 306, + 190, + 290, + 27, + 262, + 168, + 116, + 200, + 109, + 277, + 118, + 29, + 279, + 268, + 314, + 111, + 245, + 288, + 298, + 186, + 81, + 226, + 12, + 324, + 227, + 171, + 18, + 326, + 233, + 179, + 15, + 307, + 170, + 144, + 275, + 43, + 287, + 320, + 103, + 36, + 215, + 302, + 164, + 153, + 120, + 59, + 1, + 94, + 209, + 189, + 180, + 76, + 77, + 123, + 98, + 83, + 108, + 224, + 40, + 67, + 129, + 229, + 54, + 269, + 149, + 265, + 297, + 22, + 92, + 303, + 126, + 282, + 223, + 42, + 191, + 216, + 100, + 135, + 184, + 14, + 72, + 163, + 253, + 131, + 207, + 3, + 255, + 82, + 166, + 312, + 241, + 295, + 251, + 204, + 84, + 57, + 274, + 78, + 299, + 8, + 276, + 10, + 217, + 212, + 176, + 267, + 74, + 107, + 147, + 327, + 91, + 33, + 305, + 151, + 38, + 199, + 325, + 0, + 182, + 122, + 9, + 300, + 235, + 160, + 85, + 317, + 187, + 208, + 56, + 219, + 161, + 70, + 80, + 308, + 31, + 124, + 194, + 316, + 220, + 145, + 154, + 115, + 258, + 271, + 210, + 198, + 310, + 60, + 68, + 234, + 114, + 247, + 62, + 64, + 322, + 283, + 23, + 284, + 203, + 261, + 136, + 294, + 89, + 30, + 211, + 63, + 6, + 20, + 158, + 146, + 53, + 5, + 143, + 117, + 137, + 132, + 138, + 193, + 127, + 280, + 236, + 69, + 39, + 206, + 142, + 46, + 240 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 117, + "any_repeated_entity_fraction": 0.15234375, + "answer_equals_preceding_entity_n": 63, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 189, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 5, + 0, + 7, + 2, + 2, + 6, + 0, + 5, + 3, + 0, + 7, + 5, + 5, + 2, + 0, + 5, + 0, + 6, + 6, + 0, + 7, + 2, + 0, + 0, + 2, + 4, + 3, + 5, + 3, + 4, + 4, + 0, + 6, + 5, + 3, + 0, + 3, + 7, + 0, + 4, + 7, + 4, + 3, + 4, + 0, + 4, + 4, + 6, + 0, + 0, + 5, + 5, + 5, + 0, + 3, + 2, + 0, + 0, + 0, + 4, + 6, + 5, + 0, + 0, + 3, + 0, + 3, + 0, + 0, + 9, + 2, + 6, + 3, + 0, + 2, + 1, + 0, + 3, + 4, + 0, + 0, + 4, + 3, + 4, + 7, + 0, + 4, + 6, + 3, + 7, + 0, + 1, + 3, + 7, + 3, + 3, + 2, + 5, + 7, + 0, + 2, + 8, + 4, + 0, + 6, + 5, + 7, + 7, + 5, + 3, + 3, + 4, + 0, + 0, + 4, + 8, + 4, + 6, + 5, + 3, + 0, + 0, + 5, + 3, + 0, + 2, + 0, + 5, + 5, + 3, + 4, + 0, + 3, + 4, + 1, + 3, + 7, + 0, + 1, + 3, + 4, + 3, + 4, + 5, + 2, + 2, + 4, + 6, + 5, + 3, + 0, + 3, + 4, + 4, + 2, + 2, + 3, + 0, + 4, + 3, + 0, + 0, + 2, + 3, + 5, + 3, + 3, + 4, + 5, + 0, + 4, + 7, + 1, + 4, + 1, + 0, + 2, + 0, + 0, + 0, + 3, + 3, + 2, + 4, + 0, + 5, + 4, + 5, + 0, + 0, + 1, + 1, + 4, + 0, + 0, + 2, + 5, + 3, + 1, + 4, + 1, + 4, + 3, + 0, + 0, + 6, + 3, + 5, + 7, + 3, + 0, + 5, + 2, + 6, + 5, + 0, + 5, + 7, + 0, + 3, + 6, + 0, + 6, + 6, + 5, + 0, + 3, + 0, + 6, + 0, + 0, + 4, + 2, + 4, + 4, + 5, + 2, + 4, + 0, + 1, + 4, + 3, + 4, + 0, + 6, + 2, + 6, + 0, + 4, + 5, + 5, + 5, + 7, + 4 + ], + "id_count_min": 0, + "id_count_max": 9 + }, + { + "hop": 2, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 4, + 0, + 1, + 2, + 0, + 1, + 0, + 6, + 4, + 0, + 8, + 10, + 4, + 3, + 0, + 8, + 0, + 8, + 3, + 0, + 1, + 3, + 0, + 0, + 7, + 11, + 2, + 1, + 1, + 1, + 10, + 0, + 8, + 6, + 5, + 0, + 7, + 7, + 0, + 3, + 3, + 2, + 3, + 2, + 0, + 2, + 1, + 2, + 0, + 0, + 12, + 11, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 4, + 0, + 0, + 4, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 2, + 0, + 6, + 4, + 0, + 11, + 6, + 0, + 0, + 4, + 5, + 7, + 13, + 0, + 1, + 4, + 3, + 3, + 0, + 7, + 6, + 8, + 2, + 3, + 2, + 4, + 2, + 0, + 4, + 1, + 5, + 0, + 6, + 9, + 2, + 1, + 1, + 2, + 7, + 3, + 1, + 0, + 2, + 2, + 1, + 1, + 5, + 1, + 0, + 0, + 5, + 5, + 0, + 3, + 0, + 1, + 4, + 1, + 3, + 0, + 5, + 4, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 0, + 0, + 3, + 7, + 5, + 6, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 2, + 2, + 2, + 1, + 0, + 3, + 0, + 8, + 9, + 6, + 8, + 3, + 0, + 2, + 0, + 0, + 0, + 4, + 3, + 1, + 3, + 0, + 3, + 5, + 6, + 0, + 0, + 3, + 2, + 4, + 0, + 0, + 6, + 6, + 3, + 10, + 14, + 7, + 15, + 3, + 2, + 0, + 1, + 3, + 4, + 4, + 4, + 0, + 11, + 7, + 8, + 5, + 0, + 5, + 5, + 0, + 1, + 4, + 0, + 2, + 2, + 4, + 0, + 10, + 0, + 9, + 0, + 0, + 9, + 8, + 5, + 3, + 0, + 3, + 4, + 0, + 5, + 1, + 3, + 3, + 0, + 7, + 2, + 5, + 0, + 1, + 5, + 9, + 6, + 6, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 175, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 6, + 5, + 2, + 1, + 0, + 2, + 2, + 0, + 7, + 7, + 5, + 7, + 0, + 7, + 0, + 9, + 3, + 0, + 2, + 2, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 1, + 5, + 0, + 5, + 5, + 9, + 0, + 8, + 7, + 3, + 3, + 3, + 2, + 2, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 9, + 5, + 8, + 0, + 4, + 2, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 4, + 3, + 2, + 0, + 6, + 3, + 0, + 5, + 3, + 0, + 0, + 4, + 5, + 10, + 6, + 0, + 3, + 4, + 5, + 7, + 0, + 5, + 9, + 5, + 1, + 2, + 2, + 0, + 1, + 0, + 1, + 4, + 10, + 0, + 8, + 7, + 1, + 2, + 2, + 2, + 2, + 4, + 4, + 0, + 4, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 3, + 1, + 0, + 2, + 0, + 7, + 7, + 8, + 9, + 0, + 6, + 4, + 1, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 3, + 4, + 3, + 6, + 1, + 4, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 16, + 9, + 0, + 0, + 3, + 3, + 4, + 2, + 4, + 3, + 3, + 0, + 10, + 8, + 7, + 8, + 4, + 0, + 4, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 0, + 4, + 5, + 5, + 0, + 0, + 3, + 5, + 3, + 0, + 0, + 5, + 5, + 3, + 14, + 5, + 8, + 6, + 6, + 5, + 0, + 4, + 5, + 2, + 1, + 5, + 0, + 6, + 12, + 7, + 0, + 0, + 1, + 1, + 0, + 2, + 6, + 0, + 2, + 3, + 2, + 0, + 9, + 0, + 5, + 0, + 0, + 5, + 7, + 2, + 6, + 6, + 8, + 8, + 0, + 0, + 1, + 2, + 6, + 0, + 3, + 8, + 1, + 0, + 4, + 4, + 11, + 7, + 8, + 7 + ], + "id_count_min": 0, + "id_count_max": 16 + } + ] + }, + "test_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + }, + "test_full_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 192, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 6, + 0, + 12, + 0, + 14, + 9, + 4, + 8, + 0, + 13, + 9, + 0, + 22, + 22, + 14, + 12, + 0, + 20, + 0, + 23, + 12, + 0, + 10, + 7, + 0, + 0, + 16, + 22, + 5, + 6, + 6, + 6, + 19, + 0, + 19, + 16, + 17, + 0, + 18, + 21, + 3, + 10, + 13, + 8, + 8, + 7, + 0, + 8, + 6, + 8, + 0, + 0, + 26, + 21, + 18, + 0, + 8, + 4, + 0, + 0, + 0, + 8, + 10, + 11, + 0, + 0, + 9, + 0, + 5, + 0, + 0, + 12, + 6, + 11, + 7, + 0, + 14, + 8, + 0, + 19, + 13, + 0, + 0, + 12, + 13, + 21, + 26, + 0, + 8, + 14, + 11, + 17, + 0, + 13, + 18, + 20, + 6, + 8, + 6, + 9, + 10, + 0, + 7, + 13, + 19, + 0, + 20, + 21, + 10, + 10, + 8, + 7, + 12, + 11, + 5, + 0, + 10, + 11, + 7, + 8, + 12, + 4, + 0, + 0, + 13, + 9, + 0, + 7, + 0, + 13, + 16, + 12, + 16, + 0, + 14, + 12, + 3, + 8, + 9, + 0, + 1, + 3, + 4, + 3, + 14, + 13, + 5, + 6, + 10, + 19, + 11, + 13, + 0, + 4, + 6, + 5, + 2, + 2, + 3, + 0, + 27, + 19, + 0, + 0, + 7, + 8, + 11, + 7, + 8, + 7, + 11, + 0, + 22, + 24, + 14, + 20, + 8, + 0, + 8, + 0, + 0, + 0, + 9, + 7, + 5, + 9, + 0, + 12, + 14, + 16, + 0, + 0, + 7, + 8, + 11, + 0, + 0, + 13, + 16, + 9, + 25, + 23, + 16, + 25, + 12, + 7, + 0, + 11, + 11, + 11, + 12, + 12, + 0, + 22, + 21, + 21, + 10, + 0, + 11, + 13, + 0, + 6, + 16, + 0, + 10, + 11, + 11, + 0, + 22, + 0, + 20, + 0, + 0, + 18, + 17, + 11, + 13, + 11, + 13, + 16, + 0, + 6, + 6, + 8, + 13, + 0, + 16, + 12, + 12, + 0, + 9, + 14, + 25, + 18, + 21, + 17 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.75, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.0234375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.026041666666666668, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 189, + 177, + 175 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 43, + "fraction": 0.055989583333333336, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.055989583333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10807291666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10807291666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.1640625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.1640625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.23177083333333334, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23177083333333334, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + } + ] + }, + "test_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 54, + 69, + 68, + 66, + 8 + ], + [ + 65, + 68, + 67, + 66, + 25 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 11, + 67, + 66, + 66, + 45 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 69, + 66, + 42 + ], + [ + 4, + 69, + 67, + 66, + 59 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 67, + 66, + 66, + 45 + ], + [ + 12, + 69, + 66, + 66, + 16 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "ood_composite": { + "n": 59, + "unique_relevant_atomic_facts": 51, + "relevant_atomic_fact_coverage_of_graph": 0.19921875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 59, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 41, + 30, + 31 + ], + "within_split_majority_tail": { + "target_token": 60, + "count": 6, + "fraction": 0.1016949152542373, + "distinct_targets": 25 + }, + "train_composite_majority_tail_fraction": 0.03389830508474576, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.23728813559322035, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23728813559322035, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 8, + 67, + 69, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.5423728813559322, + "single_target_group_query_fraction": 0.1016949152542373, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.5423728813559322, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 39, + "empirical_modal_target_fraction": 0.7288135593220338, + "single_target_group_query_fraction": 0.4745762711864407, + "singleton_group_query_fraction": 0.4067796610169492, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 0.5932203389830508, + "multi_query_empirical_modal_target_fraction": 0.5428571428571428, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 13, + 66, + 66, + 66, + 13 + ], + [ + 18, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "unused_composite": { + "n": 609, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 609, + "any_relevant_fact_in_composite_training_n": 609, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 609, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 186, + 172, + 174 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 26, + "fraction": 0.042692939244663386, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03940886699507389, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07717569786535304, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07717569786535304, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 69, + 67, + 66, + 52 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14614121510673234, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14614121510673234, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 67, + 66, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.22660098522167488, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.22660098522167488, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 66, + 10 + ], + [ + 6, + 66, + 66, + 66, + 60 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "4": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 11180, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 512, + "test_full_composite": 1025, + "ood_composite": 53, + "unused_composite": 3358 + }, + "dataset_sha256": "11ec0124d665d8362ddc331d5c39bc251f7cada4bc5263b5524390fbb9319e85", + "warnings": [], + "hops": 4, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 5151, + "all_paths_total": 16384, + "training_fraction_of_id_paths": 0.14909726266744322, + "training_fraction_of_nonreserved_id_paths": 0.1861366941347552, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 560, + 766, + 474, + 184, + 609, + 39, + 576, + 63, + 547, + 821, + 853, + 222, + 688, + 718, + 268, + 448, + 856, + 266, + 593, + 433, + 505, + 736, + 138, + 300, + 982, + 250, + 165, + 817, + 112, + 984, + 545, + 654, + 773, + 700, + 312, + 651, + 154, + 297, + 224, + 639, + 16, + 411, + 440, + 225, + 825, + 972, + 709, + 355, + 903, + 846, + 10, + 353, + 449, + 498, + 782, + 803, + 106, + 85, + 810, + 528, + 58, + 194, + 514, + 488, + 289, + 789, + 424, + 889, + 1014, + 877, + 417, + 4, + 691, + 597, + 81, + 412, + 401, + 635, + 331, + 199, + 115, + 341, + 743, + 447, + 288, + 965, + 950, + 21, + 507, + 399, + 519, + 414, + 953, + 403, + 834, + 619, + 486, + 379, + 347, + 969, + 974, + 952, + 568, + 30, + 337, + 882, + 722, + 955, + 506, + 831, + 359, + 418, + 454, + 105, + 516, + 157, + 109, + 940, + 228, + 95, + 145, + 642, + 543, + 787, + 124, + 243, + 996, + 1007, + 464, + 571, + 721, + 921, + 745, + 340, + 710, + 634, + 253, + 947, + 838, + 986, + 520, + 442, + 841, + 429, + 948, + 126, + 605, + 744, + 922, + 181, + 1004, + 958, + 544, + 192, + 1016, + 75, + 430, + 247, + 238, + 649, + 800, + 600, + 103, + 76, + 352, + 827, + 296, + 606, + 369, + 441, + 842, + 848, + 357, + 406, + 670, + 416, + 293, + 677, + 973, + 910, + 264, + 434, + 196, + 113, + 149, + 515, + 939, + 808, + 131, + 871, + 720, + 478, + 586, + 936, + 906, + 432, + 724, + 822, + 160, + 933, + 62, + 561, + 633, + 824, + 407, + 226, + 33, + 248, + 680, + 804, + 740, + 208, + 167, + 214, + 476, + 233, + 302, + 292, + 220, + 6, + 750, + 189, + 503, + 90, + 91, + 914, + 937, + 93, + 187, + 366, + 951, + 373, + 18, + 695, + 203, + 310, + 625, + 398, + 339, + 241, + 556, + 570, + 812, + 944, + 14, + 562, + 327, + 667, + 303, + 100, + 173, + 623, + 860, + 781, + 283, + 924, + 1000, + 180, + 899, + 767, + 523, + 125, + 316, + 564, + 1, + 536, + 726, + 786, + 930, + 168, + 546, + 360, + 957, + 741, + 935, + 971, + 332, + 481, + 703, + 136, + 445, + 162, + 590, + 111, + 38, + 326, + 190, + 342, + 72, + 541, + 487, + 524, + 278, + 764, + 174, + 646, + 757, + 946, + 270, + 102, + 761, + 141, + 799, + 28, + 919, + 601, + 86, + 183, + 47, + 675, + 885, + 956, + 836, + 218, + 335, + 307, + 317, + 37, + 596, + 120, + 648, + 1003, + 702, + 291, + 96, + 839, + 943, + 807, + 9, + 32, + 828, + 732, + 542, + 36, + 908, + 855, + 279, + 538, + 768, + 754, + 587, + 987, + 142, + 598, + 287, + 678, + 880, + 589, + 71, + 370, + 469, + 473, + 553, + 143, + 427, + 404, + 391, + 286, + 869, + 928, + 621, + 462, + 338, + 133, + 52, + 525, + 857, + 334, + 477, + 41, + 423, + 615, + 459, + 784, + 508, + 826, + 815, + 567, + 79, + 656, + 261, + 329, + 219, + 620, + 415, + 636, + 832, + 756, + 27, + 425, + 663, + 309, + 734, + 867, + 497, + 169, + 659, + 932, + 452, + 193, + 475, + 118, + 495, + 176, + 161, + 275, + 44, + 992, + 466, + 1001, + 989, + 428, + 212, + 668, + 8, + 792, + 381, + 696, + 467, + 911, + 172, + 22, + 153, + 660, + 13, + 613, + 849, + 319, + 74, + 299, + 758, + 276, + 833, + 387, + 19, + 993, + 376, + 368, + 594, + 708, + 684, + 727, + 130, + 693, + 237, + 402, + 595, + 728, + 107, + 114, + 540, + 256, + 345, + 83, + 156, + 669, + 210, + 731, + 150, + 627, + 419, + 1024, + 51, + 491, + 672, + 874, + 762, + 797, + 844, + 585, + 938, + 980, + 901, + 273, + 470, + 554, + 121, + 671, + 60, + 915, + 351, + 909, + 61, + 321, + 479, + 284, + 492, + 674, + 765, + 178, + 875, + 348, + 661, + 234, + 249, + 723, + 1020, + 259, + 629, + 236, + 117, + 305, + 673, + 582, + 422, + 611, + 861, + 483, + 413, + 377, + 97, + 999 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 194, + "any_repeated_entity_fraction": 0.2526041666666667, + "answer_equals_preceding_entity_n": 84, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 184, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 3, + 0, + 6, + 3, + 0, + 3, + 0, + 3, + 4, + 0, + 7, + 10, + 0, + 3, + 0, + 6, + 0, + 5, + 3, + 0, + 6, + 4, + 0, + 0, + 4, + 7, + 2, + 4, + 3, + 2, + 5, + 0, + 4, + 6, + 1, + 0, + 7, + 6, + 3, + 3, + 6, + 6, + 6, + 4, + 0, + 1, + 3, + 3, + 0, + 0, + 5, + 6, + 4, + 0, + 1, + 1, + 0, + 0, + 0, + 4, + 6, + 7, + 0, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 1, + 3, + 4, + 0, + 3, + 1, + 0, + 4, + 3, + 0, + 0, + 0, + 6, + 6, + 10, + 0, + 5, + 6, + 5, + 5, + 0, + 4, + 5, + 5, + 5, + 1, + 5, + 4, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 3, + 3, + 4, + 4, + 4, + 3, + 6, + 1, + 0, + 4, + 7, + 5, + 6, + 2, + 4, + 0, + 0, + 5, + 1, + 0, + 3, + 0, + 4, + 6, + 3, + 1, + 0, + 4, + 5, + 1, + 2, + 7, + 0, + 0, + 3, + 6, + 1, + 3, + 4, + 0, + 0, + 4, + 2, + 4, + 3, + 0, + 2, + 6, + 5, + 4, + 4, + 7, + 0, + 1, + 1, + 0, + 0, + 2, + 2, + 4, + 2, + 4, + 4, + 4, + 0, + 3, + 8, + 1, + 3, + 7, + 0, + 3, + 0, + 0, + 0, + 5, + 5, + 3, + 5, + 0, + 6, + 9, + 11, + 0, + 0, + 2, + 1, + 7, + 0, + 0, + 2, + 2, + 6, + 6, + 3, + 5, + 7, + 3, + 3, + 0, + 5, + 5, + 5, + 7, + 3, + 0, + 2, + 3, + 5, + 8, + 0, + 8, + 7, + 0, + 3, + 7, + 0, + 4, + 3, + 6, + 0, + 4, + 0, + 3, + 0, + 0, + 3, + 7, + 3, + 8, + 3, + 4, + 1, + 0, + 3, + 2, + 2, + 3, + 0, + 4, + 2, + 4, + 0, + 4, + 8, + 8, + 8, + 3, + 5 + ], + "id_count_min": 0, + "id_count_max": 11 + }, + { + "hop": 2, + "id_edges_covered": 173, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 4, + 0, + 9, + 7, + 6, + 2, + 0, + 5, + 0, + 7, + 3, + 0, + 4, + 3, + 0, + 0, + 6, + 7, + 1, + 1, + 0, + 2, + 9, + 0, + 4, + 6, + 4, + 0, + 5, + 7, + 1, + 3, + 3, + 3, + 2, + 3, + 0, + 1, + 2, + 2, + 0, + 0, + 14, + 9, + 6, + 0, + 1, + 0, + 0, + 0, + 0, + 5, + 4, + 2, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 2, + 0, + 5, + 3, + 0, + 13, + 5, + 0, + 0, + 4, + 10, + 9, + 15, + 0, + 3, + 4, + 2, + 2, + 0, + 8, + 5, + 3, + 1, + 2, + 4, + 5, + 3, + 0, + 1, + 5, + 8, + 0, + 8, + 4, + 0, + 1, + 0, + 1, + 6, + 3, + 2, + 0, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 0, + 7, + 5, + 0, + 3, + 0, + 3, + 5, + 3, + 4, + 0, + 2, + 4, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 1, + 0, + 3, + 8, + 3, + 5, + 0, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 8, + 6, + 0, + 0, + 3, + 1, + 4, + 0, + 1, + 1, + 4, + 0, + 9, + 14, + 0, + 10, + 3, + 0, + 3, + 0, + 0, + 0, + 9, + 2, + 1, + 6, + 0, + 2, + 2, + 5, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 4, + 5, + 6, + 12, + 8, + 9, + 9, + 2, + 6, + 0, + 7, + 1, + 5, + 5, + 3, + 0, + 4, + 11, + 12, + 1, + 0, + 2, + 5, + 0, + 1, + 0, + 0, + 5, + 2, + 8, + 0, + 11, + 0, + 5, + 0, + 0, + 8, + 8, + 7, + 6, + 5, + 1, + 2, + 0, + 4, + 3, + 4, + 7, + 0, + 7, + 7, + 0, + 0, + 3, + 3, + 7, + 10, + 9, + 12 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 172, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 4, + 0, + 5, + 2, + 0, + 1, + 0, + 3, + 2, + 0, + 6, + 4, + 3, + 2, + 0, + 9, + 0, + 12, + 6, + 0, + 6, + 3, + 0, + 0, + 7, + 15, + 1, + 0, + 2, + 1, + 7, + 0, + 5, + 5, + 13, + 0, + 8, + 13, + 2, + 3, + 2, + 1, + 1, + 2, + 0, + 1, + 2, + 1, + 0, + 0, + 5, + 7, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 3, + 0, + 8, + 2, + 0, + 10, + 3, + 0, + 0, + 2, + 10, + 11, + 3, + 0, + 5, + 8, + 4, + 4, + 0, + 5, + 4, + 5, + 3, + 0, + 1, + 2, + 0, + 0, + 1, + 4, + 4, + 0, + 9, + 8, + 2, + 1, + 3, + 2, + 2, + 1, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 7, + 5, + 5, + 0, + 5, + 11, + 1, + 4, + 2, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 3, + 2, + 4, + 4, + 4, + 3, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 11, + 12, + 0, + 0, + 4, + 5, + 6, + 0, + 4, + 5, + 5, + 0, + 7, + 12, + 6, + 10, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 5, + 5, + 4, + 0, + 2, + 1, + 5, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 5, + 5, + 5, + 12, + 8, + 7, + 4, + 4, + 7, + 0, + 6, + 4, + 6, + 6, + 3, + 0, + 10, + 6, + 13, + 4, + 0, + 3, + 2, + 0, + 4, + 3, + 0, + 1, + 2, + 2, + 0, + 12, + 0, + 3, + 0, + 0, + 5, + 3, + 2, + 10, + 4, + 6, + 5, + 0, + 1, + 0, + 1, + 6, + 0, + 9, + 4, + 5, + 0, + 2, + 3, + 8, + 7, + 5, + 9 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 4, + "id_edges_covered": 169, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 0, + 2, + 0, + 5, + 9, + 2, + 5, + 0, + 6, + 0, + 4, + 3, + 0, + 0, + 2, + 0, + 0, + 10, + 5, + 0, + 3, + 2, + 0, + 5, + 0, + 6, + 9, + 15, + 0, + 12, + 9, + 1, + 1, + 0, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 6, + 6, + 5, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 1, + 0, + 5, + 6, + 0, + 8, + 8, + 0, + 5, + 6, + 0, + 0, + 6, + 14, + 8, + 5, + 0, + 6, + 2, + 5, + 7, + 0, + 7, + 3, + 8, + 1, + 4, + 1, + 1, + 3, + 0, + 5, + 2, + 6, + 0, + 9, + 8, + 1, + 1, + 1, + 1, + 1, + 4, + 4, + 0, + 1, + 0, + 3, + 1, + 2, + 2, + 0, + 0, + 1, + 4, + 0, + 2, + 0, + 5, + 2, + 4, + 5, + 0, + 6, + 8, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 1, + 2, + 5, + 2, + 6, + 6, + 0, + 0, + 2, + 2, + 0, + 0, + 0, + 0, + 14, + 11, + 0, + 0, + 5, + 5, + 5, + 3, + 2, + 4, + 2, + 0, + 7, + 9, + 7, + 6, + 3, + 0, + 5, + 0, + 0, + 0, + 2, + 5, + 5, + 1, + 0, + 4, + 2, + 1, + 0, + 0, + 6, + 5, + 8, + 0, + 0, + 10, + 2, + 4, + 9, + 10, + 14, + 11, + 7, + 2, + 0, + 5, + 2, + 2, + 2, + 8, + 0, + 8, + 9, + 8, + 2, + 0, + 4, + 4, + 0, + 2, + 2, + 0, + 1, + 1, + 0, + 0, + 9, + 0, + 3, + 0, + 0, + 6, + 7, + 2, + 11, + 5, + 6, + 6, + 0, + 2, + 3, + 0, + 1, + 0, + 6, + 6, + 6, + 0, + 4, + 2, + 5, + 4, + 5, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + } + ] + }, + "test_composite": { + "n": 512, + "any_repeated_entity_n": 116, + "any_repeated_entity_fraction": 0.2265625, + "answer_equals_preceding_entity_n": 54, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 174, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 1, + 2, + 1, + 6, + 0, + 3, + 4, + 0, + 3, + 2, + 5, + 0, + 0, + 4, + 0, + 1, + 2, + 0, + 4, + 2, + 0, + 0, + 3, + 3, + 3, + 0, + 3, + 5, + 4, + 0, + 5, + 2, + 2, + 0, + 2, + 3, + 2, + 3, + 4, + 6, + 3, + 2, + 0, + 5, + 1, + 1, + 0, + 0, + 2, + 5, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 4, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 4, + 1, + 3, + 1, + 0, + 2, + 2, + 0, + 3, + 2, + 0, + 0, + 2, + 6, + 4, + 3, + 0, + 2, + 5, + 2, + 3, + 0, + 4, + 7, + 4, + 1, + 3, + 2, + 3, + 3, + 0, + 1, + 2, + 2, + 0, + 5, + 5, + 5, + 5, + 6, + 0, + 5, + 3, + 1, + 0, + 3, + 5, + 6, + 2, + 3, + 1, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 5, + 4, + 3, + 0, + 5, + 5, + 3, + 5, + 1, + 0, + 0, + 1, + 5, + 1, + 2, + 3, + 2, + 0, + 1, + 5, + 3, + 3, + 0, + 3, + 2, + 1, + 4, + 2, + 4, + 0, + 10, + 3, + 0, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 0, + 0, + 3, + 3, + 4, + 2, + 0, + 1, + 0, + 0, + 0, + 4, + 1, + 0, + 1, + 0, + 4, + 7, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 3, + 3, + 2, + 2, + 3, + 1, + 2, + 0, + 3, + 0, + 7, + 4, + 2, + 3, + 1, + 0, + 4, + 2, + 2, + 3, + 0, + 4, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 3, + 4, + 5, + 4, + 0, + 5, + 0, + 2, + 1, + 1, + 3, + 0, + 4, + 3, + 7, + 0, + 0, + 2, + 1, + 2, + 0, + 2 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 2, + "id_edges_covered": 155, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 2, + 2, + 0, + 4, + 7, + 2, + 2, + 0, + 7, + 0, + 7, + 2, + 0, + 2, + 1, + 0, + 0, + 6, + 3, + 0, + 2, + 0, + 1, + 5, + 0, + 5, + 2, + 3, + 0, + 7, + 13, + 2, + 2, + 2, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 9, + 9, + 3, + 0, + 1, + 2, + 0, + 0, + 0, + 3, + 2, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 3, + 0, + 0, + 5, + 1, + 0, + 6, + 1, + 0, + 0, + 0, + 5, + 7, + 6, + 0, + 0, + 2, + 4, + 1, + 0, + 2, + 3, + 7, + 2, + 4, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 0, + 2, + 7, + 2, + 1, + 2, + 0, + 3, + 0, + 7, + 0, + 2, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 4, + 2, + 0, + 7, + 0, + 2, + 3, + 0, + 5, + 0, + 3, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 1, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 12, + 2, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 1, + 3, + 0, + 1, + 3, + 2, + 7, + 3, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 2, + 1, + 4, + 0, + 0, + 3, + 7, + 2, + 10, + 12, + 3, + 7, + 2, + 0, + 0, + 4, + 4, + 2, + 3, + 1, + 0, + 5, + 2, + 6, + 2, + 0, + 3, + 1, + 0, + 2, + 2, + 0, + 4, + 6, + 3, + 0, + 6, + 0, + 5, + 0, + 0, + 4, + 6, + 4, + 3, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 2, + 0, + 4, + 4, + 4, + 0, + 2, + 5, + 6, + 9, + 3, + 2 + ], + "id_count_min": 0, + "id_count_max": 13 + }, + { + "hop": 3, + "id_edges_covered": 156, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 2, + 3, + 5, + 0, + 2, + 0, + 0, + 4, + 3, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 0, + 0, + 0, + 7, + 9, + 0, + 2, + 0, + 1, + 4, + 0, + 6, + 3, + 8, + 0, + 6, + 9, + 0, + 1, + 2, + 3, + 3, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 7, + 4, + 3, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 5, + 1, + 0, + 4, + 4, + 0, + 0, + 5, + 4, + 3, + 4, + 0, + 5, + 4, + 2, + 4, + 0, + 4, + 2, + 6, + 1, + 1, + 3, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 7, + 4, + 1, + 0, + 0, + 1, + 3, + 2, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 2, + 0, + 0, + 5, + 1, + 0, + 2, + 0, + 3, + 7, + 3, + 6, + 0, + 4, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 6, + 1, + 2, + 4, + 4, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 5, + 3, + 0, + 0, + 2, + 2, + 3, + 2, + 3, + 1, + 5, + 0, + 4, + 9, + 2, + 6, + 6, + 0, + 4, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 5, + 2, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 2, + 2, + 8, + 3, + 5, + 4, + 3, + 5, + 0, + 2, + 3, + 4, + 3, + 3, + 0, + 9, + 6, + 10, + 1, + 0, + 1, + 2, + 0, + 0, + 1, + 0, + 1, + 1, + 2, + 0, + 6, + 0, + 0, + 0, + 0, + 8, + 6, + 6, + 3, + 2, + 2, + 5, + 0, + 0, + 2, + 0, + 3, + 0, + 5, + 2, + 2, + 0, + 1, + 2, + 5, + 6, + 6, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 4, + "id_edges_covered": 164, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 2, + 0, + 3, + 2, + 6, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 4, + 5, + 2, + 1, + 1, + 1, + 2, + 0, + 5, + 3, + 4, + 0, + 4, + 10, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 2, + 1, + 1, + 0, + 0, + 2, + 4, + 4, + 0, + 0, + 2, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 0, + 0, + 0, + 0, + 0, + 4, + 0, + 2, + 0, + 6, + 1, + 0, + 6, + 2, + 0, + 0, + 7, + 4, + 8, + 9, + 0, + 4, + 6, + 1, + 3, + 0, + 4, + 3, + 4, + 3, + 1, + 0, + 1, + 5, + 0, + 3, + 1, + 5, + 0, + 4, + 7, + 1, + 1, + 0, + 2, + 1, + 3, + 1, + 0, + 1, + 2, + 2, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 2, + 5, + 4, + 7, + 0, + 3, + 3, + 2, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 4, + 2, + 2, + 1, + 3, + 5, + 2, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 8, + 0, + 0, + 0, + 2, + 4, + 3, + 2, + 2, + 4, + 0, + 5, + 1, + 9, + 9, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 2, + 0, + 0, + 2, + 3, + 6, + 9, + 4, + 7, + 2, + 6, + 4, + 0, + 5, + 1, + 2, + 1, + 0, + 0, + 7, + 5, + 5, + 0, + 0, + 0, + 0, + 0, + 5, + 1, + 0, + 4, + 3, + 1, + 0, + 2, + 0, + 3, + 0, + 0, + 3, + 2, + 1, + 5, + 4, + 6, + 4, + 0, + 0, + 0, + 2, + 5, + 0, + 3, + 4, + 3, + 0, + 2, + 3, + 6, + 3, + 5, + 1 + ], + "id_count_min": 0, + "id_count_max": 10 + } + ] + }, + "test_full_composite": { + "n": 1025, + "any_repeated_entity_n": 243, + "any_repeated_entity_fraction": 0.2370731707317073, + "answer_equals_preceding_entity_n": 116, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 187, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 5, + 0, + 5, + 0, + 2, + 4, + 2, + 12, + 0, + 6, + 5, + 0, + 8, + 8, + 8, + 3, + 0, + 8, + 0, + 2, + 4, + 0, + 9, + 3, + 0, + 0, + 5, + 5, + 4, + 0, + 5, + 7, + 6, + 0, + 11, + 5, + 3, + 0, + 5, + 6, + 4, + 3, + 7, + 11, + 4, + 5, + 0, + 7, + 3, + 4, + 0, + 0, + 7, + 10, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 6, + 6, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 7, + 1, + 9, + 3, + 0, + 4, + 4, + 0, + 5, + 5, + 0, + 0, + 3, + 8, + 6, + 6, + 0, + 3, + 10, + 7, + 5, + 0, + 6, + 10, + 7, + 2, + 8, + 4, + 6, + 6, + 0, + 5, + 9, + 6, + 0, + 6, + 8, + 7, + 6, + 10, + 0, + 10, + 6, + 5, + 0, + 7, + 8, + 6, + 5, + 5, + 2, + 0, + 0, + 5, + 5, + 0, + 4, + 0, + 5, + 11, + 7, + 12, + 0, + 5, + 14, + 4, + 8, + 6, + 0, + 2, + 5, + 6, + 3, + 2, + 4, + 4, + 0, + 2, + 13, + 3, + 7, + 0, + 6, + 3, + 4, + 9, + 5, + 7, + 0, + 13, + 5, + 0, + 0, + 6, + 0, + 7, + 3, + 3, + 7, + 5, + 0, + 3, + 7, + 4, + 6, + 4, + 0, + 4, + 0, + 0, + 0, + 5, + 4, + 1, + 3, + 0, + 6, + 12, + 5, + 0, + 0, + 4, + 1, + 3, + 0, + 0, + 5, + 9, + 3, + 5, + 6, + 2, + 6, + 1, + 4, + 0, + 9, + 6, + 4, + 5, + 2, + 0, + 7, + 6, + 7, + 6, + 0, + 9, + 4, + 0, + 3, + 6, + 0, + 6, + 6, + 2, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 8, + 6, + 7, + 5, + 1, + 6, + 0, + 2, + 2, + 9, + 4, + 0, + 11, + 4, + 14, + 0, + 0, + 3, + 7, + 5, + 2, + 6 + ], + "id_count_min": 0, + "id_count_max": 14 + }, + { + "hop": 2, + "id_edges_covered": 179, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 3, + 0, + 1, + 2, + 1, + 2, + 0, + 5, + 3, + 0, + 10, + 10, + 5, + 4, + 0, + 13, + 0, + 12, + 2, + 0, + 4, + 2, + 0, + 0, + 11, + 9, + 1, + 2, + 0, + 2, + 10, + 0, + 7, + 5, + 9, + 0, + 9, + 21, + 4, + 3, + 3, + 6, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 12, + 19, + 8, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 4, + 3, + 0, + 0, + 5, + 0, + 0, + 0, + 0, + 3, + 0, + 4, + 2, + 0, + 10, + 2, + 0, + 11, + 3, + 0, + 0, + 4, + 10, + 11, + 10, + 0, + 2, + 6, + 7, + 2, + 0, + 7, + 7, + 12, + 2, + 5, + 2, + 2, + 3, + 0, + 3, + 2, + 2, + 0, + 5, + 13, + 5, + 2, + 4, + 2, + 4, + 3, + 10, + 0, + 5, + 0, + 3, + 3, + 3, + 2, + 0, + 0, + 17, + 4, + 0, + 11, + 0, + 4, + 4, + 3, + 6, + 0, + 8, + 7, + 4, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 4, + 2, + 4, + 5, + 1, + 8, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 20, + 5, + 0, + 0, + 2, + 2, + 5, + 1, + 2, + 2, + 6, + 0, + 8, + 7, + 3, + 12, + 7, + 0, + 7, + 0, + 0, + 0, + 3, + 4, + 3, + 4, + 0, + 7, + 4, + 1, + 0, + 0, + 2, + 4, + 6, + 0, + 0, + 3, + 9, + 3, + 15, + 28, + 5, + 20, + 4, + 1, + 0, + 8, + 6, + 3, + 6, + 3, + 0, + 14, + 7, + 10, + 6, + 0, + 9, + 3, + 0, + 3, + 4, + 0, + 9, + 9, + 5, + 0, + 15, + 0, + 11, + 0, + 0, + 8, + 10, + 9, + 7, + 2, + 3, + 5, + 0, + 5, + 4, + 1, + 7, + 0, + 9, + 4, + 6, + 0, + 2, + 6, + 14, + 12, + 13, + 5 + ], + "id_count_min": 0, + "id_count_max": 28 + }, + { + "hop": 3, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 3, + 0, + 8, + 5, + 4, + 11, + 0, + 5, + 2, + 0, + 9, + 12, + 6, + 3, + 0, + 5, + 0, + 8, + 5, + 0, + 1, + 1, + 0, + 0, + 14, + 13, + 0, + 2, + 2, + 2, + 6, + 0, + 10, + 9, + 14, + 0, + 14, + 17, + 1, + 1, + 2, + 3, + 4, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 13, + 9, + 8, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 5, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 2, + 0, + 8, + 4, + 0, + 10, + 7, + 0, + 0, + 7, + 8, + 6, + 11, + 0, + 8, + 9, + 5, + 7, + 0, + 10, + 5, + 12, + 3, + 2, + 4, + 0, + 6, + 0, + 1, + 3, + 4, + 0, + 10, + 10, + 1, + 0, + 3, + 1, + 3, + 6, + 2, + 0, + 0, + 3, + 2, + 2, + 1, + 3, + 0, + 0, + 8, + 2, + 0, + 3, + 0, + 12, + 13, + 6, + 10, + 0, + 7, + 4, + 2, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 2, + 6, + 1, + 4, + 5, + 5, + 5, + 10, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 14, + 4, + 0, + 0, + 3, + 5, + 7, + 5, + 8, + 2, + 8, + 0, + 11, + 15, + 4, + 11, + 8, + 0, + 9, + 0, + 0, + 0, + 5, + 3, + 1, + 2, + 0, + 1, + 7, + 6, + 0, + 0, + 5, + 2, + 7, + 0, + 0, + 5, + 7, + 5, + 14, + 9, + 11, + 10, + 5, + 10, + 0, + 8, + 6, + 7, + 5, + 4, + 0, + 19, + 14, + 16, + 1, + 0, + 1, + 4, + 0, + 2, + 4, + 0, + 3, + 4, + 3, + 0, + 10, + 0, + 3, + 0, + 0, + 10, + 8, + 10, + 4, + 6, + 6, + 12, + 0, + 0, + 2, + 0, + 6, + 0, + 10, + 2, + 6, + 0, + 1, + 6, + 10, + 11, + 9, + 7 + ], + "id_count_min": 0, + "id_count_max": 19 + }, + { + "hop": 4, + "id_edges_covered": 181, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 1, + 0, + 4, + 0, + 1, + 4, + 0, + 1, + 2, + 0, + 8, + 6, + 10, + 8, + 0, + 10, + 0, + 8, + 1, + 0, + 2, + 4, + 0, + 0, + 7, + 8, + 3, + 1, + 1, + 3, + 5, + 0, + 11, + 7, + 10, + 0, + 11, + 17, + 1, + 1, + 1, + 1, + 1, + 4, + 0, + 5, + 1, + 2, + 0, + 0, + 7, + 11, + 6, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 1, + 2, + 0, + 0, + 6, + 0, + 0, + 0, + 0, + 1, + 6, + 2, + 3, + 0, + 14, + 11, + 0, + 11, + 6, + 0, + 0, + 10, + 7, + 12, + 12, + 0, + 5, + 10, + 6, + 4, + 0, + 9, + 8, + 8, + 5, + 1, + 0, + 1, + 6, + 0, + 5, + 4, + 14, + 0, + 12, + 12, + 1, + 1, + 1, + 2, + 5, + 6, + 2, + 0, + 2, + 4, + 3, + 1, + 3, + 1, + 0, + 0, + 3, + 4, + 0, + 4, + 0, + 5, + 12, + 7, + 14, + 0, + 8, + 5, + 5, + 3, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 4, + 5, + 3, + 4, + 10, + 7, + 3, + 0, + 4, + 1, + 3, + 0, + 0, + 0, + 0, + 9, + 15, + 0, + 0, + 3, + 4, + 5, + 5, + 6, + 4, + 7, + 0, + 8, + 8, + 12, + 14, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 7, + 6, + 0, + 4, + 3, + 2, + 0, + 0, + 9, + 6, + 5, + 0, + 0, + 2, + 4, + 8, + 16, + 10, + 15, + 9, + 10, + 8, + 0, + 9, + 3, + 3, + 2, + 1, + 0, + 14, + 9, + 10, + 2, + 0, + 0, + 2, + 0, + 6, + 5, + 0, + 5, + 3, + 2, + 0, + 5, + 0, + 4, + 0, + 0, + 7, + 5, + 9, + 8, + 7, + 9, + 9, + 0, + 1, + 1, + 2, + 10, + 0, + 4, + 6, + 4, + 0, + 4, + 10, + 9, + 10, + 11, + 10 + ], + "id_count_min": 0, + "id_count_max": 17 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 5, + 0, + 10, + 0, + 14, + 7, + 4, + 6, + 0, + 10, + 12, + 0, + 27, + 30, + 11, + 12, + 0, + 26, + 0, + 28, + 15, + 0, + 16, + 12, + 0, + 0, + 27, + 34, + 4, + 8, + 7, + 5, + 26, + 0, + 19, + 26, + 33, + 0, + 32, + 35, + 7, + 10, + 11, + 10, + 13, + 12, + 0, + 5, + 9, + 6, + 0, + 0, + 30, + 28, + 17, + 0, + 5, + 4, + 0, + 0, + 0, + 13, + 12, + 9, + 0, + 0, + 6, + 0, + 10, + 0, + 0, + 7, + 4, + 11, + 15, + 0, + 24, + 14, + 0, + 32, + 17, + 0, + 0, + 12, + 40, + 34, + 33, + 0, + 19, + 20, + 16, + 18, + 0, + 24, + 17, + 21, + 10, + 7, + 11, + 12, + 10, + 0, + 7, + 13, + 20, + 0, + 30, + 23, + 6, + 7, + 8, + 8, + 12, + 14, + 9, + 0, + 7, + 9, + 10, + 9, + 5, + 11, + 0, + 0, + 15, + 12, + 0, + 10, + 0, + 15, + 20, + 15, + 15, + 0, + 17, + 28, + 2, + 8, + 12, + 0, + 0, + 3, + 6, + 1, + 14, + 14, + 5, + 4, + 16, + 16, + 17, + 17, + 0, + 3, + 10, + 9, + 4, + 4, + 7, + 0, + 34, + 30, + 0, + 0, + 14, + 13, + 19, + 5, + 11, + 14, + 15, + 0, + 26, + 43, + 14, + 29, + 17, + 0, + 12, + 0, + 0, + 0, + 17, + 17, + 14, + 16, + 0, + 14, + 14, + 22, + 0, + 0, + 11, + 8, + 22, + 0, + 0, + 21, + 14, + 21, + 39, + 29, + 35, + 31, + 16, + 18, + 0, + 23, + 12, + 18, + 20, + 17, + 0, + 24, + 29, + 38, + 15, + 0, + 17, + 18, + 0, + 10, + 12, + 0, + 11, + 8, + 16, + 0, + 36, + 0, + 14, + 0, + 0, + 22, + 25, + 14, + 35, + 17, + 17, + 14, + 0, + 10, + 8, + 7, + 17, + 0, + 26, + 19, + 15, + 0, + 13, + 16, + 28, + 29, + 22, + 32 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 184, + 173, + 172, + 169 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 37, + "fraction": 0.048177083333333336, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.048177083333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10286458333333333, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10286458333333333, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 7, + 67, + 67, + 69, + 66, + 59 + ], + [ + 46, + 68, + 66, + 69, + 66, + 44 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.17447916666666666, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.17447916666666666, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 56, + 67, + 69, + 66, + 66, + 43 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.2643229166666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.2643229166666667, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 31, + 68, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 246, + "empirical_modal_target_fraction": 0.421875, + "single_target_group_query_fraction": 0.06380208333333333, + "singleton_group_query_fraction": 0.045572916666666664, + "multi_query_groups": 211, + "multi_query_coverage_fraction": 0.9544270833333334, + "multi_query_empirical_modal_target_fraction": 0.3942701227830832, + "multi_target_groups": 204, + "same_suffix_different_target_example": [ + [ + 28, + 66, + 66, + 66, + 66, + 60 + ], + [ + 39, + 66, + 66, + 66, + 66, + 32 + ] + ] + } + ] + }, + "test_composite": { + "n": 512, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 512, + "any_relevant_fact_in_composite_training_n": 512, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 512, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 174, + 155, + 156, + 164 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 20, + "fraction": 0.0390625, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.0390625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.091796875, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.091796875, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 49, + 66, + 67, + 67, + 66, + 63 + ], + [ + 39, + 68, + 66, + 69, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.15625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.15625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 9, + 67, + 69, + 66, + 66, + 34 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.279296875, + "single_target_group_query_fraction": 0.001953125, + "singleton_group_query_fraction": 0.001953125, + "multi_query_groups": 63, + "multi_query_coverage_fraction": 0.998046875, + "multi_query_empirical_modal_target_fraction": 0.27788649706457924, + "multi_target_groups": 63, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 13, + 67, + 66, + 66, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 217, + "empirical_modal_target_fraction": 0.490234375, + "single_target_group_query_fraction": 0.138671875, + "singleton_group_query_fraction": 0.115234375, + "multi_query_groups": 158, + "multi_query_coverage_fraction": 0.884765625, + "multi_query_empirical_modal_target_fraction": 0.423841059602649, + "multi_target_groups": 152, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 68, + 65 + ], + [ + 12, + 66, + 66, + 66, + 68, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 1025, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 1023, + "any_relevant_fact_in_composite_training_n": 1025, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9995121951219512, + "all_id_queries": 1025, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 187, + 179, + 177, + 181 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 44, + "fraction": 0.042926829268292686, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.042926829268292686, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08195121951219513, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08195121951219513, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 69, + 66, + 25 + ], + [ + 2, + 67, + 68, + 67, + 66, + 57 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14146341463414633, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14146341463414633, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 67, + 66, + 66, + 53 + ], + [ + 4, + 68, + 66, + 66, + 66, + 60 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.24, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.24, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 4, + 68, + 66, + 66, + 66, + 60 + ], + [ + 6, + 66, + 66, + 66, + 66, + 36 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 249, + "empirical_modal_target_fraction": 0.3648780487804878, + "single_target_group_query_fraction": 0.02048780487804878, + "singleton_group_query_fraction": 0.014634146341463415, + "multi_query_groups": 234, + "multi_query_coverage_fraction": 0.9853658536585366, + "multi_query_empirical_modal_target_fraction": 0.35544554455445543, + "multi_target_groups": 231, + "same_suffix_different_target_example": [ + [ + 6, + 66, + 66, + 66, + 66, + 36 + ], + [ + 43, + 66, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "ood_composite": { + "n": 53, + "unique_relevant_atomic_facts": 48, + "relevant_atomic_fact_coverage_of_graph": 0.1875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 53, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 35, + 27, + 24, + 26 + ], + "within_split_majority_tail": { + "target_token": 54, + "count": 7, + "fraction": 0.1320754716981132, + "distinct_targets": 22 + }, + "train_composite_majority_tail_fraction": 0.018867924528301886, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.32075471698113206, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.32075471698113206, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 69, + 68, + 66, + 60 + ], + [ + 7, + 68, + 68, + 69, + 66, + 65 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.6981132075471698, + "single_target_group_query_fraction": 0.18867924528301888, + "singleton_group_query_fraction": 0.05660377358490566, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.9433962264150944, + "multi_query_empirical_modal_target_fraction": 0.68, + "multi_target_groups": 9, + "same_suffix_different_target_example": [ + [ + 8, + 67, + 69, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 32, + "empirical_modal_target_fraction": 0.9056603773584906, + "single_target_group_query_fraction": 0.7169811320754716, + "singleton_group_query_fraction": 0.37735849056603776, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.6226415094339622, + "multi_query_empirical_modal_target_fraction": 0.8484848484848485, + "multi_target_groups": 5, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 47, + "empirical_modal_target_fraction": 0.9622641509433962, + "single_target_group_query_fraction": 0.9056603773584906, + "singleton_group_query_fraction": 0.7924528301886793, + "multi_query_groups": 5, + "multi_query_coverage_fraction": 0.20754716981132076, + "multi_query_empirical_modal_target_fraction": 0.8181818181818182, + "multi_target_groups": 2, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + } + ] + }, + "unused_composite": { + "n": 3358, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 3354, + "any_relevant_fact_in_composite_training_n": 3358, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9997022036926743, + "all_id_queries": 3358, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192, + 185, + 185, + 184 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 143, + "fraction": 0.04258487194758785, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03335318642048839, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.09380583680762358, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.09380583680762358, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 67, + 66, + 57 + ], + [ + 2, + 67, + 66, + 68, + 66, + 50 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14502680166765933, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14502680166765933, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 67, + 66, + 66, + 10 + ], + [ + 3, + 69, + 67, + 66, + 66, + 53 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.197736748064324, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.197736748064324, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 67, + 66, + 66, + 66, + 44 + ], + [ + 5, + 66, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 256, + "empirical_modal_target_fraction": 0.25431804645622397, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 256, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25431804645622397, + "multi_target_groups": 256, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 66, + 5 + ], + [ + 7, + 66, + 66, + 66, + 66, + 45 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + } + }, + "same_atomic_and_id_mask_all_lengths": true, + "source_entity_offset": 2, + "entity_offset": 3, + "source_token_shift": 1, + "separator_token": 71, + "vocab_size": 72, + "evaluation_pools": "Complete test_full_composite and ood_composite", + "composition_supervision": "Terminal entity only; no intermediate entity", + "training_objective": "All nonpadding next tokens including EOS", + "holdout": "Complete queries held out within each length; not subpaths across lengths", + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "independent_audit": { + "passed": true, + "counts": { + "atomic": 256, + "train_2": 444, + "familiar_2": 124, + "strict_2": 64, + "train_3": 768, + "familiar_3": 329, + "strict_3": 59, + "train_4": 768, + "familiar_4": 1025, + "strict_4": 53 + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "truth_edges_independently_traversed": true, + "complete_query_overlap": 0, + "all_strict_facts_absent_from_composition_training": true, + "cross_length_subpath_holdout": false + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/audit-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/audit-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..38b232089625b303909b2711f91642a115f7dedf --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/audit-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "audit", + "gpu": 5, + "returncode": 0, + "seconds": 3.610089138150215 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/audit-process.log b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/audit-process.log new file mode 100644 index 0000000000000000000000000000000000000000..eb8338576e145a763d826c2bf458de657d4f6bdf --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/audit-process.log @@ -0,0 +1 @@ +{"passed": true, "dataset_rebuilt_and_archived_exact": true, "initial_model_exact": true, "checkpoint_nodes": [0, 8000, 32000, 64000], "endpoint_tokens_exact": true, "all_nodes_exposure_counters_exact": true, "stream_state_continuation_exact": true, "max_nll_difference": 0.0, "nll_rtol": 1e-05, "nll_atol": 1e-05, "utc": "2026-10-01T22:55:06.894877+00:00"} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/audit.json b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/audit.json new file mode 100644 index 0000000000000000000000000000000000000000..2f71c59716b269e1dc98dc73060de197c4c42502 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/audit.json @@ -0,0 +1,18 @@ +{ + "passed": true, + "dataset_rebuilt_and_archived_exact": true, + "initial_model_exact": true, + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "endpoint_tokens_exact": true, + "all_nodes_exposure_counters_exact": true, + "stream_state_continuation_exact": true, + "max_nll_difference": 0.0, + "nll_rtol": 1e-05, + "nll_atol": 1e-05, + "utc": "2026-10-01T22:55:06.894877+00:00" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/complete.json b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..f0809a614924d75aa8b1da94d6ac5c24994a5094 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/complete.json @@ -0,0 +1,204 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 2, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "initial_model_sha256": "b9922a4d8f3eb14785cc2b34527efdded5ef608161fa70ec01cd0d72d3e85105", + "checkpoint_sha256": "e8fa4d5aac86bf3b1afc6a2b45fcf8005b66c8d1d2c2a2d76e91ff7175197a6e", + "finished_utc": "2026-10-01T22:55:03.176268+00:00", + "parameters": 208896, + "strata_counts": { + "atomic": 256, + "train_2": 444, + "train_3": 768, + "train_4": 768 + }, + "endpoint": { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 4.290335709811188e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 5.048491948400624e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3064516129032258, + "answer_accuracy": 0.3064516129032258, + "answer_nll": 4.313929080963135, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3064516129032258, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0625, + "answer_accuracy": 0.0625, + "answer_nll": 10.152810096740723, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 7.742325396975502e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3161094224924012, + "answer_accuracy": 0.3161094224924012, + "answer_nll": 4.244347095489502, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3161094224924012, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 11.815160751342773, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 8.491261542076245e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.1951219512195122, + "answer_accuracy": 0.1951219512195122, + "answer_nll": 6.367430686950684, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.1951219512195122, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 10.996309280395508, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03773584905660377, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1728260517120361, + "training_seconds": 42.58710604533553, + "estimated_training_flops": 159853314048000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + }, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000, + "estimated_training_flops": 159853314048000, + "training_seconds": 42.58710604533553, + "process_seconds": 47.2271051928401, + "environment": { + "torch": "2.6.0+cu126", + "numpy": "1.23.5", + "cuda": "12.6", + "gpu": "NVIDIA L20X", + "tf32": true + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/input-spec.json b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/input-spec.json new file mode 100644 index 0000000000000000000000000000000000000000..9ba28aa4e5de71148c331099440691cca5adc2bc --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/input-spec.json @@ -0,0 +1,65 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 2, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/learning.json b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..9f829a747c543f9a08aacb86fa5dc330c1d66813 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/learning.json @@ -0,0 +1,1162 @@ +[ + { + "step": 0, + "lr": 0.0, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.328765392303467 + }, + "train_2": { + "n": 444, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.317643165588379, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.3323445320129395, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.33199405670166, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.005208333333333333, + "answer_nll": 4.3428053855896, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.0, + "answer_accuracy": 0.00303951367781155, + "answer_nll": 4.352818965911865, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 4.325112342834473, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.3238749504089355, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.3269195556640625, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.333094596862793, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": null, + "training_seconds": 0.0, + "estimated_training_flops": 0, + "supervised_tokens": 0, + "padded_input_tokens": 0 + }, + { + "step": 256, + "lr": 0.0009999982891312849, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.171875, + "answer_accuracy": 0.171875, + "answer_nll": 3.295504093170166 + }, + "train_2": { + "n": 444, + "accuracy": 0.12387387387387387, + "answer_accuracy": 0.12387387387387387, + "answer_nll": 3.2995731830596924, + "atomic_correct_coverage": 0.1036036036036036, + "conditional_accuracy": 0.6521739130434783, + "autonomous_two_calls": 0.15315315315315314, + "autonomous_path_accuracy": 0.1036036036036036, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.08870967741935484, + "answer_accuracy": 0.08870967741935484, + "answer_nll": 3.360414981842041, + "atomic_correct_coverage": 0.04838709677419355, + "conditional_accuracy": 0.5, + "autonomous_two_calls": 0.12096774193548387, + "autonomous_path_accuracy": 0.04838709677419355, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 4.538682460784912, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.10546875, + "answer_accuracy": 0.10546875, + "answer_nll": 3.3541839122772217, + "atomic_correct_coverage": 0.048177083333333336, + "conditional_accuracy": 0.6486486486486487, + "autonomous_two_calls": 0.11458333333333333, + "autonomous_path_accuracy": 0.048177083333333336, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.11246200607902736, + "answer_accuracy": 0.11246200607902736, + "answer_nll": 3.433732509613037, + "atomic_correct_coverage": 0.05167173252279635, + "conditional_accuracy": 0.35294117647058826, + "autonomous_two_calls": 0.13069908814589665, + "autonomous_path_accuracy": 0.05167173252279635, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.914778232574463, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.03389830508474576, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.1171875, + "answer_accuracy": 0.1171875, + "answer_nll": 3.3542842864990234, + "atomic_correct_coverage": 0.029947916666666668, + "conditional_accuracy": 0.5217391304347826, + "autonomous_two_calls": 0.12239583333333333, + "autonomous_path_accuracy": 0.029947916666666668, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.09170731707317073, + "answer_accuracy": 0.09170731707317073, + "answer_nll": 3.4812171459198, + "atomic_correct_coverage": 0.015609756097560976, + "conditional_accuracy": 0.6875, + "autonomous_two_calls": 0.07609756097560975, + "autonomous_path_accuracy": 0.015609756097560976, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 5.067986965179443, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.018867924528301886, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": 1.8978009223937988, + "training_seconds": 0.17090463265776634, + "estimated_training_flops": 639413256192, + "supervised_tokens": 212992, + "padded_input_tokens": 262144 + }, + { + "step": 512, + "lr": 0.0009999468942493638, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.7890625, + "answer_accuracy": 0.7890625, + "answer_nll": 1.2324001789093018 + }, + "train_2": { + "n": 444, + "accuracy": 0.5067567567567568, + "answer_accuracy": 0.5067567567567568, + "answer_nll": 1.8401976823806763, + "atomic_correct_coverage": 0.722972972972973, + "conditional_accuracy": 0.5638629283489096, + "autonomous_two_calls": 0.740990990990991, + "autonomous_path_accuracy": 0.722972972972973, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.18548387096774194, + "answer_accuracy": 0.18548387096774194, + "answer_nll": 2.864938497543335, + "atomic_correct_coverage": 0.7016129032258065, + "conditional_accuracy": 0.19540229885057472, + "autonomous_two_calls": 0.7016129032258065, + "autonomous_path_accuracy": 0.7016129032258065, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 5.036159515380859, + "atomic_correct_coverage": 0.375, + "conditional_accuracy": 0.041666666666666664, + "autonomous_two_calls": 0.390625, + "autonomous_path_accuracy": 0.375, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.2903645833333333, + "answer_accuracy": 0.2903645833333333, + "answer_nll": 2.461594343185425, + "atomic_correct_coverage": 0.6080729166666666, + "conditional_accuracy": 0.3490364025695932, + "autonomous_two_calls": 0.6341145833333334, + "autonomous_path_accuracy": 0.6080729166666666, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.18541033434650456, + "answer_accuracy": 0.18541033434650456, + "answer_nll": 2.933274030685425, + "atomic_correct_coverage": 0.6413373860182371, + "conditional_accuracy": 0.23222748815165878, + "autonomous_two_calls": 0.6534954407294833, + "autonomous_path_accuracy": 0.6413373860182371, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.05084745762711865, + "answer_accuracy": 0.05084745762711865, + "answer_nll": 5.591428756713867, + "atomic_correct_coverage": 0.2033898305084746, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.23728813559322035, + "autonomous_path_accuracy": 0.2033898305084746, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.2604166666666667, + "answer_accuracy": 0.2604166666666667, + "answer_nll": 2.6555745601654053, + "atomic_correct_coverage": 0.5260416666666666, + "conditional_accuracy": 0.32425742574257427, + "autonomous_two_calls": 0.5559895833333334, + "autonomous_path_accuracy": 0.5260416666666666, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.144390243902439, + "answer_accuracy": 0.144390243902439, + "answer_nll": 3.303999185562134, + "atomic_correct_coverage": 0.5336585365853659, + "conditional_accuracy": 0.170018281535649, + "autonomous_two_calls": 0.5609756097560976, + "autonomous_path_accuracy": 0.5336585365853659, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 5.760400772094727, + "atomic_correct_coverage": 0.09433962264150944, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.11320754716981132, + "autonomous_path_accuracy": 0.09433962264150944, + "hop_count": 4 + } + }, + "loss": 1.6818550825119019, + "training_seconds": 0.34156041219830513, + "estimated_training_flops": 1278826512384, + "supervised_tokens": 425984, + "padded_input_tokens": 524288 + }, + { + "step": 1000, + "lr": 0.0009996508880478938, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.059853412210941315 + }, + "train_2": { + "n": 444, + "accuracy": 0.9932432432432432, + "answer_accuracy": 0.9932432432432432, + "answer_nll": 0.11799556016921997, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9932432432432432, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.2903225806451613, + "answer_accuracy": 0.2903225806451613, + "answer_nll": 2.7711215019226074, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2903225806451613, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 6.969274997711182, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9388020833333334, + "answer_accuracy": 0.9388020833333334, + "answer_nll": 0.2968986928462982, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9388020833333334, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.25227963525835867, + "answer_accuracy": 0.25227963525835867, + "answer_nll": 2.816648244857788, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.25227963525835867, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 7.381756782531738, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9283854166666666, + "answer_accuracy": 0.9283854166666666, + "answer_nll": 0.35915544629096985, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9283854166666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.19219512195121952, + "answer_accuracy": 0.19219512195121952, + "answer_nll": 3.955986261367798, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.19219512195121952, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.05660377358490566, + "answer_accuracy": 0.05660377358490566, + "answer_nll": 7.656200408935547, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.05660377358490566, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.3526132106781006, + "training_seconds": 0.666612409055233, + "estimated_training_flops": 2497708032000, + "supervised_tokens": 832000, + "padded_input_tokens": 1024000 + }, + { + "step": 2000, + "lr": 0.000998233549067816, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.011567525565624237 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.015967270359396935, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.27419354838709675, + "answer_accuracy": 0.27419354838709675, + "answer_nll": 3.5038630962371826, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.27419354838709675, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 7.663869857788086, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9973958333333334, + "answer_accuracy": 0.9973958333333334, + "answer_nll": 0.031885650008916855, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9973958333333334, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.2917933130699088, + "answer_accuracy": 0.2917933130699088, + "answer_nll": 3.353496789932251, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2917933130699088, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 8.712507247924805, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9921875, + "answer_accuracy": 0.9921875, + "answer_nll": 0.04848119243979454, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9921875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.18634146341463415, + "answer_accuracy": 0.18634146341463415, + "answer_nll": 4.835184574127197, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.18634146341463415, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 8.948020935058594, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.2193074226379395, + "training_seconds": 1.3325702212750912, + "estimated_training_flops": 4995416064000, + "supervised_tokens": 1664000, + "padded_input_tokens": 2048000 + }, + { + "step": 4000, + "lr": 0.0009921451014991594, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.004490777850151062 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0065126256085932255, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.33064516129032256, + "answer_accuracy": 0.33064516129032256, + "answer_nll": 3.6855063438415527, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.33064516129032256, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 9.454710006713867, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.007376319263130426, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.2796352583586626, + "answer_accuracy": 0.2796352583586626, + "answer_nll": 3.8099586963653564, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2796352583586626, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 9.996013641357422, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9986979166666666, + "answer_accuracy": 0.9986979166666666, + "answer_nll": 0.010201238095760345, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9986979166666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.18829268292682927, + "answer_accuracy": 0.18829268292682927, + "answer_nll": 5.343805313110352, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.18829268292682927, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 9.627403259277344, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03773584905660377, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1993919610977173, + "training_seconds": 2.6637196876108646, + "estimated_training_flops": 9990832128000, + "supervised_tokens": 3328000, + "padded_input_tokens": 4096000 + }, + { + "step": 8000, + "lr": 0.0009672142859549292, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0008062723791226745 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0009261160157620907, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3629032258064516, + "answer_accuracy": 0.3629032258064516, + "answer_nll": 3.8336825370788574, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3629032258064516, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 9.959859848022461, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0014459959929808974, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3161094224924012, + "answer_accuracy": 0.3161094224924012, + "answer_nll": 3.700360059738159, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3161094224924012, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.05084745762711865, + "answer_accuracy": 0.05084745762711865, + "answer_nll": 11.061439514160156, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.05084745762711865, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.001454275450669229, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.21170731707317073, + "answer_accuracy": 0.21170731707317073, + "answer_nll": 5.87160062789917, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.21170731707317073, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 10.586995124816895, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1823116540908813, + "training_seconds": 5.324349492788315, + "estimated_training_flops": 19981664256000, + "supervised_tokens": 6656000, + "padded_input_tokens": 8192000 + }, + { + "step": 16000, + "lr": 0.0008705396215758866, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00033273629378527403 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00042589055374264717, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.33064516129032256, + "answer_accuracy": 0.33064516129032256, + "answer_nll": 4.02528190612793, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.33064516129032256, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0625, + "answer_accuracy": 0.0625, + "answer_nll": 9.832563400268555, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0006224902463145554, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3708206686930091, + "answer_accuracy": 0.3708206686930091, + "answer_nll": 3.7950212955474854, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3708206686930091, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.05084745762711865, + "answer_accuracy": 0.05084745762711865, + "answer_nll": 11.089930534362793, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.05084745762711865, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0006829653866589069, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.20878048780487804, + "answer_accuracy": 0.20878048780487804, + "answer_nll": 6.077852249145508, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.20878048780487804, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 11.13859748840332, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1801506280899048, + "training_seconds": 10.645813204348087, + "estimated_training_flops": 39963328512000, + "supervised_tokens": 13312000, + "padded_input_tokens": 16384000 + }, + { + "step": 32000, + "lr": 0.0005522158479326845, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00011510027979966253 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0001469945564167574, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3387096774193548, + "answer_accuracy": 0.3387096774193548, + "answer_nll": 4.296395301818848, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3387096774193548, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 10.197623252868652, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.046875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00022001907927915454, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3495440729483283, + "answer_accuracy": 0.3495440729483283, + "answer_nll": 4.014019966125488, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3495440729483283, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 12.265936851501465, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00025291673955507576, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.18829268292682927, + "answer_accuracy": 0.18829268292682927, + "answer_nll": 6.266800880432129, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.18829268292682927, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 11.220248222351074, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03773584905660377, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.174634575843811, + "training_seconds": 21.30115309730172, + "estimated_training_flops": 79926657024000, + "supervised_tokens": 26624000, + "padded_input_tokens": 32768000 + }, + { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 4.290335709811188e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 5.048491948400624e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3064516129032258, + "answer_accuracy": 0.3064516129032258, + "answer_nll": 4.313929080963135, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3064516129032258, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0625, + "answer_accuracy": 0.0625, + "answer_nll": 10.152810096740723, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 7.742325396975502e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3161094224924012, + "answer_accuracy": 0.3161094224924012, + "answer_nll": 4.244347095489502, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3161094224924012, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 11.815160751342773, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 8.491261542076245e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.1951219512195122, + "answer_accuracy": 0.1951219512195122, + "answer_nll": 6.367430686950684, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.1951219512195122, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 10.996309280395508, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03773584905660377, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1728260517120361, + "training_seconds": 42.58710604533553, + "estimated_training_flops": 159853314048000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + } +] diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/spec.json b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/spec.json new file mode 100644 index 0000000000000000000000000000000000000000..a682faf8be78de2da274fb8c75703ae7f58aa11a --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/spec.json @@ -0,0 +1,66 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 2, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/status.json new file mode 100644 index 0000000000000000000000000000000000000000..d332dc2b8bde7c33219e9f3a7045f6466b684b92 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/status.json @@ -0,0 +1,4 @@ +{ + "step": 64000, + "budget": 64000 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/train-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/train-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..be0c123a84b75c5a209188451495f7d1e824a0a4 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/train-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "train", + "gpu": 5, + "returncode": 0, + "seconds": 56.30519211292267 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/train-process.log b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/train-process.log new file mode 100644 index 0000000000000000000000000000000000000000..764a6dc7d2a53c8603b303c750a925ae8cdf4476 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/train-process.log @@ -0,0 +1,10 @@ +{"run": "w751011-i752011-d128-l1-r2-s64000", "step": 0, "atomic": 0.0, "familiar": {"2": 0.0, "3": 0.0, "4": 0.0}} +{"run": "w751011-i752011-d128-l1-r2-s64000", "step": 256, "atomic": 0.171875, "familiar": {"2": 0.08870967741935484, "3": 0.11246200607902736, "4": 0.09170731707317073}} +{"run": "w751011-i752011-d128-l1-r2-s64000", "step": 512, "atomic": 0.7890625, "familiar": {"2": 0.18548387096774194, "3": 0.18541033434650456, "4": 0.144390243902439}} +{"run": "w751011-i752011-d128-l1-r2-s64000", "step": 1000, "atomic": 1.0, "familiar": {"2": 0.2903225806451613, "3": 0.25227963525835867, "4": 0.19219512195121952}} +{"run": "w751011-i752011-d128-l1-r2-s64000", "step": 2000, "atomic": 1.0, "familiar": {"2": 0.27419354838709675, "3": 0.2917933130699088, "4": 0.18634146341463415}} +{"run": "w751011-i752011-d128-l1-r2-s64000", "step": 4000, "atomic": 1.0, "familiar": {"2": 0.33064516129032256, "3": 0.2796352583586626, "4": 0.18829268292682927}} +{"run": "w751011-i752011-d128-l1-r2-s64000", "step": 8000, "atomic": 1.0, "familiar": {"2": 0.3629032258064516, "3": 0.3161094224924012, "4": 0.21170731707317073}} +{"run": "w751011-i752011-d128-l1-r2-s64000", "step": 16000, "atomic": 1.0, "familiar": {"2": 0.33064516129032256, "3": 0.3708206686930091, "4": 0.20878048780487804}} +{"run": "w751011-i752011-d128-l1-r2-s64000", "step": 32000, "atomic": 1.0, "familiar": {"2": 0.3387096774193548, "3": 0.3495440729483283, "4": 0.18829268292682927}} +{"run": "w751011-i752011-d128-l1-r2-s64000", "step": 64000, "atomic": 1.0, "familiar": {"2": 0.3064516129032258, "3": 0.3161094224924012, "4": 0.1951219512195122}} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/world-metadata.json b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/world-metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0d160c9e2f6a49b4d5ec9ef5ade290343346beb5 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r2-s64000/world-metadata.json @@ -0,0 +1,11519 @@ +{ + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "id_mask": [ + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + false, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + true, + true, + false, + false, + false, + true, + true, + true, + false, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + false, + true, + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true + ], + "source_worlds": { + "2": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": true, + "phi_actual": 2.3125, + "mixed_composite_excluded": 392, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 444, + "test_composite": 124, + "test_full_composite": 124, + "ood_composite": 64, + "unused_composite": 0 + }, + "dataset_sha256": "59e810faf8478e02f02ffd785bce119413d62608e48c5d41a4c24032dda4abc2", + "warnings": [ + "Training request capped at eligible pool" + ], + "hops": 2, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 568, + "all_paths_total": 1024, + "training_fraction_of_id_paths": 0.7816901408450704, + "training_fraction_of_nonreserved_id_paths": 1.0, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 29, + 49, + 14, + 32, + 62, + 86, + 66, + 5, + 8, + 83, + 50, + 88, + 116, + 23, + 87, + 80, + 100, + 9, + 117, + 81, + 79, + 54, + 91, + 111, + 19, + 4, + 68, + 2, + 113, + 40, + 65, + 27, + 38, + 0, + 41, + 21, + 1, + 78, + 82, + 101, + 15, + 20, + 59, + 35, + 99, + 53, + 84, + 123, + 114, + 56, + 108, + 72, + 55, + 104, + 92, + 22, + 89, + 43, + 18, + 11, + 74, + 13, + 52, + 60, + 25, + 109, + 48, + 57, + 71, + 115, + 30, + 110, + 61, + 119, + 44, + 95, + 106, + 47, + 121, + 24, + 69, + 118, + 98, + 39, + 34, + 112, + 26, + 102, + 36, + 75, + 33, + 105, + 96, + 51, + 94, + 58, + 90, + 12, + 10, + 97, + 76, + 107, + 93, + 42, + 6, + 17, + 46, + 122, + 64, + 67, + 73, + 85, + 77, + 28, + 7, + 45, + 3, + 120, + 63, + 70, + 37, + 16, + 31, + 103 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 444, + "any_repeated_entity_n": 45, + "any_repeated_entity_fraction": 0.10135135135135136, + "answer_equals_preceding_entity_n": 33, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 185, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 0, + 4, + 2, + 0, + 1, + 0, + 2, + 0, + 3, + 2, + 0, + 1, + 2, + 0, + 0, + 2, + 3, + 3, + 2, + 1, + 3, + 3, + 0, + 3, + 2, + 2, + 0, + 2, + 3, + 1, + 2, + 4, + 3, + 3, + 2, + 0, + 0, + 1, + 3, + 0, + 0, + 4, + 4, + 1, + 0, + 2, + 2, + 0, + 0, + 0, + 1, + 4, + 3, + 0, + 0, + 1, + 0, + 3, + 0, + 0, + 4, + 2, + 2, + 2, + 0, + 2, + 2, + 0, + 2, + 3, + 0, + 0, + 2, + 3, + 3, + 4, + 0, + 3, + 4, + 2, + 3, + 0, + 2, + 2, + 0, + 3, + 1, + 3, + 3, + 3, + 0, + 2, + 3, + 1, + 0, + 3, + 2, + 3, + 3, + 3, + 1, + 2, + 2, + 2, + 0, + 3, + 2, + 4, + 2, + 2, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 3, + 3, + 0, + 3, + 3, + 2, + 3, + 3, + 0, + 1, + 3, + 3, + 1, + 2, + 3, + 1, + 1, + 1, + 4, + 3, + 3, + 0, + 2, + 3, + 2, + 3, + 1, + 3, + 0, + 3, + 2, + 0, + 0, + 2, + 2, + 4, + 1, + 3, + 3, + 3, + 0, + 2, + 2, + 2, + 2, + 2, + 0, + 3, + 0, + 0, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 0, + 2, + 0, + 3, + 2, + 2, + 4, + 2, + 0, + 4, + 2, + 3, + 4, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 4, + 2, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 2, + 2, + 3, + 1, + 2, + 2, + 2, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 2, + 1, + 0, + 1, + 3, + 4, + 2, + 2, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 182, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 0, + 3, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 0, + 5, + 3, + 0, + 1, + 1, + 1, + 3, + 0, + 4, + 4, + 4, + 0, + 5, + 4, + 1, + 2, + 1, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 3, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 5, + 4, + 0, + 1, + 2, + 0, + 0, + 4, + 6, + 5, + 5, + 0, + 2, + 2, + 2, + 1, + 0, + 2, + 3, + 3, + 2, + 2, + 2, + 2, + 2, + 0, + 2, + 2, + 4, + 0, + 4, + 3, + 1, + 1, + 1, + 1, + 2, + 2, + 1, + 0, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 0, + 2, + 3, + 0, + 4, + 0, + 1, + 1, + 2, + 3, + 0, + 3, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 2, + 1, + 3, + 3, + 3, + 2, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 2, + 2, + 2, + 2, + 2, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 3, + 2, + 0, + 3, + 2, + 2, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 2, + 3, + 1, + 5, + 6, + 7, + 6, + 3, + 2, + 0, + 3, + 2, + 3, + 2, + 3, + 0, + 4, + 3, + 3, + 1, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 1, + 2, + 2, + 0, + 5, + 0, + 6, + 0, + 0, + 4, + 4, + 3, + 1, + 3, + 2, + 2, + 0, + 2, + 3, + 2, + 4, + 0, + 3, + 3, + 2, + 0, + 2, + 3, + 4, + 4, + 4, + 3 + ], + "id_count_min": 0, + "id_count_max": 7 + } + ] + }, + "test_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + }, + "test_full_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 3, + 0, + 4, + 0, + 4, + 3, + 2, + 3, + 0, + 3, + 4, + 0, + 8, + 5, + 4, + 4, + 0, + 5, + 0, + 5, + 3, + 0, + 3, + 4, + 0, + 0, + 7, + 6, + 3, + 3, + 2, + 4, + 6, + 0, + 7, + 6, + 6, + 0, + 7, + 7, + 2, + 4, + 5, + 4, + 4, + 4, + 0, + 0, + 2, + 4, + 0, + 0, + 8, + 9, + 6, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 6, + 5, + 0, + 0, + 4, + 0, + 4, + 0, + 0, + 5, + 4, + 4, + 3, + 0, + 7, + 6, + 0, + 3, + 5, + 0, + 0, + 6, + 9, + 8, + 9, + 0, + 5, + 6, + 4, + 4, + 0, + 4, + 5, + 3, + 5, + 3, + 5, + 5, + 5, + 0, + 4, + 5, + 5, + 0, + 7, + 5, + 4, + 4, + 4, + 2, + 4, + 4, + 3, + 0, + 4, + 3, + 5, + 2, + 4, + 4, + 0, + 0, + 4, + 3, + 0, + 7, + 0, + 3, + 3, + 5, + 6, + 0, + 6, + 4, + 3, + 4, + 4, + 0, + 1, + 3, + 3, + 1, + 4, + 5, + 3, + 2, + 4, + 7, + 6, + 5, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 7, + 5, + 0, + 0, + 4, + 4, + 6, + 3, + 5, + 4, + 5, + 0, + 6, + 5, + 6, + 5, + 5, + 0, + 6, + 0, + 0, + 0, + 6, + 3, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 0, + 4, + 3, + 4, + 0, + 0, + 5, + 5, + 3, + 7, + 10, + 9, + 8, + 3, + 4, + 0, + 6, + 4, + 5, + 6, + 5, + 0, + 8, + 5, + 6, + 5, + 0, + 6, + 4, + 0, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 9, + 0, + 8, + 0, + 0, + 6, + 6, + 6, + 2, + 5, + 4, + 4, + 0, + 2, + 3, + 4, + 6, + 0, + 5, + 5, + 3, + 0, + 3, + 6, + 8, + 6, + 6, + 5 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 444, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 444, + "any_relevant_fact_in_composite_training_n": 444, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 444, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 185, + 182 + ], + "within_split_majority_tail": { + "target_token": 8, + "count": 16, + "fraction": 0.036036036036036036, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.036036036036036036, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08783783783783784, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08783783783783784, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 36, + 67, + 66, + 43 + ], + [ + 47, + 69, + 66, + 56 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.13063063063063063, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.13063063063063063, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 54, + 66, + 66, + 43 + ], + [ + 11, + 66, + 66, + 22 + ] + ] + } + ] + }, + "test_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 15, + 68, + 66, + 34 + ], + [ + 18, + 68, + 66, + 22 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 35, + 66, + 66, + 53 + ], + [ + 55, + 66, + 66, + 60 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 66, + 53 + ], + [ + 5, + 69, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 53 + ], + [ + 25, + 66, + 66, + 16 + ] + ] + } + ] + }, + "ood_composite": { + "n": 64, + "unique_relevant_atomic_facts": 53, + "relevant_atomic_fact_coverage_of_graph": 0.20703125, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 44, + 39 + ], + "within_split_majority_tail": { + "target_token": 58, + "count": 5, + "fraction": 0.078125, + "distinct_targets": 30 + }, + "train_composite_majority_tail_fraction": 0.0, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.25, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 6, + 67, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.328125, + "single_target_group_query_fraction": 0.03125, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.328125, + "multi_target_groups": 14, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 13, + 66, + 66, + 13 + ] + ] + } + ] + }, + "unused_composite": { + "n": 0, + "unique_relevant_atomic_facts": 0, + "relevant_atomic_fact_coverage_of_graph": 0.0, + "all_relevant_facts_in_atomic_training_fraction": null, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": null, + "all_id_queries": 0, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 0, + 0 + ], + "within_split_majority_tail": { + "target_token": null, + "count": 0, + "fraction": null, + "distinct_targets": 0 + }, + "train_composite_majority_tail_fraction": null, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + }, + { + "suffix_relation_count": 2, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "3": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 2331, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 329, + "test_full_composite": 329, + "ood_composite": 59, + "unused_composite": 609 + }, + "dataset_sha256": "874230d99d7b1184953935d1476d34c3d69968bcc196b499299cf4c63dc75d6f", + "warnings": [], + "hops": 3, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 1706, + "all_paths_total": 4096, + "training_fraction_of_id_paths": 0.4501758499413834, + "training_fraction_of_nonreserved_id_paths": 0.5577342047930284, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 177, + 263, + 289, + 328, + 73, + 17, + 112, + 159, + 45, + 110, + 16, + 286, + 225, + 25, + 95, + 24, + 49, + 66, + 230, + 201, + 19, + 7, + 172, + 323, + 321, + 152, + 181, + 58, + 313, + 169, + 218, + 231, + 221, + 121, + 285, + 243, + 150, + 256, + 292, + 141, + 105, + 51, + 34, + 37, + 102, + 266, + 196, + 139, + 106, + 250, + 65, + 28, + 195, + 188, + 113, + 52, + 228, + 173, + 246, + 99, + 125, + 167, + 175, + 244, + 61, + 47, + 178, + 257, + 50, + 2, + 301, + 252, + 55, + 202, + 165, + 41, + 148, + 140, + 309, + 239, + 213, + 238, + 128, + 318, + 97, + 86, + 242, + 311, + 88, + 197, + 248, + 96, + 293, + 273, + 155, + 281, + 90, + 214, + 87, + 278, + 270, + 21, + 237, + 35, + 71, + 44, + 157, + 315, + 156, + 174, + 222, + 4, + 134, + 249, + 32, + 119, + 260, + 130, + 232, + 259, + 192, + 183, + 291, + 185, + 264, + 79, + 75, + 104, + 13, + 296, + 26, + 133, + 101, + 272, + 304, + 205, + 319, + 254, + 11, + 162, + 48, + 93, + 306, + 190, + 290, + 27, + 262, + 168, + 116, + 200, + 109, + 277, + 118, + 29, + 279, + 268, + 314, + 111, + 245, + 288, + 298, + 186, + 81, + 226, + 12, + 324, + 227, + 171, + 18, + 326, + 233, + 179, + 15, + 307, + 170, + 144, + 275, + 43, + 287, + 320, + 103, + 36, + 215, + 302, + 164, + 153, + 120, + 59, + 1, + 94, + 209, + 189, + 180, + 76, + 77, + 123, + 98, + 83, + 108, + 224, + 40, + 67, + 129, + 229, + 54, + 269, + 149, + 265, + 297, + 22, + 92, + 303, + 126, + 282, + 223, + 42, + 191, + 216, + 100, + 135, + 184, + 14, + 72, + 163, + 253, + 131, + 207, + 3, + 255, + 82, + 166, + 312, + 241, + 295, + 251, + 204, + 84, + 57, + 274, + 78, + 299, + 8, + 276, + 10, + 217, + 212, + 176, + 267, + 74, + 107, + 147, + 327, + 91, + 33, + 305, + 151, + 38, + 199, + 325, + 0, + 182, + 122, + 9, + 300, + 235, + 160, + 85, + 317, + 187, + 208, + 56, + 219, + 161, + 70, + 80, + 308, + 31, + 124, + 194, + 316, + 220, + 145, + 154, + 115, + 258, + 271, + 210, + 198, + 310, + 60, + 68, + 234, + 114, + 247, + 62, + 64, + 322, + 283, + 23, + 284, + 203, + 261, + 136, + 294, + 89, + 30, + 211, + 63, + 6, + 20, + 158, + 146, + 53, + 5, + 143, + 117, + 137, + 132, + 138, + 193, + 127, + 280, + 236, + 69, + 39, + 206, + 142, + 46, + 240 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 117, + "any_repeated_entity_fraction": 0.15234375, + "answer_equals_preceding_entity_n": 63, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 189, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 5, + 0, + 7, + 2, + 2, + 6, + 0, + 5, + 3, + 0, + 7, + 5, + 5, + 2, + 0, + 5, + 0, + 6, + 6, + 0, + 7, + 2, + 0, + 0, + 2, + 4, + 3, + 5, + 3, + 4, + 4, + 0, + 6, + 5, + 3, + 0, + 3, + 7, + 0, + 4, + 7, + 4, + 3, + 4, + 0, + 4, + 4, + 6, + 0, + 0, + 5, + 5, + 5, + 0, + 3, + 2, + 0, + 0, + 0, + 4, + 6, + 5, + 0, + 0, + 3, + 0, + 3, + 0, + 0, + 9, + 2, + 6, + 3, + 0, + 2, + 1, + 0, + 3, + 4, + 0, + 0, + 4, + 3, + 4, + 7, + 0, + 4, + 6, + 3, + 7, + 0, + 1, + 3, + 7, + 3, + 3, + 2, + 5, + 7, + 0, + 2, + 8, + 4, + 0, + 6, + 5, + 7, + 7, + 5, + 3, + 3, + 4, + 0, + 0, + 4, + 8, + 4, + 6, + 5, + 3, + 0, + 0, + 5, + 3, + 0, + 2, + 0, + 5, + 5, + 3, + 4, + 0, + 3, + 4, + 1, + 3, + 7, + 0, + 1, + 3, + 4, + 3, + 4, + 5, + 2, + 2, + 4, + 6, + 5, + 3, + 0, + 3, + 4, + 4, + 2, + 2, + 3, + 0, + 4, + 3, + 0, + 0, + 2, + 3, + 5, + 3, + 3, + 4, + 5, + 0, + 4, + 7, + 1, + 4, + 1, + 0, + 2, + 0, + 0, + 0, + 3, + 3, + 2, + 4, + 0, + 5, + 4, + 5, + 0, + 0, + 1, + 1, + 4, + 0, + 0, + 2, + 5, + 3, + 1, + 4, + 1, + 4, + 3, + 0, + 0, + 6, + 3, + 5, + 7, + 3, + 0, + 5, + 2, + 6, + 5, + 0, + 5, + 7, + 0, + 3, + 6, + 0, + 6, + 6, + 5, + 0, + 3, + 0, + 6, + 0, + 0, + 4, + 2, + 4, + 4, + 5, + 2, + 4, + 0, + 1, + 4, + 3, + 4, + 0, + 6, + 2, + 6, + 0, + 4, + 5, + 5, + 5, + 7, + 4 + ], + "id_count_min": 0, + "id_count_max": 9 + }, + { + "hop": 2, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 4, + 0, + 1, + 2, + 0, + 1, + 0, + 6, + 4, + 0, + 8, + 10, + 4, + 3, + 0, + 8, + 0, + 8, + 3, + 0, + 1, + 3, + 0, + 0, + 7, + 11, + 2, + 1, + 1, + 1, + 10, + 0, + 8, + 6, + 5, + 0, + 7, + 7, + 0, + 3, + 3, + 2, + 3, + 2, + 0, + 2, + 1, + 2, + 0, + 0, + 12, + 11, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 4, + 0, + 0, + 4, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 2, + 0, + 6, + 4, + 0, + 11, + 6, + 0, + 0, + 4, + 5, + 7, + 13, + 0, + 1, + 4, + 3, + 3, + 0, + 7, + 6, + 8, + 2, + 3, + 2, + 4, + 2, + 0, + 4, + 1, + 5, + 0, + 6, + 9, + 2, + 1, + 1, + 2, + 7, + 3, + 1, + 0, + 2, + 2, + 1, + 1, + 5, + 1, + 0, + 0, + 5, + 5, + 0, + 3, + 0, + 1, + 4, + 1, + 3, + 0, + 5, + 4, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 0, + 0, + 3, + 7, + 5, + 6, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 2, + 2, + 2, + 1, + 0, + 3, + 0, + 8, + 9, + 6, + 8, + 3, + 0, + 2, + 0, + 0, + 0, + 4, + 3, + 1, + 3, + 0, + 3, + 5, + 6, + 0, + 0, + 3, + 2, + 4, + 0, + 0, + 6, + 6, + 3, + 10, + 14, + 7, + 15, + 3, + 2, + 0, + 1, + 3, + 4, + 4, + 4, + 0, + 11, + 7, + 8, + 5, + 0, + 5, + 5, + 0, + 1, + 4, + 0, + 2, + 2, + 4, + 0, + 10, + 0, + 9, + 0, + 0, + 9, + 8, + 5, + 3, + 0, + 3, + 4, + 0, + 5, + 1, + 3, + 3, + 0, + 7, + 2, + 5, + 0, + 1, + 5, + 9, + 6, + 6, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 175, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 6, + 5, + 2, + 1, + 0, + 2, + 2, + 0, + 7, + 7, + 5, + 7, + 0, + 7, + 0, + 9, + 3, + 0, + 2, + 2, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 1, + 5, + 0, + 5, + 5, + 9, + 0, + 8, + 7, + 3, + 3, + 3, + 2, + 2, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 9, + 5, + 8, + 0, + 4, + 2, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 4, + 3, + 2, + 0, + 6, + 3, + 0, + 5, + 3, + 0, + 0, + 4, + 5, + 10, + 6, + 0, + 3, + 4, + 5, + 7, + 0, + 5, + 9, + 5, + 1, + 2, + 2, + 0, + 1, + 0, + 1, + 4, + 10, + 0, + 8, + 7, + 1, + 2, + 2, + 2, + 2, + 4, + 4, + 0, + 4, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 3, + 1, + 0, + 2, + 0, + 7, + 7, + 8, + 9, + 0, + 6, + 4, + 1, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 3, + 4, + 3, + 6, + 1, + 4, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 16, + 9, + 0, + 0, + 3, + 3, + 4, + 2, + 4, + 3, + 3, + 0, + 10, + 8, + 7, + 8, + 4, + 0, + 4, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 0, + 4, + 5, + 5, + 0, + 0, + 3, + 5, + 3, + 0, + 0, + 5, + 5, + 3, + 14, + 5, + 8, + 6, + 6, + 5, + 0, + 4, + 5, + 2, + 1, + 5, + 0, + 6, + 12, + 7, + 0, + 0, + 1, + 1, + 0, + 2, + 6, + 0, + 2, + 3, + 2, + 0, + 9, + 0, + 5, + 0, + 0, + 5, + 7, + 2, + 6, + 6, + 8, + 8, + 0, + 0, + 1, + 2, + 6, + 0, + 3, + 8, + 1, + 0, + 4, + 4, + 11, + 7, + 8, + 7 + ], + "id_count_min": 0, + "id_count_max": 16 + } + ] + }, + "test_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + }, + "test_full_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 192, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 6, + 0, + 12, + 0, + 14, + 9, + 4, + 8, + 0, + 13, + 9, + 0, + 22, + 22, + 14, + 12, + 0, + 20, + 0, + 23, + 12, + 0, + 10, + 7, + 0, + 0, + 16, + 22, + 5, + 6, + 6, + 6, + 19, + 0, + 19, + 16, + 17, + 0, + 18, + 21, + 3, + 10, + 13, + 8, + 8, + 7, + 0, + 8, + 6, + 8, + 0, + 0, + 26, + 21, + 18, + 0, + 8, + 4, + 0, + 0, + 0, + 8, + 10, + 11, + 0, + 0, + 9, + 0, + 5, + 0, + 0, + 12, + 6, + 11, + 7, + 0, + 14, + 8, + 0, + 19, + 13, + 0, + 0, + 12, + 13, + 21, + 26, + 0, + 8, + 14, + 11, + 17, + 0, + 13, + 18, + 20, + 6, + 8, + 6, + 9, + 10, + 0, + 7, + 13, + 19, + 0, + 20, + 21, + 10, + 10, + 8, + 7, + 12, + 11, + 5, + 0, + 10, + 11, + 7, + 8, + 12, + 4, + 0, + 0, + 13, + 9, + 0, + 7, + 0, + 13, + 16, + 12, + 16, + 0, + 14, + 12, + 3, + 8, + 9, + 0, + 1, + 3, + 4, + 3, + 14, + 13, + 5, + 6, + 10, + 19, + 11, + 13, + 0, + 4, + 6, + 5, + 2, + 2, + 3, + 0, + 27, + 19, + 0, + 0, + 7, + 8, + 11, + 7, + 8, + 7, + 11, + 0, + 22, + 24, + 14, + 20, + 8, + 0, + 8, + 0, + 0, + 0, + 9, + 7, + 5, + 9, + 0, + 12, + 14, + 16, + 0, + 0, + 7, + 8, + 11, + 0, + 0, + 13, + 16, + 9, + 25, + 23, + 16, + 25, + 12, + 7, + 0, + 11, + 11, + 11, + 12, + 12, + 0, + 22, + 21, + 21, + 10, + 0, + 11, + 13, + 0, + 6, + 16, + 0, + 10, + 11, + 11, + 0, + 22, + 0, + 20, + 0, + 0, + 18, + 17, + 11, + 13, + 11, + 13, + 16, + 0, + 6, + 6, + 8, + 13, + 0, + 16, + 12, + 12, + 0, + 9, + 14, + 25, + 18, + 21, + 17 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.75, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.0234375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.026041666666666668, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 189, + 177, + 175 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 43, + "fraction": 0.055989583333333336, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.055989583333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10807291666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10807291666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.1640625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.1640625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.23177083333333334, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23177083333333334, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + } + ] + }, + "test_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 54, + 69, + 68, + 66, + 8 + ], + [ + 65, + 68, + 67, + 66, + 25 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 11, + 67, + 66, + 66, + 45 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 69, + 66, + 42 + ], + [ + 4, + 69, + 67, + 66, + 59 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 67, + 66, + 66, + 45 + ], + [ + 12, + 69, + 66, + 66, + 16 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "ood_composite": { + "n": 59, + "unique_relevant_atomic_facts": 51, + "relevant_atomic_fact_coverage_of_graph": 0.19921875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 59, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 41, + 30, + 31 + ], + "within_split_majority_tail": { + "target_token": 60, + "count": 6, + "fraction": 0.1016949152542373, + "distinct_targets": 25 + }, + "train_composite_majority_tail_fraction": 0.03389830508474576, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.23728813559322035, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23728813559322035, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 8, + 67, + 69, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.5423728813559322, + "single_target_group_query_fraction": 0.1016949152542373, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.5423728813559322, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 39, + "empirical_modal_target_fraction": 0.7288135593220338, + "single_target_group_query_fraction": 0.4745762711864407, + "singleton_group_query_fraction": 0.4067796610169492, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 0.5932203389830508, + "multi_query_empirical_modal_target_fraction": 0.5428571428571428, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 13, + 66, + 66, + 66, + 13 + ], + [ + 18, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "unused_composite": { + "n": 609, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 609, + "any_relevant_fact_in_composite_training_n": 609, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 609, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 186, + 172, + 174 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 26, + "fraction": 0.042692939244663386, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03940886699507389, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07717569786535304, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07717569786535304, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 69, + 67, + 66, + 52 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14614121510673234, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14614121510673234, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 67, + 66, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.22660098522167488, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.22660098522167488, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 66, + 10 + ], + [ + 6, + 66, + 66, + 66, + 60 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "4": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 11180, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 512, + "test_full_composite": 1025, + "ood_composite": 53, + "unused_composite": 3358 + }, + "dataset_sha256": "11ec0124d665d8362ddc331d5c39bc251f7cada4bc5263b5524390fbb9319e85", + "warnings": [], + "hops": 4, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 5151, + "all_paths_total": 16384, + "training_fraction_of_id_paths": 0.14909726266744322, + "training_fraction_of_nonreserved_id_paths": 0.1861366941347552, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 560, + 766, + 474, + 184, + 609, + 39, + 576, + 63, + 547, + 821, + 853, + 222, + 688, + 718, + 268, + 448, + 856, + 266, + 593, + 433, + 505, + 736, + 138, + 300, + 982, + 250, + 165, + 817, + 112, + 984, + 545, + 654, + 773, + 700, + 312, + 651, + 154, + 297, + 224, + 639, + 16, + 411, + 440, + 225, + 825, + 972, + 709, + 355, + 903, + 846, + 10, + 353, + 449, + 498, + 782, + 803, + 106, + 85, + 810, + 528, + 58, + 194, + 514, + 488, + 289, + 789, + 424, + 889, + 1014, + 877, + 417, + 4, + 691, + 597, + 81, + 412, + 401, + 635, + 331, + 199, + 115, + 341, + 743, + 447, + 288, + 965, + 950, + 21, + 507, + 399, + 519, + 414, + 953, + 403, + 834, + 619, + 486, + 379, + 347, + 969, + 974, + 952, + 568, + 30, + 337, + 882, + 722, + 955, + 506, + 831, + 359, + 418, + 454, + 105, + 516, + 157, + 109, + 940, + 228, + 95, + 145, + 642, + 543, + 787, + 124, + 243, + 996, + 1007, + 464, + 571, + 721, + 921, + 745, + 340, + 710, + 634, + 253, + 947, + 838, + 986, + 520, + 442, + 841, + 429, + 948, + 126, + 605, + 744, + 922, + 181, + 1004, + 958, + 544, + 192, + 1016, + 75, + 430, + 247, + 238, + 649, + 800, + 600, + 103, + 76, + 352, + 827, + 296, + 606, + 369, + 441, + 842, + 848, + 357, + 406, + 670, + 416, + 293, + 677, + 973, + 910, + 264, + 434, + 196, + 113, + 149, + 515, + 939, + 808, + 131, + 871, + 720, + 478, + 586, + 936, + 906, + 432, + 724, + 822, + 160, + 933, + 62, + 561, + 633, + 824, + 407, + 226, + 33, + 248, + 680, + 804, + 740, + 208, + 167, + 214, + 476, + 233, + 302, + 292, + 220, + 6, + 750, + 189, + 503, + 90, + 91, + 914, + 937, + 93, + 187, + 366, + 951, + 373, + 18, + 695, + 203, + 310, + 625, + 398, + 339, + 241, + 556, + 570, + 812, + 944, + 14, + 562, + 327, + 667, + 303, + 100, + 173, + 623, + 860, + 781, + 283, + 924, + 1000, + 180, + 899, + 767, + 523, + 125, + 316, + 564, + 1, + 536, + 726, + 786, + 930, + 168, + 546, + 360, + 957, + 741, + 935, + 971, + 332, + 481, + 703, + 136, + 445, + 162, + 590, + 111, + 38, + 326, + 190, + 342, + 72, + 541, + 487, + 524, + 278, + 764, + 174, + 646, + 757, + 946, + 270, + 102, + 761, + 141, + 799, + 28, + 919, + 601, + 86, + 183, + 47, + 675, + 885, + 956, + 836, + 218, + 335, + 307, + 317, + 37, + 596, + 120, + 648, + 1003, + 702, + 291, + 96, + 839, + 943, + 807, + 9, + 32, + 828, + 732, + 542, + 36, + 908, + 855, + 279, + 538, + 768, + 754, + 587, + 987, + 142, + 598, + 287, + 678, + 880, + 589, + 71, + 370, + 469, + 473, + 553, + 143, + 427, + 404, + 391, + 286, + 869, + 928, + 621, + 462, + 338, + 133, + 52, + 525, + 857, + 334, + 477, + 41, + 423, + 615, + 459, + 784, + 508, + 826, + 815, + 567, + 79, + 656, + 261, + 329, + 219, + 620, + 415, + 636, + 832, + 756, + 27, + 425, + 663, + 309, + 734, + 867, + 497, + 169, + 659, + 932, + 452, + 193, + 475, + 118, + 495, + 176, + 161, + 275, + 44, + 992, + 466, + 1001, + 989, + 428, + 212, + 668, + 8, + 792, + 381, + 696, + 467, + 911, + 172, + 22, + 153, + 660, + 13, + 613, + 849, + 319, + 74, + 299, + 758, + 276, + 833, + 387, + 19, + 993, + 376, + 368, + 594, + 708, + 684, + 727, + 130, + 693, + 237, + 402, + 595, + 728, + 107, + 114, + 540, + 256, + 345, + 83, + 156, + 669, + 210, + 731, + 150, + 627, + 419, + 1024, + 51, + 491, + 672, + 874, + 762, + 797, + 844, + 585, + 938, + 980, + 901, + 273, + 470, + 554, + 121, + 671, + 60, + 915, + 351, + 909, + 61, + 321, + 479, + 284, + 492, + 674, + 765, + 178, + 875, + 348, + 661, + 234, + 249, + 723, + 1020, + 259, + 629, + 236, + 117, + 305, + 673, + 582, + 422, + 611, + 861, + 483, + 413, + 377, + 97, + 999 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 194, + "any_repeated_entity_fraction": 0.2526041666666667, + "answer_equals_preceding_entity_n": 84, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 184, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 3, + 0, + 6, + 3, + 0, + 3, + 0, + 3, + 4, + 0, + 7, + 10, + 0, + 3, + 0, + 6, + 0, + 5, + 3, + 0, + 6, + 4, + 0, + 0, + 4, + 7, + 2, + 4, + 3, + 2, + 5, + 0, + 4, + 6, + 1, + 0, + 7, + 6, + 3, + 3, + 6, + 6, + 6, + 4, + 0, + 1, + 3, + 3, + 0, + 0, + 5, + 6, + 4, + 0, + 1, + 1, + 0, + 0, + 0, + 4, + 6, + 7, + 0, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 1, + 3, + 4, + 0, + 3, + 1, + 0, + 4, + 3, + 0, + 0, + 0, + 6, + 6, + 10, + 0, + 5, + 6, + 5, + 5, + 0, + 4, + 5, + 5, + 5, + 1, + 5, + 4, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 3, + 3, + 4, + 4, + 4, + 3, + 6, + 1, + 0, + 4, + 7, + 5, + 6, + 2, + 4, + 0, + 0, + 5, + 1, + 0, + 3, + 0, + 4, + 6, + 3, + 1, + 0, + 4, + 5, + 1, + 2, + 7, + 0, + 0, + 3, + 6, + 1, + 3, + 4, + 0, + 0, + 4, + 2, + 4, + 3, + 0, + 2, + 6, + 5, + 4, + 4, + 7, + 0, + 1, + 1, + 0, + 0, + 2, + 2, + 4, + 2, + 4, + 4, + 4, + 0, + 3, + 8, + 1, + 3, + 7, + 0, + 3, + 0, + 0, + 0, + 5, + 5, + 3, + 5, + 0, + 6, + 9, + 11, + 0, + 0, + 2, + 1, + 7, + 0, + 0, + 2, + 2, + 6, + 6, + 3, + 5, + 7, + 3, + 3, + 0, + 5, + 5, + 5, + 7, + 3, + 0, + 2, + 3, + 5, + 8, + 0, + 8, + 7, + 0, + 3, + 7, + 0, + 4, + 3, + 6, + 0, + 4, + 0, + 3, + 0, + 0, + 3, + 7, + 3, + 8, + 3, + 4, + 1, + 0, + 3, + 2, + 2, + 3, + 0, + 4, + 2, + 4, + 0, + 4, + 8, + 8, + 8, + 3, + 5 + ], + "id_count_min": 0, + "id_count_max": 11 + }, + { + "hop": 2, + "id_edges_covered": 173, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 4, + 0, + 9, + 7, + 6, + 2, + 0, + 5, + 0, + 7, + 3, + 0, + 4, + 3, + 0, + 0, + 6, + 7, + 1, + 1, + 0, + 2, + 9, + 0, + 4, + 6, + 4, + 0, + 5, + 7, + 1, + 3, + 3, + 3, + 2, + 3, + 0, + 1, + 2, + 2, + 0, + 0, + 14, + 9, + 6, + 0, + 1, + 0, + 0, + 0, + 0, + 5, + 4, + 2, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 2, + 0, + 5, + 3, + 0, + 13, + 5, + 0, + 0, + 4, + 10, + 9, + 15, + 0, + 3, + 4, + 2, + 2, + 0, + 8, + 5, + 3, + 1, + 2, + 4, + 5, + 3, + 0, + 1, + 5, + 8, + 0, + 8, + 4, + 0, + 1, + 0, + 1, + 6, + 3, + 2, + 0, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 0, + 7, + 5, + 0, + 3, + 0, + 3, + 5, + 3, + 4, + 0, + 2, + 4, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 1, + 0, + 3, + 8, + 3, + 5, + 0, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 8, + 6, + 0, + 0, + 3, + 1, + 4, + 0, + 1, + 1, + 4, + 0, + 9, + 14, + 0, + 10, + 3, + 0, + 3, + 0, + 0, + 0, + 9, + 2, + 1, + 6, + 0, + 2, + 2, + 5, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 4, + 5, + 6, + 12, + 8, + 9, + 9, + 2, + 6, + 0, + 7, + 1, + 5, + 5, + 3, + 0, + 4, + 11, + 12, + 1, + 0, + 2, + 5, + 0, + 1, + 0, + 0, + 5, + 2, + 8, + 0, + 11, + 0, + 5, + 0, + 0, + 8, + 8, + 7, + 6, + 5, + 1, + 2, + 0, + 4, + 3, + 4, + 7, + 0, + 7, + 7, + 0, + 0, + 3, + 3, + 7, + 10, + 9, + 12 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 172, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 4, + 0, + 5, + 2, + 0, + 1, + 0, + 3, + 2, + 0, + 6, + 4, + 3, + 2, + 0, + 9, + 0, + 12, + 6, + 0, + 6, + 3, + 0, + 0, + 7, + 15, + 1, + 0, + 2, + 1, + 7, + 0, + 5, + 5, + 13, + 0, + 8, + 13, + 2, + 3, + 2, + 1, + 1, + 2, + 0, + 1, + 2, + 1, + 0, + 0, + 5, + 7, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 3, + 0, + 8, + 2, + 0, + 10, + 3, + 0, + 0, + 2, + 10, + 11, + 3, + 0, + 5, + 8, + 4, + 4, + 0, + 5, + 4, + 5, + 3, + 0, + 1, + 2, + 0, + 0, + 1, + 4, + 4, + 0, + 9, + 8, + 2, + 1, + 3, + 2, + 2, + 1, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 7, + 5, + 5, + 0, + 5, + 11, + 1, + 4, + 2, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 3, + 2, + 4, + 4, + 4, + 3, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 11, + 12, + 0, + 0, + 4, + 5, + 6, + 0, + 4, + 5, + 5, + 0, + 7, + 12, + 6, + 10, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 5, + 5, + 4, + 0, + 2, + 1, + 5, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 5, + 5, + 5, + 12, + 8, + 7, + 4, + 4, + 7, + 0, + 6, + 4, + 6, + 6, + 3, + 0, + 10, + 6, + 13, + 4, + 0, + 3, + 2, + 0, + 4, + 3, + 0, + 1, + 2, + 2, + 0, + 12, + 0, + 3, + 0, + 0, + 5, + 3, + 2, + 10, + 4, + 6, + 5, + 0, + 1, + 0, + 1, + 6, + 0, + 9, + 4, + 5, + 0, + 2, + 3, + 8, + 7, + 5, + 9 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 4, + "id_edges_covered": 169, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 0, + 2, + 0, + 5, + 9, + 2, + 5, + 0, + 6, + 0, + 4, + 3, + 0, + 0, + 2, + 0, + 0, + 10, + 5, + 0, + 3, + 2, + 0, + 5, + 0, + 6, + 9, + 15, + 0, + 12, + 9, + 1, + 1, + 0, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 6, + 6, + 5, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 1, + 0, + 5, + 6, + 0, + 8, + 8, + 0, + 5, + 6, + 0, + 0, + 6, + 14, + 8, + 5, + 0, + 6, + 2, + 5, + 7, + 0, + 7, + 3, + 8, + 1, + 4, + 1, + 1, + 3, + 0, + 5, + 2, + 6, + 0, + 9, + 8, + 1, + 1, + 1, + 1, + 1, + 4, + 4, + 0, + 1, + 0, + 3, + 1, + 2, + 2, + 0, + 0, + 1, + 4, + 0, + 2, + 0, + 5, + 2, + 4, + 5, + 0, + 6, + 8, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 1, + 2, + 5, + 2, + 6, + 6, + 0, + 0, + 2, + 2, + 0, + 0, + 0, + 0, + 14, + 11, + 0, + 0, + 5, + 5, + 5, + 3, + 2, + 4, + 2, + 0, + 7, + 9, + 7, + 6, + 3, + 0, + 5, + 0, + 0, + 0, + 2, + 5, + 5, + 1, + 0, + 4, + 2, + 1, + 0, + 0, + 6, + 5, + 8, + 0, + 0, + 10, + 2, + 4, + 9, + 10, + 14, + 11, + 7, + 2, + 0, + 5, + 2, + 2, + 2, + 8, + 0, + 8, + 9, + 8, + 2, + 0, + 4, + 4, + 0, + 2, + 2, + 0, + 1, + 1, + 0, + 0, + 9, + 0, + 3, + 0, + 0, + 6, + 7, + 2, + 11, + 5, + 6, + 6, + 0, + 2, + 3, + 0, + 1, + 0, + 6, + 6, + 6, + 0, + 4, + 2, + 5, + 4, + 5, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + } + ] + }, + "test_composite": { + "n": 512, + "any_repeated_entity_n": 116, + "any_repeated_entity_fraction": 0.2265625, + "answer_equals_preceding_entity_n": 54, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 174, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 1, + 2, + 1, + 6, + 0, + 3, + 4, + 0, + 3, + 2, + 5, + 0, + 0, + 4, + 0, + 1, + 2, + 0, + 4, + 2, + 0, + 0, + 3, + 3, + 3, + 0, + 3, + 5, + 4, + 0, + 5, + 2, + 2, + 0, + 2, + 3, + 2, + 3, + 4, + 6, + 3, + 2, + 0, + 5, + 1, + 1, + 0, + 0, + 2, + 5, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 4, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 4, + 1, + 3, + 1, + 0, + 2, + 2, + 0, + 3, + 2, + 0, + 0, + 2, + 6, + 4, + 3, + 0, + 2, + 5, + 2, + 3, + 0, + 4, + 7, + 4, + 1, + 3, + 2, + 3, + 3, + 0, + 1, + 2, + 2, + 0, + 5, + 5, + 5, + 5, + 6, + 0, + 5, + 3, + 1, + 0, + 3, + 5, + 6, + 2, + 3, + 1, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 5, + 4, + 3, + 0, + 5, + 5, + 3, + 5, + 1, + 0, + 0, + 1, + 5, + 1, + 2, + 3, + 2, + 0, + 1, + 5, + 3, + 3, + 0, + 3, + 2, + 1, + 4, + 2, + 4, + 0, + 10, + 3, + 0, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 0, + 0, + 3, + 3, + 4, + 2, + 0, + 1, + 0, + 0, + 0, + 4, + 1, + 0, + 1, + 0, + 4, + 7, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 3, + 3, + 2, + 2, + 3, + 1, + 2, + 0, + 3, + 0, + 7, + 4, + 2, + 3, + 1, + 0, + 4, + 2, + 2, + 3, + 0, + 4, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 3, + 4, + 5, + 4, + 0, + 5, + 0, + 2, + 1, + 1, + 3, + 0, + 4, + 3, + 7, + 0, + 0, + 2, + 1, + 2, + 0, + 2 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 2, + "id_edges_covered": 155, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 2, + 2, + 0, + 4, + 7, + 2, + 2, + 0, + 7, + 0, + 7, + 2, + 0, + 2, + 1, + 0, + 0, + 6, + 3, + 0, + 2, + 0, + 1, + 5, + 0, + 5, + 2, + 3, + 0, + 7, + 13, + 2, + 2, + 2, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 9, + 9, + 3, + 0, + 1, + 2, + 0, + 0, + 0, + 3, + 2, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 3, + 0, + 0, + 5, + 1, + 0, + 6, + 1, + 0, + 0, + 0, + 5, + 7, + 6, + 0, + 0, + 2, + 4, + 1, + 0, + 2, + 3, + 7, + 2, + 4, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 0, + 2, + 7, + 2, + 1, + 2, + 0, + 3, + 0, + 7, + 0, + 2, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 4, + 2, + 0, + 7, + 0, + 2, + 3, + 0, + 5, + 0, + 3, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 1, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 12, + 2, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 1, + 3, + 0, + 1, + 3, + 2, + 7, + 3, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 2, + 1, + 4, + 0, + 0, + 3, + 7, + 2, + 10, + 12, + 3, + 7, + 2, + 0, + 0, + 4, + 4, + 2, + 3, + 1, + 0, + 5, + 2, + 6, + 2, + 0, + 3, + 1, + 0, + 2, + 2, + 0, + 4, + 6, + 3, + 0, + 6, + 0, + 5, + 0, + 0, + 4, + 6, + 4, + 3, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 2, + 0, + 4, + 4, + 4, + 0, + 2, + 5, + 6, + 9, + 3, + 2 + ], + "id_count_min": 0, + "id_count_max": 13 + }, + { + "hop": 3, + "id_edges_covered": 156, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 2, + 3, + 5, + 0, + 2, + 0, + 0, + 4, + 3, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 0, + 0, + 0, + 7, + 9, + 0, + 2, + 0, + 1, + 4, + 0, + 6, + 3, + 8, + 0, + 6, + 9, + 0, + 1, + 2, + 3, + 3, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 7, + 4, + 3, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 5, + 1, + 0, + 4, + 4, + 0, + 0, + 5, + 4, + 3, + 4, + 0, + 5, + 4, + 2, + 4, + 0, + 4, + 2, + 6, + 1, + 1, + 3, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 7, + 4, + 1, + 0, + 0, + 1, + 3, + 2, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 2, + 0, + 0, + 5, + 1, + 0, + 2, + 0, + 3, + 7, + 3, + 6, + 0, + 4, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 6, + 1, + 2, + 4, + 4, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 5, + 3, + 0, + 0, + 2, + 2, + 3, + 2, + 3, + 1, + 5, + 0, + 4, + 9, + 2, + 6, + 6, + 0, + 4, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 5, + 2, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 2, + 2, + 8, + 3, + 5, + 4, + 3, + 5, + 0, + 2, + 3, + 4, + 3, + 3, + 0, + 9, + 6, + 10, + 1, + 0, + 1, + 2, + 0, + 0, + 1, + 0, + 1, + 1, + 2, + 0, + 6, + 0, + 0, + 0, + 0, + 8, + 6, + 6, + 3, + 2, + 2, + 5, + 0, + 0, + 2, + 0, + 3, + 0, + 5, + 2, + 2, + 0, + 1, + 2, + 5, + 6, + 6, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 4, + "id_edges_covered": 164, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 2, + 0, + 3, + 2, + 6, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 4, + 5, + 2, + 1, + 1, + 1, + 2, + 0, + 5, + 3, + 4, + 0, + 4, + 10, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 2, + 1, + 1, + 0, + 0, + 2, + 4, + 4, + 0, + 0, + 2, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 0, + 0, + 0, + 0, + 0, + 4, + 0, + 2, + 0, + 6, + 1, + 0, + 6, + 2, + 0, + 0, + 7, + 4, + 8, + 9, + 0, + 4, + 6, + 1, + 3, + 0, + 4, + 3, + 4, + 3, + 1, + 0, + 1, + 5, + 0, + 3, + 1, + 5, + 0, + 4, + 7, + 1, + 1, + 0, + 2, + 1, + 3, + 1, + 0, + 1, + 2, + 2, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 2, + 5, + 4, + 7, + 0, + 3, + 3, + 2, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 4, + 2, + 2, + 1, + 3, + 5, + 2, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 8, + 0, + 0, + 0, + 2, + 4, + 3, + 2, + 2, + 4, + 0, + 5, + 1, + 9, + 9, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 2, + 0, + 0, + 2, + 3, + 6, + 9, + 4, + 7, + 2, + 6, + 4, + 0, + 5, + 1, + 2, + 1, + 0, + 0, + 7, + 5, + 5, + 0, + 0, + 0, + 0, + 0, + 5, + 1, + 0, + 4, + 3, + 1, + 0, + 2, + 0, + 3, + 0, + 0, + 3, + 2, + 1, + 5, + 4, + 6, + 4, + 0, + 0, + 0, + 2, + 5, + 0, + 3, + 4, + 3, + 0, + 2, + 3, + 6, + 3, + 5, + 1 + ], + "id_count_min": 0, + "id_count_max": 10 + } + ] + }, + "test_full_composite": { + "n": 1025, + "any_repeated_entity_n": 243, + "any_repeated_entity_fraction": 0.2370731707317073, + "answer_equals_preceding_entity_n": 116, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 187, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 5, + 0, + 5, + 0, + 2, + 4, + 2, + 12, + 0, + 6, + 5, + 0, + 8, + 8, + 8, + 3, + 0, + 8, + 0, + 2, + 4, + 0, + 9, + 3, + 0, + 0, + 5, + 5, + 4, + 0, + 5, + 7, + 6, + 0, + 11, + 5, + 3, + 0, + 5, + 6, + 4, + 3, + 7, + 11, + 4, + 5, + 0, + 7, + 3, + 4, + 0, + 0, + 7, + 10, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 6, + 6, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 7, + 1, + 9, + 3, + 0, + 4, + 4, + 0, + 5, + 5, + 0, + 0, + 3, + 8, + 6, + 6, + 0, + 3, + 10, + 7, + 5, + 0, + 6, + 10, + 7, + 2, + 8, + 4, + 6, + 6, + 0, + 5, + 9, + 6, + 0, + 6, + 8, + 7, + 6, + 10, + 0, + 10, + 6, + 5, + 0, + 7, + 8, + 6, + 5, + 5, + 2, + 0, + 0, + 5, + 5, + 0, + 4, + 0, + 5, + 11, + 7, + 12, + 0, + 5, + 14, + 4, + 8, + 6, + 0, + 2, + 5, + 6, + 3, + 2, + 4, + 4, + 0, + 2, + 13, + 3, + 7, + 0, + 6, + 3, + 4, + 9, + 5, + 7, + 0, + 13, + 5, + 0, + 0, + 6, + 0, + 7, + 3, + 3, + 7, + 5, + 0, + 3, + 7, + 4, + 6, + 4, + 0, + 4, + 0, + 0, + 0, + 5, + 4, + 1, + 3, + 0, + 6, + 12, + 5, + 0, + 0, + 4, + 1, + 3, + 0, + 0, + 5, + 9, + 3, + 5, + 6, + 2, + 6, + 1, + 4, + 0, + 9, + 6, + 4, + 5, + 2, + 0, + 7, + 6, + 7, + 6, + 0, + 9, + 4, + 0, + 3, + 6, + 0, + 6, + 6, + 2, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 8, + 6, + 7, + 5, + 1, + 6, + 0, + 2, + 2, + 9, + 4, + 0, + 11, + 4, + 14, + 0, + 0, + 3, + 7, + 5, + 2, + 6 + ], + "id_count_min": 0, + "id_count_max": 14 + }, + { + "hop": 2, + "id_edges_covered": 179, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 3, + 0, + 1, + 2, + 1, + 2, + 0, + 5, + 3, + 0, + 10, + 10, + 5, + 4, + 0, + 13, + 0, + 12, + 2, + 0, + 4, + 2, + 0, + 0, + 11, + 9, + 1, + 2, + 0, + 2, + 10, + 0, + 7, + 5, + 9, + 0, + 9, + 21, + 4, + 3, + 3, + 6, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 12, + 19, + 8, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 4, + 3, + 0, + 0, + 5, + 0, + 0, + 0, + 0, + 3, + 0, + 4, + 2, + 0, + 10, + 2, + 0, + 11, + 3, + 0, + 0, + 4, + 10, + 11, + 10, + 0, + 2, + 6, + 7, + 2, + 0, + 7, + 7, + 12, + 2, + 5, + 2, + 2, + 3, + 0, + 3, + 2, + 2, + 0, + 5, + 13, + 5, + 2, + 4, + 2, + 4, + 3, + 10, + 0, + 5, + 0, + 3, + 3, + 3, + 2, + 0, + 0, + 17, + 4, + 0, + 11, + 0, + 4, + 4, + 3, + 6, + 0, + 8, + 7, + 4, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 4, + 2, + 4, + 5, + 1, + 8, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 20, + 5, + 0, + 0, + 2, + 2, + 5, + 1, + 2, + 2, + 6, + 0, + 8, + 7, + 3, + 12, + 7, + 0, + 7, + 0, + 0, + 0, + 3, + 4, + 3, + 4, + 0, + 7, + 4, + 1, + 0, + 0, + 2, + 4, + 6, + 0, + 0, + 3, + 9, + 3, + 15, + 28, + 5, + 20, + 4, + 1, + 0, + 8, + 6, + 3, + 6, + 3, + 0, + 14, + 7, + 10, + 6, + 0, + 9, + 3, + 0, + 3, + 4, + 0, + 9, + 9, + 5, + 0, + 15, + 0, + 11, + 0, + 0, + 8, + 10, + 9, + 7, + 2, + 3, + 5, + 0, + 5, + 4, + 1, + 7, + 0, + 9, + 4, + 6, + 0, + 2, + 6, + 14, + 12, + 13, + 5 + ], + "id_count_min": 0, + "id_count_max": 28 + }, + { + "hop": 3, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 3, + 0, + 8, + 5, + 4, + 11, + 0, + 5, + 2, + 0, + 9, + 12, + 6, + 3, + 0, + 5, + 0, + 8, + 5, + 0, + 1, + 1, + 0, + 0, + 14, + 13, + 0, + 2, + 2, + 2, + 6, + 0, + 10, + 9, + 14, + 0, + 14, + 17, + 1, + 1, + 2, + 3, + 4, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 13, + 9, + 8, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 5, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 2, + 0, + 8, + 4, + 0, + 10, + 7, + 0, + 0, + 7, + 8, + 6, + 11, + 0, + 8, + 9, + 5, + 7, + 0, + 10, + 5, + 12, + 3, + 2, + 4, + 0, + 6, + 0, + 1, + 3, + 4, + 0, + 10, + 10, + 1, + 0, + 3, + 1, + 3, + 6, + 2, + 0, + 0, + 3, + 2, + 2, + 1, + 3, + 0, + 0, + 8, + 2, + 0, + 3, + 0, + 12, + 13, + 6, + 10, + 0, + 7, + 4, + 2, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 2, + 6, + 1, + 4, + 5, + 5, + 5, + 10, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 14, + 4, + 0, + 0, + 3, + 5, + 7, + 5, + 8, + 2, + 8, + 0, + 11, + 15, + 4, + 11, + 8, + 0, + 9, + 0, + 0, + 0, + 5, + 3, + 1, + 2, + 0, + 1, + 7, + 6, + 0, + 0, + 5, + 2, + 7, + 0, + 0, + 5, + 7, + 5, + 14, + 9, + 11, + 10, + 5, + 10, + 0, + 8, + 6, + 7, + 5, + 4, + 0, + 19, + 14, + 16, + 1, + 0, + 1, + 4, + 0, + 2, + 4, + 0, + 3, + 4, + 3, + 0, + 10, + 0, + 3, + 0, + 0, + 10, + 8, + 10, + 4, + 6, + 6, + 12, + 0, + 0, + 2, + 0, + 6, + 0, + 10, + 2, + 6, + 0, + 1, + 6, + 10, + 11, + 9, + 7 + ], + "id_count_min": 0, + "id_count_max": 19 + }, + { + "hop": 4, + "id_edges_covered": 181, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 1, + 0, + 4, + 0, + 1, + 4, + 0, + 1, + 2, + 0, + 8, + 6, + 10, + 8, + 0, + 10, + 0, + 8, + 1, + 0, + 2, + 4, + 0, + 0, + 7, + 8, + 3, + 1, + 1, + 3, + 5, + 0, + 11, + 7, + 10, + 0, + 11, + 17, + 1, + 1, + 1, + 1, + 1, + 4, + 0, + 5, + 1, + 2, + 0, + 0, + 7, + 11, + 6, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 1, + 2, + 0, + 0, + 6, + 0, + 0, + 0, + 0, + 1, + 6, + 2, + 3, + 0, + 14, + 11, + 0, + 11, + 6, + 0, + 0, + 10, + 7, + 12, + 12, + 0, + 5, + 10, + 6, + 4, + 0, + 9, + 8, + 8, + 5, + 1, + 0, + 1, + 6, + 0, + 5, + 4, + 14, + 0, + 12, + 12, + 1, + 1, + 1, + 2, + 5, + 6, + 2, + 0, + 2, + 4, + 3, + 1, + 3, + 1, + 0, + 0, + 3, + 4, + 0, + 4, + 0, + 5, + 12, + 7, + 14, + 0, + 8, + 5, + 5, + 3, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 4, + 5, + 3, + 4, + 10, + 7, + 3, + 0, + 4, + 1, + 3, + 0, + 0, + 0, + 0, + 9, + 15, + 0, + 0, + 3, + 4, + 5, + 5, + 6, + 4, + 7, + 0, + 8, + 8, + 12, + 14, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 7, + 6, + 0, + 4, + 3, + 2, + 0, + 0, + 9, + 6, + 5, + 0, + 0, + 2, + 4, + 8, + 16, + 10, + 15, + 9, + 10, + 8, + 0, + 9, + 3, + 3, + 2, + 1, + 0, + 14, + 9, + 10, + 2, + 0, + 0, + 2, + 0, + 6, + 5, + 0, + 5, + 3, + 2, + 0, + 5, + 0, + 4, + 0, + 0, + 7, + 5, + 9, + 8, + 7, + 9, + 9, + 0, + 1, + 1, + 2, + 10, + 0, + 4, + 6, + 4, + 0, + 4, + 10, + 9, + 10, + 11, + 10 + ], + "id_count_min": 0, + "id_count_max": 17 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 5, + 0, + 10, + 0, + 14, + 7, + 4, + 6, + 0, + 10, + 12, + 0, + 27, + 30, + 11, + 12, + 0, + 26, + 0, + 28, + 15, + 0, + 16, + 12, + 0, + 0, + 27, + 34, + 4, + 8, + 7, + 5, + 26, + 0, + 19, + 26, + 33, + 0, + 32, + 35, + 7, + 10, + 11, + 10, + 13, + 12, + 0, + 5, + 9, + 6, + 0, + 0, + 30, + 28, + 17, + 0, + 5, + 4, + 0, + 0, + 0, + 13, + 12, + 9, + 0, + 0, + 6, + 0, + 10, + 0, + 0, + 7, + 4, + 11, + 15, + 0, + 24, + 14, + 0, + 32, + 17, + 0, + 0, + 12, + 40, + 34, + 33, + 0, + 19, + 20, + 16, + 18, + 0, + 24, + 17, + 21, + 10, + 7, + 11, + 12, + 10, + 0, + 7, + 13, + 20, + 0, + 30, + 23, + 6, + 7, + 8, + 8, + 12, + 14, + 9, + 0, + 7, + 9, + 10, + 9, + 5, + 11, + 0, + 0, + 15, + 12, + 0, + 10, + 0, + 15, + 20, + 15, + 15, + 0, + 17, + 28, + 2, + 8, + 12, + 0, + 0, + 3, + 6, + 1, + 14, + 14, + 5, + 4, + 16, + 16, + 17, + 17, + 0, + 3, + 10, + 9, + 4, + 4, + 7, + 0, + 34, + 30, + 0, + 0, + 14, + 13, + 19, + 5, + 11, + 14, + 15, + 0, + 26, + 43, + 14, + 29, + 17, + 0, + 12, + 0, + 0, + 0, + 17, + 17, + 14, + 16, + 0, + 14, + 14, + 22, + 0, + 0, + 11, + 8, + 22, + 0, + 0, + 21, + 14, + 21, + 39, + 29, + 35, + 31, + 16, + 18, + 0, + 23, + 12, + 18, + 20, + 17, + 0, + 24, + 29, + 38, + 15, + 0, + 17, + 18, + 0, + 10, + 12, + 0, + 11, + 8, + 16, + 0, + 36, + 0, + 14, + 0, + 0, + 22, + 25, + 14, + 35, + 17, + 17, + 14, + 0, + 10, + 8, + 7, + 17, + 0, + 26, + 19, + 15, + 0, + 13, + 16, + 28, + 29, + 22, + 32 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 184, + 173, + 172, + 169 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 37, + "fraction": 0.048177083333333336, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.048177083333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10286458333333333, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10286458333333333, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 7, + 67, + 67, + 69, + 66, + 59 + ], + [ + 46, + 68, + 66, + 69, + 66, + 44 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.17447916666666666, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.17447916666666666, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 56, + 67, + 69, + 66, + 66, + 43 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.2643229166666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.2643229166666667, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 31, + 68, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 246, + "empirical_modal_target_fraction": 0.421875, + "single_target_group_query_fraction": 0.06380208333333333, + "singleton_group_query_fraction": 0.045572916666666664, + "multi_query_groups": 211, + "multi_query_coverage_fraction": 0.9544270833333334, + "multi_query_empirical_modal_target_fraction": 0.3942701227830832, + "multi_target_groups": 204, + "same_suffix_different_target_example": [ + [ + 28, + 66, + 66, + 66, + 66, + 60 + ], + [ + 39, + 66, + 66, + 66, + 66, + 32 + ] + ] + } + ] + }, + "test_composite": { + "n": 512, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 512, + "any_relevant_fact_in_composite_training_n": 512, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 512, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 174, + 155, + 156, + 164 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 20, + "fraction": 0.0390625, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.0390625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.091796875, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.091796875, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 49, + 66, + 67, + 67, + 66, + 63 + ], + [ + 39, + 68, + 66, + 69, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.15625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.15625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 9, + 67, + 69, + 66, + 66, + 34 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.279296875, + "single_target_group_query_fraction": 0.001953125, + "singleton_group_query_fraction": 0.001953125, + "multi_query_groups": 63, + "multi_query_coverage_fraction": 0.998046875, + "multi_query_empirical_modal_target_fraction": 0.27788649706457924, + "multi_target_groups": 63, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 13, + 67, + 66, + 66, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 217, + "empirical_modal_target_fraction": 0.490234375, + "single_target_group_query_fraction": 0.138671875, + "singleton_group_query_fraction": 0.115234375, + "multi_query_groups": 158, + "multi_query_coverage_fraction": 0.884765625, + "multi_query_empirical_modal_target_fraction": 0.423841059602649, + "multi_target_groups": 152, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 68, + 65 + ], + [ + 12, + 66, + 66, + 66, + 68, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 1025, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 1023, + "any_relevant_fact_in_composite_training_n": 1025, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9995121951219512, + "all_id_queries": 1025, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 187, + 179, + 177, + 181 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 44, + "fraction": 0.042926829268292686, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.042926829268292686, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08195121951219513, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08195121951219513, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 69, + 66, + 25 + ], + [ + 2, + 67, + 68, + 67, + 66, + 57 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14146341463414633, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14146341463414633, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 67, + 66, + 66, + 53 + ], + [ + 4, + 68, + 66, + 66, + 66, + 60 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.24, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.24, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 4, + 68, + 66, + 66, + 66, + 60 + ], + [ + 6, + 66, + 66, + 66, + 66, + 36 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 249, + "empirical_modal_target_fraction": 0.3648780487804878, + "single_target_group_query_fraction": 0.02048780487804878, + "singleton_group_query_fraction": 0.014634146341463415, + "multi_query_groups": 234, + "multi_query_coverage_fraction": 0.9853658536585366, + "multi_query_empirical_modal_target_fraction": 0.35544554455445543, + "multi_target_groups": 231, + "same_suffix_different_target_example": [ + [ + 6, + 66, + 66, + 66, + 66, + 36 + ], + [ + 43, + 66, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "ood_composite": { + "n": 53, + "unique_relevant_atomic_facts": 48, + "relevant_atomic_fact_coverage_of_graph": 0.1875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 53, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 35, + 27, + 24, + 26 + ], + "within_split_majority_tail": { + "target_token": 54, + "count": 7, + "fraction": 0.1320754716981132, + "distinct_targets": 22 + }, + "train_composite_majority_tail_fraction": 0.018867924528301886, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.32075471698113206, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.32075471698113206, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 69, + 68, + 66, + 60 + ], + [ + 7, + 68, + 68, + 69, + 66, + 65 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.6981132075471698, + "single_target_group_query_fraction": 0.18867924528301888, + "singleton_group_query_fraction": 0.05660377358490566, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.9433962264150944, + "multi_query_empirical_modal_target_fraction": 0.68, + "multi_target_groups": 9, + "same_suffix_different_target_example": [ + [ + 8, + 67, + 69, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 32, + "empirical_modal_target_fraction": 0.9056603773584906, + "single_target_group_query_fraction": 0.7169811320754716, + "singleton_group_query_fraction": 0.37735849056603776, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.6226415094339622, + "multi_query_empirical_modal_target_fraction": 0.8484848484848485, + "multi_target_groups": 5, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 47, + "empirical_modal_target_fraction": 0.9622641509433962, + "single_target_group_query_fraction": 0.9056603773584906, + "singleton_group_query_fraction": 0.7924528301886793, + "multi_query_groups": 5, + "multi_query_coverage_fraction": 0.20754716981132076, + "multi_query_empirical_modal_target_fraction": 0.8181818181818182, + "multi_target_groups": 2, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + } + ] + }, + "unused_composite": { + "n": 3358, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 3354, + "any_relevant_fact_in_composite_training_n": 3358, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9997022036926743, + "all_id_queries": 3358, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192, + 185, + 185, + 184 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 143, + "fraction": 0.04258487194758785, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03335318642048839, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.09380583680762358, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.09380583680762358, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 67, + 66, + 57 + ], + [ + 2, + 67, + 66, + 68, + 66, + 50 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14502680166765933, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14502680166765933, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 67, + 66, + 66, + 10 + ], + [ + 3, + 69, + 67, + 66, + 66, + 53 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.197736748064324, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.197736748064324, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 67, + 66, + 66, + 66, + 44 + ], + [ + 5, + 66, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 256, + "empirical_modal_target_fraction": 0.25431804645622397, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 256, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25431804645622397, + "multi_target_groups": 256, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 66, + 5 + ], + [ + 7, + 66, + 66, + 66, + 66, + 45 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + } + }, + "same_atomic_and_id_mask_all_lengths": true, + "source_entity_offset": 2, + "entity_offset": 3, + "source_token_shift": 1, + "separator_token": 71, + "vocab_size": 72, + "evaluation_pools": "Complete test_full_composite and ood_composite", + "composition_supervision": "Terminal entity only; no intermediate entity", + "training_objective": "All nonpadding next tokens including EOS", + "holdout": "Complete queries held out within each length; not subpaths across lengths", + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "independent_audit": { + "passed": true, + "counts": { + "atomic": 256, + "train_2": 444, + "familiar_2": 124, + "strict_2": 64, + "train_3": 768, + "familiar_3": 329, + "strict_3": 59, + "train_4": 768, + "familiar_4": 1025, + "strict_4": 53 + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "truth_edges_independently_traversed": true, + "complete_query_overlap": 0, + "all_strict_facts_absent_from_composition_training": true, + "cross_length_subpath_holdout": false + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/audit-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/audit-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..3bded3386c3e91de156b40b89f445c467ddfdd87 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/audit-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "audit", + "gpu": 6, + "returncode": 0, + "seconds": 3.742221672087908 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/audit-process.log b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/audit-process.log new file mode 100644 index 0000000000000000000000000000000000000000..b6cc96c9c07f739970bf89b48abb979250d5777a --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/audit-process.log @@ -0,0 +1 @@ +{"passed": true, "dataset_rebuilt_and_archived_exact": true, "initial_model_exact": true, "checkpoint_nodes": [0, 8000, 32000, 64000], "endpoint_tokens_exact": true, "all_nodes_exposure_counters_exact": true, "stream_state_continuation_exact": true, "max_nll_difference": 0.0, "nll_rtol": 1e-05, "nll_atol": 1e-05, "utc": "2026-10-01T22:55:22.413550+00:00"} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/audit.json b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/audit.json new file mode 100644 index 0000000000000000000000000000000000000000..c22469b1f67e100536b4d172ee84dd23215ffad8 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/audit.json @@ -0,0 +1,18 @@ +{ + "passed": true, + "dataset_rebuilt_and_archived_exact": true, + "initial_model_exact": true, + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "endpoint_tokens_exact": true, + "all_nodes_exposure_counters_exact": true, + "stream_state_continuation_exact": true, + "max_nll_difference": 0.0, + "nll_rtol": 1e-05, + "nll_atol": 1e-05, + "utc": "2026-10-01T22:55:22.413550+00:00" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/complete.json b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..8fa46382ec65f5a69820b421a8b63236e99dc8cf --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/complete.json @@ -0,0 +1,204 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 3, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "initial_model_sha256": "cda41f11f977c552e8cbd239f2b16bffb253718ab3f3a3d78525485c59efd51d", + "checkpoint_sha256": "4d8496d123cf22b4e9be62854ec412bb8d92b712faef03a2d797fad5b7268697", + "finished_utc": "2026-10-01T22:55:18.489650+00:00", + "parameters": 208896, + "strata_counts": { + "atomic": 256, + "train_2": 444, + "train_3": 768, + "train_4": 768 + }, + "endpoint": { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 4.1715837141964585e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 4.4728432840202004e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3467741935483871, + "answer_accuracy": 0.3467741935483871, + "answer_nll": 4.297607421875, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3467741935483871, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.967612266540527, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 6.527587538585067e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3829787234042553, + "answer_accuracy": 0.3829787234042553, + "answer_nll": 4.08961296081543, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3829787234042553, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.05084745762711865, + "answer_accuracy": 0.05084745762711865, + "answer_nll": 11.626229286193848, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.05084745762711865, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 7.754035323159769e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2224390243902439, + "answer_accuracy": 0.2224390243902439, + "answer_nll": 6.3078227043151855, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2224390243902439, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.673172950744629, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.172852635383606, + "training_seconds": 57.42538462206721, + "estimated_training_flops": 237968031744000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + }, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000, + "estimated_training_flops": 237968031744000, + "training_seconds": 57.42538462206721, + "process_seconds": 62.45737601071596, + "environment": { + "torch": "2.6.0+cu126", + "numpy": "1.23.5", + "cuda": "12.6", + "gpu": "NVIDIA L20X", + "tf32": true + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/input-spec.json b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/input-spec.json new file mode 100644 index 0000000000000000000000000000000000000000..2a093862bfbed886eb57933b67acd1d770310e47 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/input-spec.json @@ -0,0 +1,65 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 3, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/learning.json b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..7687199a93cd4599654026298194953b3f015799 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/learning.json @@ -0,0 +1,1162 @@ +[ + { + "step": 0, + "lr": 0.0, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.320268630981445 + }, + "train_2": { + "n": 444, + "accuracy": 0.0, + "answer_accuracy": 0.0045045045045045045, + "answer_nll": 4.309840679168701, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.0, + "answer_accuracy": 0.024193548387096774, + "answer_nll": 4.320629119873047, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.334543228149414, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.006510416666666667, + "answer_nll": 4.333831787109375, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.345091819763184, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.322763919830322, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.319217681884766, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.319056034088135, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.327881813049316, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": null, + "training_seconds": 0.0, + "estimated_training_flops": 0, + "supervised_tokens": 0, + "padded_input_tokens": 0 + }, + { + "step": 256, + "lr": 0.0009999982891312849, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.140625, + "answer_accuracy": 0.140625, + "answer_nll": 3.3981995582580566 + }, + "train_2": { + "n": 444, + "accuracy": 0.10135135135135136, + "answer_accuracy": 0.10135135135135136, + "answer_nll": 3.36505126953125, + "atomic_correct_coverage": 0.07882882882882883, + "conditional_accuracy": 0.6571428571428571, + "autonomous_two_calls": 0.1373873873873874, + "autonomous_path_accuracy": 0.07882882882882883, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.10483870967741936, + "answer_accuracy": 0.10483870967741936, + "answer_nll": 3.3863461017608643, + "atomic_correct_coverage": 0.07258064516129033, + "conditional_accuracy": 0.5555555555555556, + "autonomous_two_calls": 0.11290322580645161, + "autonomous_path_accuracy": 0.07258064516129033, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 4.507716655731201, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.015625, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.09765625, + "answer_accuracy": 0.09765625, + "answer_nll": 3.3995673656463623, + "atomic_correct_coverage": 0.036458333333333336, + "conditional_accuracy": 0.6071428571428571, + "autonomous_two_calls": 0.09375, + "autonomous_path_accuracy": 0.036458333333333336, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.11854103343465046, + "answer_accuracy": 0.11854103343465046, + "answer_nll": 3.4700982570648193, + "atomic_correct_coverage": 0.0364741641337386, + "conditional_accuracy": 0.5833333333333334, + "autonomous_two_calls": 0.10030395136778116, + "autonomous_path_accuracy": 0.0364741641337386, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.889537334442139, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.01694915254237288, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.11458333333333333, + "answer_accuracy": 0.11458333333333333, + "answer_nll": 3.3882744312286377, + "atomic_correct_coverage": 0.0234375, + "conditional_accuracy": 0.4444444444444444, + "autonomous_two_calls": 0.08984375, + "autonomous_path_accuracy": 0.0234375, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.08585365853658537, + "answer_accuracy": 0.08585365853658537, + "answer_nll": 3.502215623855591, + "atomic_correct_coverage": 0.00975609756097561, + "conditional_accuracy": 0.8, + "autonomous_two_calls": 0.06536585365853659, + "autonomous_path_accuracy": 0.00975609756097561, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 5.028154373168945, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.018867924528301886, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": 1.9022167921066284, + "training_seconds": 0.22991487383842468, + "estimated_training_flops": 951872126976, + "supervised_tokens": 212992, + "padded_input_tokens": 262144 + }, + { + "step": 512, + "lr": 0.0009999468942493638, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.62890625, + "answer_accuracy": 0.62890625, + "answer_nll": 1.5874332189559937 + }, + "train_2": { + "n": 444, + "accuracy": 0.4099099099099099, + "answer_accuracy": 0.4099099099099099, + "answer_nll": 2.1453592777252197, + "atomic_correct_coverage": 0.5180180180180181, + "conditional_accuracy": 0.5478260869565217, + "autonomous_two_calls": 0.536036036036036, + "autonomous_path_accuracy": 0.5180180180180181, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.12903225806451613, + "answer_accuracy": 0.12903225806451613, + "answer_nll": 2.9947397708892822, + "atomic_correct_coverage": 0.4032258064516129, + "conditional_accuracy": 0.16, + "autonomous_two_calls": 0.4274193548387097, + "autonomous_path_accuracy": 0.4032258064516129, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 4.974135398864746, + "atomic_correct_coverage": 0.125, + "conditional_accuracy": 0.125, + "autonomous_two_calls": 0.15625, + "autonomous_path_accuracy": 0.125, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.23697916666666666, + "answer_accuracy": 0.23697916666666666, + "answer_nll": 2.6534347534179688, + "atomic_correct_coverage": 0.3580729166666667, + "conditional_accuracy": 0.3054545454545455, + "autonomous_two_calls": 0.3919270833333333, + "autonomous_path_accuracy": 0.3580729166666667, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.1519756838905775, + "answer_accuracy": 0.1519756838905775, + "answer_nll": 3.0846569538116455, + "atomic_correct_coverage": 0.3373860182370821, + "conditional_accuracy": 0.2702702702702703, + "autonomous_two_calls": 0.364741641337386, + "autonomous_path_accuracy": 0.3373860182370821, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 5.607742786407471, + "atomic_correct_coverage": 0.03389830508474576, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.13559322033898305, + "autonomous_path_accuracy": 0.03389830508474576, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.2265625, + "answer_accuracy": 0.2265625, + "answer_nll": 2.8022632598876953, + "atomic_correct_coverage": 0.23958333333333334, + "conditional_accuracy": 0.32065217391304346, + "autonomous_two_calls": 0.2760416666666667, + "autonomous_path_accuracy": 0.23958333333333334, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.12390243902439024, + "answer_accuracy": 0.12390243902439024, + "answer_nll": 3.334867477416992, + "atomic_correct_coverage": 0.2302439024390244, + "conditional_accuracy": 0.19915254237288135, + "autonomous_two_calls": 0.2702439024390244, + "autonomous_path_accuracy": 0.2302439024390244, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 5.68552303314209, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.11320754716981132, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": 1.725861668586731, + "training_seconds": 0.4600350931286812, + "estimated_training_flops": 1903744253952, + "supervised_tokens": 425984, + "padded_input_tokens": 524288 + }, + { + "step": 1000, + "lr": 0.0009996508880478938, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.10861072689294815 + }, + "train_2": { + "n": 444, + "accuracy": 0.9842342342342343, + "answer_accuracy": 0.9842342342342343, + "answer_nll": 0.18093940615653992, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9842342342342343, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.21774193548387097, + "answer_accuracy": 0.21774193548387097, + "answer_nll": 2.8163013458251953, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.21774193548387097, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 6.99082088470459, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.87890625, + "answer_accuracy": 0.87890625, + "answer_nll": 0.5234457850456238, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.87890625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.23100303951367782, + "answer_accuracy": 0.23100303951367782, + "answer_nll": 3.063706159591675, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.23100303951367782, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 7.008668422698975, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.765625, + "answer_accuracy": 0.765625, + "answer_nll": 0.8092048168182373, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.765625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.19902439024390245, + "answer_accuracy": 0.19902439024390245, + "answer_nll": 3.685032844543457, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.19902439024390245, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 7.16607666015625, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.3985247611999512, + "training_seconds": 0.8980763480067253, + "estimated_training_flops": 3718250496000, + "supervised_tokens": 832000, + "padded_input_tokens": 1024000 + }, + { + "step": 2000, + "lr": 0.000998233549067816, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.01713773049414158 + }, + "train_2": { + "n": 444, + "accuracy": 0.9954954954954955, + "answer_accuracy": 0.9954954954954955, + "answer_nll": 0.03642214089632034, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9954954954954955, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.27419354838709675, + "answer_accuracy": 0.27419354838709675, + "answer_nll": 3.3514363765716553, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.27419354838709675, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 8.72311782836914, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9921875, + "answer_accuracy": 0.9921875, + "answer_nll": 0.05709412693977356, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9921875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.303951367781155, + "answer_accuracy": 0.303951367781155, + "answer_nll": 3.471540927886963, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.303951367781155, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 8.885879516601562, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9856770833333334, + "answer_accuracy": 0.9856770833333334, + "answer_nll": 0.09156420081853867, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9856770833333334, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2029268292682927, + "answer_accuracy": 0.2029268292682927, + "answer_nll": 4.806818962097168, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2029268292682927, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 9.043333053588867, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.226536750793457, + "training_seconds": 1.7963127717375755, + "estimated_training_flops": 7436500992000, + "supervised_tokens": 1664000, + "padded_input_tokens": 2048000 + }, + { + "step": 4000, + "lr": 0.0009921451014991594, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.01049793604761362 + }, + "train_2": { + "n": 444, + "accuracy": 0.9887387387387387, + "answer_accuracy": 0.9887387387387387, + "answer_nll": 0.03448363393545151, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9887387387387387, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.27419354838709675, + "answer_accuracy": 0.27419354838709675, + "answer_nll": 3.9020848274230957, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.27419354838709675, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 9.824597358703613, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9817708333333334, + "answer_accuracy": 0.9817708333333334, + "answer_nll": 0.07422555983066559, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9817708333333334, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.2765957446808511, + "answer_accuracy": 0.2765957446808511, + "answer_nll": 4.185914039611816, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2765957446808511, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 9.567623138427734, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.96484375, + "answer_accuracy": 0.96484375, + "answer_nll": 0.1508372724056244, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.96484375, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.17365853658536584, + "answer_accuracy": 0.17365853658536584, + "answer_nll": 5.600725173950195, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.17365853658536584, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 9.782787322998047, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.2090929746627808, + "training_seconds": 3.5902472995221615, + "estimated_training_flops": 14873001984000, + "supervised_tokens": 3328000, + "padded_input_tokens": 4096000 + }, + { + "step": 8000, + "lr": 0.0009672142859549292, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.004184806253761053 + }, + "train_2": { + "n": 444, + "accuracy": 0.9977477477477478, + "answer_accuracy": 0.9977477477477478, + "answer_nll": 0.01971789449453354, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9977477477477478, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.31451612903225806, + "answer_accuracy": 0.31451612903225806, + "answer_nll": 4.056084156036377, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.31451612903225806, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 9.514781951904297, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.046875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9778645833333334, + "answer_accuracy": 0.9791666666666666, + "answer_nll": 0.08608939498662949, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9778645833333334, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.2948328267477204, + "answer_accuracy": 0.2948328267477204, + "answer_nll": 4.2275848388671875, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2948328267477204, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 9.686360359191895, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9895833333333334, + "answer_accuracy": 0.9895833333333334, + "answer_nll": 0.040816087275743484, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9895833333333334, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.18341463414634146, + "answer_accuracy": 0.18341463414634146, + "answer_nll": 5.787347793579102, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.18341463414634146, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 10.253068923950195, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.2040820121765137, + "training_seconds": 7.179924722760916, + "estimated_training_flops": 29746003968000, + "supervised_tokens": 6656000, + "padded_input_tokens": 8192000 + }, + { + "step": 16000, + "lr": 0.0008705396215758866, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0002667180960997939 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00031688122544437647, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3790322580645161, + "answer_accuracy": 0.3790322580645161, + "answer_nll": 3.638840675354004, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3790322580645161, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 10.227343559265137, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00048211426474153996, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3525835866261398, + "answer_accuracy": 0.3525835866261398, + "answer_nll": 3.8587846755981445, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3525835866261398, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 10.556652069091797, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0005560980062000453, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2146341463414634, + "answer_accuracy": 0.2146341463414634, + "answer_nll": 5.919731140136719, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2146341463414634, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.60582447052002, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1798806190490723, + "training_seconds": 14.353737950325012, + "estimated_training_flops": 59492007936000, + "supervised_tokens": 13312000, + "padded_input_tokens": 16384000 + }, + { + "step": 32000, + "lr": 0.0005522158479326845, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0001133642508648336 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00014083110727369785, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3709677419354839, + "answer_accuracy": 0.3709677419354839, + "answer_nll": 4.085758686065674, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3709677419354839, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 11.450801849365234, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00020158679399173707, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3677811550151976, + "answer_accuracy": 0.3677811550151976, + "answer_nll": 3.8614089488983154, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3677811550151976, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0847457627118644, + "answer_accuracy": 0.0847457627118644, + "answer_nll": 11.16543960571289, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0847457627118644, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00024105538614094257, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.23414634146341465, + "answer_accuracy": 0.23414634146341465, + "answer_nll": 6.112699031829834, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.23414634146341465, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.939590454101562, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1744823455810547, + "training_seconds": 28.713367883116007, + "estimated_training_flops": 118984015872000, + "supervised_tokens": 26624000, + "padded_input_tokens": 32768000 + }, + { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 4.1715837141964585e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 4.4728432840202004e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3467741935483871, + "answer_accuracy": 0.3467741935483871, + "answer_nll": 4.297607421875, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3467741935483871, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.967612266540527, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 6.527587538585067e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3829787234042553, + "answer_accuracy": 0.3829787234042553, + "answer_nll": 4.08961296081543, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3829787234042553, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.05084745762711865, + "answer_accuracy": 0.05084745762711865, + "answer_nll": 11.626229286193848, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.05084745762711865, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 7.754035323159769e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2224390243902439, + "answer_accuracy": 0.2224390243902439, + "answer_nll": 6.3078227043151855, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2224390243902439, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.673172950744629, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.172852635383606, + "training_seconds": 57.42538462206721, + "estimated_training_flops": 237968031744000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + } +] diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/spec.json b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/spec.json new file mode 100644 index 0000000000000000000000000000000000000000..a256c5e6ab8ab93b8fb3edae09ae06120e53e7c8 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/spec.json @@ -0,0 +1,66 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 3, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/status.json new file mode 100644 index 0000000000000000000000000000000000000000..d332dc2b8bde7c33219e9f3a7045f6466b684b92 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/status.json @@ -0,0 +1,4 @@ +{ + "step": 64000, + "budget": 64000 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/train-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/train-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..eaaa3b6de70e1d12e48f7cca2a3bb4a8e91055fb --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/train-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "train", + "gpu": 6, + "returncode": 0, + "seconds": 71.64844576269388 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/train-process.log b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/train-process.log new file mode 100644 index 0000000000000000000000000000000000000000..9dbd2c11caed6641abe139ac613f0b5ae474f00f --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/train-process.log @@ -0,0 +1,10 @@ +{"run": "w751011-i752011-d128-l1-r3-s64000", "step": 0, "atomic": 0.0, "familiar": {"2": 0.0, "3": 0.0, "4": 0.0}} +{"run": "w751011-i752011-d128-l1-r3-s64000", "step": 256, "atomic": 0.140625, "familiar": {"2": 0.10483870967741936, "3": 0.11854103343465046, "4": 0.08585365853658537}} +{"run": "w751011-i752011-d128-l1-r3-s64000", "step": 512, "atomic": 0.62890625, "familiar": {"2": 0.12903225806451613, "3": 0.1519756838905775, "4": 0.12390243902439024}} +{"run": "w751011-i752011-d128-l1-r3-s64000", "step": 1000, "atomic": 1.0, "familiar": {"2": 0.21774193548387097, "3": 0.23100303951367782, "4": 0.19902439024390245}} +{"run": "w751011-i752011-d128-l1-r3-s64000", "step": 2000, "atomic": 1.0, "familiar": {"2": 0.27419354838709675, "3": 0.303951367781155, "4": 0.2029268292682927}} +{"run": "w751011-i752011-d128-l1-r3-s64000", "step": 4000, "atomic": 1.0, "familiar": {"2": 0.27419354838709675, "3": 0.2765957446808511, "4": 0.17365853658536584}} +{"run": "w751011-i752011-d128-l1-r3-s64000", "step": 8000, "atomic": 1.0, "familiar": {"2": 0.31451612903225806, "3": 0.2948328267477204, "4": 0.18341463414634146}} +{"run": "w751011-i752011-d128-l1-r3-s64000", "step": 16000, "atomic": 1.0, "familiar": {"2": 0.3790322580645161, "3": 0.3525835866261398, "4": 0.2146341463414634}} +{"run": "w751011-i752011-d128-l1-r3-s64000", "step": 32000, "atomic": 1.0, "familiar": {"2": 0.3709677419354839, "3": 0.3677811550151976, "4": 0.23414634146341465}} +{"run": "w751011-i752011-d128-l1-r3-s64000", "step": 64000, "atomic": 1.0, "familiar": {"2": 0.3467741935483871, "3": 0.3829787234042553, "4": 0.2224390243902439}} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/world-metadata.json b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/world-metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0d160c9e2f6a49b4d5ec9ef5ade290343346beb5 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r3-s64000/world-metadata.json @@ -0,0 +1,11519 @@ +{ + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "id_mask": [ + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + false, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + true, + true, + false, + false, + false, + true, + true, + true, + false, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + false, + true, + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true + ], + "source_worlds": { + "2": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": true, + "phi_actual": 2.3125, + "mixed_composite_excluded": 392, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 444, + "test_composite": 124, + "test_full_composite": 124, + "ood_composite": 64, + "unused_composite": 0 + }, + "dataset_sha256": "59e810faf8478e02f02ffd785bce119413d62608e48c5d41a4c24032dda4abc2", + "warnings": [ + "Training request capped at eligible pool" + ], + "hops": 2, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 568, + "all_paths_total": 1024, + "training_fraction_of_id_paths": 0.7816901408450704, + "training_fraction_of_nonreserved_id_paths": 1.0, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 29, + 49, + 14, + 32, + 62, + 86, + 66, + 5, + 8, + 83, + 50, + 88, + 116, + 23, + 87, + 80, + 100, + 9, + 117, + 81, + 79, + 54, + 91, + 111, + 19, + 4, + 68, + 2, + 113, + 40, + 65, + 27, + 38, + 0, + 41, + 21, + 1, + 78, + 82, + 101, + 15, + 20, + 59, + 35, + 99, + 53, + 84, + 123, + 114, + 56, + 108, + 72, + 55, + 104, + 92, + 22, + 89, + 43, + 18, + 11, + 74, + 13, + 52, + 60, + 25, + 109, + 48, + 57, + 71, + 115, + 30, + 110, + 61, + 119, + 44, + 95, + 106, + 47, + 121, + 24, + 69, + 118, + 98, + 39, + 34, + 112, + 26, + 102, + 36, + 75, + 33, + 105, + 96, + 51, + 94, + 58, + 90, + 12, + 10, + 97, + 76, + 107, + 93, + 42, + 6, + 17, + 46, + 122, + 64, + 67, + 73, + 85, + 77, + 28, + 7, + 45, + 3, + 120, + 63, + 70, + 37, + 16, + 31, + 103 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 444, + "any_repeated_entity_n": 45, + "any_repeated_entity_fraction": 0.10135135135135136, + "answer_equals_preceding_entity_n": 33, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 185, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 0, + 4, + 2, + 0, + 1, + 0, + 2, + 0, + 3, + 2, + 0, + 1, + 2, + 0, + 0, + 2, + 3, + 3, + 2, + 1, + 3, + 3, + 0, + 3, + 2, + 2, + 0, + 2, + 3, + 1, + 2, + 4, + 3, + 3, + 2, + 0, + 0, + 1, + 3, + 0, + 0, + 4, + 4, + 1, + 0, + 2, + 2, + 0, + 0, + 0, + 1, + 4, + 3, + 0, + 0, + 1, + 0, + 3, + 0, + 0, + 4, + 2, + 2, + 2, + 0, + 2, + 2, + 0, + 2, + 3, + 0, + 0, + 2, + 3, + 3, + 4, + 0, + 3, + 4, + 2, + 3, + 0, + 2, + 2, + 0, + 3, + 1, + 3, + 3, + 3, + 0, + 2, + 3, + 1, + 0, + 3, + 2, + 3, + 3, + 3, + 1, + 2, + 2, + 2, + 0, + 3, + 2, + 4, + 2, + 2, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 3, + 3, + 0, + 3, + 3, + 2, + 3, + 3, + 0, + 1, + 3, + 3, + 1, + 2, + 3, + 1, + 1, + 1, + 4, + 3, + 3, + 0, + 2, + 3, + 2, + 3, + 1, + 3, + 0, + 3, + 2, + 0, + 0, + 2, + 2, + 4, + 1, + 3, + 3, + 3, + 0, + 2, + 2, + 2, + 2, + 2, + 0, + 3, + 0, + 0, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 0, + 2, + 0, + 3, + 2, + 2, + 4, + 2, + 0, + 4, + 2, + 3, + 4, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 4, + 2, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 2, + 2, + 3, + 1, + 2, + 2, + 2, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 2, + 1, + 0, + 1, + 3, + 4, + 2, + 2, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 182, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 0, + 3, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 0, + 5, + 3, + 0, + 1, + 1, + 1, + 3, + 0, + 4, + 4, + 4, + 0, + 5, + 4, + 1, + 2, + 1, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 3, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 5, + 4, + 0, + 1, + 2, + 0, + 0, + 4, + 6, + 5, + 5, + 0, + 2, + 2, + 2, + 1, + 0, + 2, + 3, + 3, + 2, + 2, + 2, + 2, + 2, + 0, + 2, + 2, + 4, + 0, + 4, + 3, + 1, + 1, + 1, + 1, + 2, + 2, + 1, + 0, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 0, + 2, + 3, + 0, + 4, + 0, + 1, + 1, + 2, + 3, + 0, + 3, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 2, + 1, + 3, + 3, + 3, + 2, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 2, + 2, + 2, + 2, + 2, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 3, + 2, + 0, + 3, + 2, + 2, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 2, + 3, + 1, + 5, + 6, + 7, + 6, + 3, + 2, + 0, + 3, + 2, + 3, + 2, + 3, + 0, + 4, + 3, + 3, + 1, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 1, + 2, + 2, + 0, + 5, + 0, + 6, + 0, + 0, + 4, + 4, + 3, + 1, + 3, + 2, + 2, + 0, + 2, + 3, + 2, + 4, + 0, + 3, + 3, + 2, + 0, + 2, + 3, + 4, + 4, + 4, + 3 + ], + "id_count_min": 0, + "id_count_max": 7 + } + ] + }, + "test_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + }, + "test_full_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 3, + 0, + 4, + 0, + 4, + 3, + 2, + 3, + 0, + 3, + 4, + 0, + 8, + 5, + 4, + 4, + 0, + 5, + 0, + 5, + 3, + 0, + 3, + 4, + 0, + 0, + 7, + 6, + 3, + 3, + 2, + 4, + 6, + 0, + 7, + 6, + 6, + 0, + 7, + 7, + 2, + 4, + 5, + 4, + 4, + 4, + 0, + 0, + 2, + 4, + 0, + 0, + 8, + 9, + 6, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 6, + 5, + 0, + 0, + 4, + 0, + 4, + 0, + 0, + 5, + 4, + 4, + 3, + 0, + 7, + 6, + 0, + 3, + 5, + 0, + 0, + 6, + 9, + 8, + 9, + 0, + 5, + 6, + 4, + 4, + 0, + 4, + 5, + 3, + 5, + 3, + 5, + 5, + 5, + 0, + 4, + 5, + 5, + 0, + 7, + 5, + 4, + 4, + 4, + 2, + 4, + 4, + 3, + 0, + 4, + 3, + 5, + 2, + 4, + 4, + 0, + 0, + 4, + 3, + 0, + 7, + 0, + 3, + 3, + 5, + 6, + 0, + 6, + 4, + 3, + 4, + 4, + 0, + 1, + 3, + 3, + 1, + 4, + 5, + 3, + 2, + 4, + 7, + 6, + 5, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 7, + 5, + 0, + 0, + 4, + 4, + 6, + 3, + 5, + 4, + 5, + 0, + 6, + 5, + 6, + 5, + 5, + 0, + 6, + 0, + 0, + 0, + 6, + 3, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 0, + 4, + 3, + 4, + 0, + 0, + 5, + 5, + 3, + 7, + 10, + 9, + 8, + 3, + 4, + 0, + 6, + 4, + 5, + 6, + 5, + 0, + 8, + 5, + 6, + 5, + 0, + 6, + 4, + 0, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 9, + 0, + 8, + 0, + 0, + 6, + 6, + 6, + 2, + 5, + 4, + 4, + 0, + 2, + 3, + 4, + 6, + 0, + 5, + 5, + 3, + 0, + 3, + 6, + 8, + 6, + 6, + 5 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 444, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 444, + "any_relevant_fact_in_composite_training_n": 444, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 444, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 185, + 182 + ], + "within_split_majority_tail": { + "target_token": 8, + "count": 16, + "fraction": 0.036036036036036036, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.036036036036036036, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08783783783783784, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08783783783783784, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 36, + 67, + 66, + 43 + ], + [ + 47, + 69, + 66, + 56 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.13063063063063063, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.13063063063063063, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 54, + 66, + 66, + 43 + ], + [ + 11, + 66, + 66, + 22 + ] + ] + } + ] + }, + "test_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 15, + 68, + 66, + 34 + ], + [ + 18, + 68, + 66, + 22 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 35, + 66, + 66, + 53 + ], + [ + 55, + 66, + 66, + 60 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 66, + 53 + ], + [ + 5, + 69, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 53 + ], + [ + 25, + 66, + 66, + 16 + ] + ] + } + ] + }, + "ood_composite": { + "n": 64, + "unique_relevant_atomic_facts": 53, + "relevant_atomic_fact_coverage_of_graph": 0.20703125, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 44, + 39 + ], + "within_split_majority_tail": { + "target_token": 58, + "count": 5, + "fraction": 0.078125, + "distinct_targets": 30 + }, + "train_composite_majority_tail_fraction": 0.0, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.25, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 6, + 67, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.328125, + "single_target_group_query_fraction": 0.03125, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.328125, + "multi_target_groups": 14, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 13, + 66, + 66, + 13 + ] + ] + } + ] + }, + "unused_composite": { + "n": 0, + "unique_relevant_atomic_facts": 0, + "relevant_atomic_fact_coverage_of_graph": 0.0, + "all_relevant_facts_in_atomic_training_fraction": null, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": null, + "all_id_queries": 0, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 0, + 0 + ], + "within_split_majority_tail": { + "target_token": null, + "count": 0, + "fraction": null, + "distinct_targets": 0 + }, + "train_composite_majority_tail_fraction": null, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + }, + { + "suffix_relation_count": 2, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "3": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 2331, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 329, + "test_full_composite": 329, + "ood_composite": 59, + "unused_composite": 609 + }, + "dataset_sha256": "874230d99d7b1184953935d1476d34c3d69968bcc196b499299cf4c63dc75d6f", + "warnings": [], + "hops": 3, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 1706, + "all_paths_total": 4096, + "training_fraction_of_id_paths": 0.4501758499413834, + "training_fraction_of_nonreserved_id_paths": 0.5577342047930284, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 177, + 263, + 289, + 328, + 73, + 17, + 112, + 159, + 45, + 110, + 16, + 286, + 225, + 25, + 95, + 24, + 49, + 66, + 230, + 201, + 19, + 7, + 172, + 323, + 321, + 152, + 181, + 58, + 313, + 169, + 218, + 231, + 221, + 121, + 285, + 243, + 150, + 256, + 292, + 141, + 105, + 51, + 34, + 37, + 102, + 266, + 196, + 139, + 106, + 250, + 65, + 28, + 195, + 188, + 113, + 52, + 228, + 173, + 246, + 99, + 125, + 167, + 175, + 244, + 61, + 47, + 178, + 257, + 50, + 2, + 301, + 252, + 55, + 202, + 165, + 41, + 148, + 140, + 309, + 239, + 213, + 238, + 128, + 318, + 97, + 86, + 242, + 311, + 88, + 197, + 248, + 96, + 293, + 273, + 155, + 281, + 90, + 214, + 87, + 278, + 270, + 21, + 237, + 35, + 71, + 44, + 157, + 315, + 156, + 174, + 222, + 4, + 134, + 249, + 32, + 119, + 260, + 130, + 232, + 259, + 192, + 183, + 291, + 185, + 264, + 79, + 75, + 104, + 13, + 296, + 26, + 133, + 101, + 272, + 304, + 205, + 319, + 254, + 11, + 162, + 48, + 93, + 306, + 190, + 290, + 27, + 262, + 168, + 116, + 200, + 109, + 277, + 118, + 29, + 279, + 268, + 314, + 111, + 245, + 288, + 298, + 186, + 81, + 226, + 12, + 324, + 227, + 171, + 18, + 326, + 233, + 179, + 15, + 307, + 170, + 144, + 275, + 43, + 287, + 320, + 103, + 36, + 215, + 302, + 164, + 153, + 120, + 59, + 1, + 94, + 209, + 189, + 180, + 76, + 77, + 123, + 98, + 83, + 108, + 224, + 40, + 67, + 129, + 229, + 54, + 269, + 149, + 265, + 297, + 22, + 92, + 303, + 126, + 282, + 223, + 42, + 191, + 216, + 100, + 135, + 184, + 14, + 72, + 163, + 253, + 131, + 207, + 3, + 255, + 82, + 166, + 312, + 241, + 295, + 251, + 204, + 84, + 57, + 274, + 78, + 299, + 8, + 276, + 10, + 217, + 212, + 176, + 267, + 74, + 107, + 147, + 327, + 91, + 33, + 305, + 151, + 38, + 199, + 325, + 0, + 182, + 122, + 9, + 300, + 235, + 160, + 85, + 317, + 187, + 208, + 56, + 219, + 161, + 70, + 80, + 308, + 31, + 124, + 194, + 316, + 220, + 145, + 154, + 115, + 258, + 271, + 210, + 198, + 310, + 60, + 68, + 234, + 114, + 247, + 62, + 64, + 322, + 283, + 23, + 284, + 203, + 261, + 136, + 294, + 89, + 30, + 211, + 63, + 6, + 20, + 158, + 146, + 53, + 5, + 143, + 117, + 137, + 132, + 138, + 193, + 127, + 280, + 236, + 69, + 39, + 206, + 142, + 46, + 240 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 117, + "any_repeated_entity_fraction": 0.15234375, + "answer_equals_preceding_entity_n": 63, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 189, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 5, + 0, + 7, + 2, + 2, + 6, + 0, + 5, + 3, + 0, + 7, + 5, + 5, + 2, + 0, + 5, + 0, + 6, + 6, + 0, + 7, + 2, + 0, + 0, + 2, + 4, + 3, + 5, + 3, + 4, + 4, + 0, + 6, + 5, + 3, + 0, + 3, + 7, + 0, + 4, + 7, + 4, + 3, + 4, + 0, + 4, + 4, + 6, + 0, + 0, + 5, + 5, + 5, + 0, + 3, + 2, + 0, + 0, + 0, + 4, + 6, + 5, + 0, + 0, + 3, + 0, + 3, + 0, + 0, + 9, + 2, + 6, + 3, + 0, + 2, + 1, + 0, + 3, + 4, + 0, + 0, + 4, + 3, + 4, + 7, + 0, + 4, + 6, + 3, + 7, + 0, + 1, + 3, + 7, + 3, + 3, + 2, + 5, + 7, + 0, + 2, + 8, + 4, + 0, + 6, + 5, + 7, + 7, + 5, + 3, + 3, + 4, + 0, + 0, + 4, + 8, + 4, + 6, + 5, + 3, + 0, + 0, + 5, + 3, + 0, + 2, + 0, + 5, + 5, + 3, + 4, + 0, + 3, + 4, + 1, + 3, + 7, + 0, + 1, + 3, + 4, + 3, + 4, + 5, + 2, + 2, + 4, + 6, + 5, + 3, + 0, + 3, + 4, + 4, + 2, + 2, + 3, + 0, + 4, + 3, + 0, + 0, + 2, + 3, + 5, + 3, + 3, + 4, + 5, + 0, + 4, + 7, + 1, + 4, + 1, + 0, + 2, + 0, + 0, + 0, + 3, + 3, + 2, + 4, + 0, + 5, + 4, + 5, + 0, + 0, + 1, + 1, + 4, + 0, + 0, + 2, + 5, + 3, + 1, + 4, + 1, + 4, + 3, + 0, + 0, + 6, + 3, + 5, + 7, + 3, + 0, + 5, + 2, + 6, + 5, + 0, + 5, + 7, + 0, + 3, + 6, + 0, + 6, + 6, + 5, + 0, + 3, + 0, + 6, + 0, + 0, + 4, + 2, + 4, + 4, + 5, + 2, + 4, + 0, + 1, + 4, + 3, + 4, + 0, + 6, + 2, + 6, + 0, + 4, + 5, + 5, + 5, + 7, + 4 + ], + "id_count_min": 0, + "id_count_max": 9 + }, + { + "hop": 2, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 4, + 0, + 1, + 2, + 0, + 1, + 0, + 6, + 4, + 0, + 8, + 10, + 4, + 3, + 0, + 8, + 0, + 8, + 3, + 0, + 1, + 3, + 0, + 0, + 7, + 11, + 2, + 1, + 1, + 1, + 10, + 0, + 8, + 6, + 5, + 0, + 7, + 7, + 0, + 3, + 3, + 2, + 3, + 2, + 0, + 2, + 1, + 2, + 0, + 0, + 12, + 11, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 4, + 0, + 0, + 4, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 2, + 0, + 6, + 4, + 0, + 11, + 6, + 0, + 0, + 4, + 5, + 7, + 13, + 0, + 1, + 4, + 3, + 3, + 0, + 7, + 6, + 8, + 2, + 3, + 2, + 4, + 2, + 0, + 4, + 1, + 5, + 0, + 6, + 9, + 2, + 1, + 1, + 2, + 7, + 3, + 1, + 0, + 2, + 2, + 1, + 1, + 5, + 1, + 0, + 0, + 5, + 5, + 0, + 3, + 0, + 1, + 4, + 1, + 3, + 0, + 5, + 4, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 0, + 0, + 3, + 7, + 5, + 6, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 2, + 2, + 2, + 1, + 0, + 3, + 0, + 8, + 9, + 6, + 8, + 3, + 0, + 2, + 0, + 0, + 0, + 4, + 3, + 1, + 3, + 0, + 3, + 5, + 6, + 0, + 0, + 3, + 2, + 4, + 0, + 0, + 6, + 6, + 3, + 10, + 14, + 7, + 15, + 3, + 2, + 0, + 1, + 3, + 4, + 4, + 4, + 0, + 11, + 7, + 8, + 5, + 0, + 5, + 5, + 0, + 1, + 4, + 0, + 2, + 2, + 4, + 0, + 10, + 0, + 9, + 0, + 0, + 9, + 8, + 5, + 3, + 0, + 3, + 4, + 0, + 5, + 1, + 3, + 3, + 0, + 7, + 2, + 5, + 0, + 1, + 5, + 9, + 6, + 6, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 175, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 6, + 5, + 2, + 1, + 0, + 2, + 2, + 0, + 7, + 7, + 5, + 7, + 0, + 7, + 0, + 9, + 3, + 0, + 2, + 2, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 1, + 5, + 0, + 5, + 5, + 9, + 0, + 8, + 7, + 3, + 3, + 3, + 2, + 2, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 9, + 5, + 8, + 0, + 4, + 2, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 4, + 3, + 2, + 0, + 6, + 3, + 0, + 5, + 3, + 0, + 0, + 4, + 5, + 10, + 6, + 0, + 3, + 4, + 5, + 7, + 0, + 5, + 9, + 5, + 1, + 2, + 2, + 0, + 1, + 0, + 1, + 4, + 10, + 0, + 8, + 7, + 1, + 2, + 2, + 2, + 2, + 4, + 4, + 0, + 4, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 3, + 1, + 0, + 2, + 0, + 7, + 7, + 8, + 9, + 0, + 6, + 4, + 1, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 3, + 4, + 3, + 6, + 1, + 4, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 16, + 9, + 0, + 0, + 3, + 3, + 4, + 2, + 4, + 3, + 3, + 0, + 10, + 8, + 7, + 8, + 4, + 0, + 4, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 0, + 4, + 5, + 5, + 0, + 0, + 3, + 5, + 3, + 0, + 0, + 5, + 5, + 3, + 14, + 5, + 8, + 6, + 6, + 5, + 0, + 4, + 5, + 2, + 1, + 5, + 0, + 6, + 12, + 7, + 0, + 0, + 1, + 1, + 0, + 2, + 6, + 0, + 2, + 3, + 2, + 0, + 9, + 0, + 5, + 0, + 0, + 5, + 7, + 2, + 6, + 6, + 8, + 8, + 0, + 0, + 1, + 2, + 6, + 0, + 3, + 8, + 1, + 0, + 4, + 4, + 11, + 7, + 8, + 7 + ], + "id_count_min": 0, + "id_count_max": 16 + } + ] + }, + "test_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + }, + "test_full_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 192, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 6, + 0, + 12, + 0, + 14, + 9, + 4, + 8, + 0, + 13, + 9, + 0, + 22, + 22, + 14, + 12, + 0, + 20, + 0, + 23, + 12, + 0, + 10, + 7, + 0, + 0, + 16, + 22, + 5, + 6, + 6, + 6, + 19, + 0, + 19, + 16, + 17, + 0, + 18, + 21, + 3, + 10, + 13, + 8, + 8, + 7, + 0, + 8, + 6, + 8, + 0, + 0, + 26, + 21, + 18, + 0, + 8, + 4, + 0, + 0, + 0, + 8, + 10, + 11, + 0, + 0, + 9, + 0, + 5, + 0, + 0, + 12, + 6, + 11, + 7, + 0, + 14, + 8, + 0, + 19, + 13, + 0, + 0, + 12, + 13, + 21, + 26, + 0, + 8, + 14, + 11, + 17, + 0, + 13, + 18, + 20, + 6, + 8, + 6, + 9, + 10, + 0, + 7, + 13, + 19, + 0, + 20, + 21, + 10, + 10, + 8, + 7, + 12, + 11, + 5, + 0, + 10, + 11, + 7, + 8, + 12, + 4, + 0, + 0, + 13, + 9, + 0, + 7, + 0, + 13, + 16, + 12, + 16, + 0, + 14, + 12, + 3, + 8, + 9, + 0, + 1, + 3, + 4, + 3, + 14, + 13, + 5, + 6, + 10, + 19, + 11, + 13, + 0, + 4, + 6, + 5, + 2, + 2, + 3, + 0, + 27, + 19, + 0, + 0, + 7, + 8, + 11, + 7, + 8, + 7, + 11, + 0, + 22, + 24, + 14, + 20, + 8, + 0, + 8, + 0, + 0, + 0, + 9, + 7, + 5, + 9, + 0, + 12, + 14, + 16, + 0, + 0, + 7, + 8, + 11, + 0, + 0, + 13, + 16, + 9, + 25, + 23, + 16, + 25, + 12, + 7, + 0, + 11, + 11, + 11, + 12, + 12, + 0, + 22, + 21, + 21, + 10, + 0, + 11, + 13, + 0, + 6, + 16, + 0, + 10, + 11, + 11, + 0, + 22, + 0, + 20, + 0, + 0, + 18, + 17, + 11, + 13, + 11, + 13, + 16, + 0, + 6, + 6, + 8, + 13, + 0, + 16, + 12, + 12, + 0, + 9, + 14, + 25, + 18, + 21, + 17 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.75, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.0234375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.026041666666666668, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 189, + 177, + 175 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 43, + "fraction": 0.055989583333333336, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.055989583333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10807291666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10807291666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.1640625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.1640625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.23177083333333334, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23177083333333334, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + } + ] + }, + "test_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 54, + 69, + 68, + 66, + 8 + ], + [ + 65, + 68, + 67, + 66, + 25 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 11, + 67, + 66, + 66, + 45 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 69, + 66, + 42 + ], + [ + 4, + 69, + 67, + 66, + 59 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 67, + 66, + 66, + 45 + ], + [ + 12, + 69, + 66, + 66, + 16 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "ood_composite": { + "n": 59, + "unique_relevant_atomic_facts": 51, + "relevant_atomic_fact_coverage_of_graph": 0.19921875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 59, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 41, + 30, + 31 + ], + "within_split_majority_tail": { + "target_token": 60, + "count": 6, + "fraction": 0.1016949152542373, + "distinct_targets": 25 + }, + "train_composite_majority_tail_fraction": 0.03389830508474576, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.23728813559322035, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23728813559322035, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 8, + 67, + 69, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.5423728813559322, + "single_target_group_query_fraction": 0.1016949152542373, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.5423728813559322, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 39, + "empirical_modal_target_fraction": 0.7288135593220338, + "single_target_group_query_fraction": 0.4745762711864407, + "singleton_group_query_fraction": 0.4067796610169492, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 0.5932203389830508, + "multi_query_empirical_modal_target_fraction": 0.5428571428571428, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 13, + 66, + 66, + 66, + 13 + ], + [ + 18, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "unused_composite": { + "n": 609, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 609, + "any_relevant_fact_in_composite_training_n": 609, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 609, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 186, + 172, + 174 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 26, + "fraction": 0.042692939244663386, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03940886699507389, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07717569786535304, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07717569786535304, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 69, + 67, + 66, + 52 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14614121510673234, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14614121510673234, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 67, + 66, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.22660098522167488, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.22660098522167488, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 66, + 10 + ], + [ + 6, + 66, + 66, + 66, + 60 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "4": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 11180, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 512, + "test_full_composite": 1025, + "ood_composite": 53, + "unused_composite": 3358 + }, + "dataset_sha256": "11ec0124d665d8362ddc331d5c39bc251f7cada4bc5263b5524390fbb9319e85", + "warnings": [], + "hops": 4, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 5151, + "all_paths_total": 16384, + "training_fraction_of_id_paths": 0.14909726266744322, + "training_fraction_of_nonreserved_id_paths": 0.1861366941347552, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 560, + 766, + 474, + 184, + 609, + 39, + 576, + 63, + 547, + 821, + 853, + 222, + 688, + 718, + 268, + 448, + 856, + 266, + 593, + 433, + 505, + 736, + 138, + 300, + 982, + 250, + 165, + 817, + 112, + 984, + 545, + 654, + 773, + 700, + 312, + 651, + 154, + 297, + 224, + 639, + 16, + 411, + 440, + 225, + 825, + 972, + 709, + 355, + 903, + 846, + 10, + 353, + 449, + 498, + 782, + 803, + 106, + 85, + 810, + 528, + 58, + 194, + 514, + 488, + 289, + 789, + 424, + 889, + 1014, + 877, + 417, + 4, + 691, + 597, + 81, + 412, + 401, + 635, + 331, + 199, + 115, + 341, + 743, + 447, + 288, + 965, + 950, + 21, + 507, + 399, + 519, + 414, + 953, + 403, + 834, + 619, + 486, + 379, + 347, + 969, + 974, + 952, + 568, + 30, + 337, + 882, + 722, + 955, + 506, + 831, + 359, + 418, + 454, + 105, + 516, + 157, + 109, + 940, + 228, + 95, + 145, + 642, + 543, + 787, + 124, + 243, + 996, + 1007, + 464, + 571, + 721, + 921, + 745, + 340, + 710, + 634, + 253, + 947, + 838, + 986, + 520, + 442, + 841, + 429, + 948, + 126, + 605, + 744, + 922, + 181, + 1004, + 958, + 544, + 192, + 1016, + 75, + 430, + 247, + 238, + 649, + 800, + 600, + 103, + 76, + 352, + 827, + 296, + 606, + 369, + 441, + 842, + 848, + 357, + 406, + 670, + 416, + 293, + 677, + 973, + 910, + 264, + 434, + 196, + 113, + 149, + 515, + 939, + 808, + 131, + 871, + 720, + 478, + 586, + 936, + 906, + 432, + 724, + 822, + 160, + 933, + 62, + 561, + 633, + 824, + 407, + 226, + 33, + 248, + 680, + 804, + 740, + 208, + 167, + 214, + 476, + 233, + 302, + 292, + 220, + 6, + 750, + 189, + 503, + 90, + 91, + 914, + 937, + 93, + 187, + 366, + 951, + 373, + 18, + 695, + 203, + 310, + 625, + 398, + 339, + 241, + 556, + 570, + 812, + 944, + 14, + 562, + 327, + 667, + 303, + 100, + 173, + 623, + 860, + 781, + 283, + 924, + 1000, + 180, + 899, + 767, + 523, + 125, + 316, + 564, + 1, + 536, + 726, + 786, + 930, + 168, + 546, + 360, + 957, + 741, + 935, + 971, + 332, + 481, + 703, + 136, + 445, + 162, + 590, + 111, + 38, + 326, + 190, + 342, + 72, + 541, + 487, + 524, + 278, + 764, + 174, + 646, + 757, + 946, + 270, + 102, + 761, + 141, + 799, + 28, + 919, + 601, + 86, + 183, + 47, + 675, + 885, + 956, + 836, + 218, + 335, + 307, + 317, + 37, + 596, + 120, + 648, + 1003, + 702, + 291, + 96, + 839, + 943, + 807, + 9, + 32, + 828, + 732, + 542, + 36, + 908, + 855, + 279, + 538, + 768, + 754, + 587, + 987, + 142, + 598, + 287, + 678, + 880, + 589, + 71, + 370, + 469, + 473, + 553, + 143, + 427, + 404, + 391, + 286, + 869, + 928, + 621, + 462, + 338, + 133, + 52, + 525, + 857, + 334, + 477, + 41, + 423, + 615, + 459, + 784, + 508, + 826, + 815, + 567, + 79, + 656, + 261, + 329, + 219, + 620, + 415, + 636, + 832, + 756, + 27, + 425, + 663, + 309, + 734, + 867, + 497, + 169, + 659, + 932, + 452, + 193, + 475, + 118, + 495, + 176, + 161, + 275, + 44, + 992, + 466, + 1001, + 989, + 428, + 212, + 668, + 8, + 792, + 381, + 696, + 467, + 911, + 172, + 22, + 153, + 660, + 13, + 613, + 849, + 319, + 74, + 299, + 758, + 276, + 833, + 387, + 19, + 993, + 376, + 368, + 594, + 708, + 684, + 727, + 130, + 693, + 237, + 402, + 595, + 728, + 107, + 114, + 540, + 256, + 345, + 83, + 156, + 669, + 210, + 731, + 150, + 627, + 419, + 1024, + 51, + 491, + 672, + 874, + 762, + 797, + 844, + 585, + 938, + 980, + 901, + 273, + 470, + 554, + 121, + 671, + 60, + 915, + 351, + 909, + 61, + 321, + 479, + 284, + 492, + 674, + 765, + 178, + 875, + 348, + 661, + 234, + 249, + 723, + 1020, + 259, + 629, + 236, + 117, + 305, + 673, + 582, + 422, + 611, + 861, + 483, + 413, + 377, + 97, + 999 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 194, + "any_repeated_entity_fraction": 0.2526041666666667, + "answer_equals_preceding_entity_n": 84, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 184, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 3, + 0, + 6, + 3, + 0, + 3, + 0, + 3, + 4, + 0, + 7, + 10, + 0, + 3, + 0, + 6, + 0, + 5, + 3, + 0, + 6, + 4, + 0, + 0, + 4, + 7, + 2, + 4, + 3, + 2, + 5, + 0, + 4, + 6, + 1, + 0, + 7, + 6, + 3, + 3, + 6, + 6, + 6, + 4, + 0, + 1, + 3, + 3, + 0, + 0, + 5, + 6, + 4, + 0, + 1, + 1, + 0, + 0, + 0, + 4, + 6, + 7, + 0, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 1, + 3, + 4, + 0, + 3, + 1, + 0, + 4, + 3, + 0, + 0, + 0, + 6, + 6, + 10, + 0, + 5, + 6, + 5, + 5, + 0, + 4, + 5, + 5, + 5, + 1, + 5, + 4, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 3, + 3, + 4, + 4, + 4, + 3, + 6, + 1, + 0, + 4, + 7, + 5, + 6, + 2, + 4, + 0, + 0, + 5, + 1, + 0, + 3, + 0, + 4, + 6, + 3, + 1, + 0, + 4, + 5, + 1, + 2, + 7, + 0, + 0, + 3, + 6, + 1, + 3, + 4, + 0, + 0, + 4, + 2, + 4, + 3, + 0, + 2, + 6, + 5, + 4, + 4, + 7, + 0, + 1, + 1, + 0, + 0, + 2, + 2, + 4, + 2, + 4, + 4, + 4, + 0, + 3, + 8, + 1, + 3, + 7, + 0, + 3, + 0, + 0, + 0, + 5, + 5, + 3, + 5, + 0, + 6, + 9, + 11, + 0, + 0, + 2, + 1, + 7, + 0, + 0, + 2, + 2, + 6, + 6, + 3, + 5, + 7, + 3, + 3, + 0, + 5, + 5, + 5, + 7, + 3, + 0, + 2, + 3, + 5, + 8, + 0, + 8, + 7, + 0, + 3, + 7, + 0, + 4, + 3, + 6, + 0, + 4, + 0, + 3, + 0, + 0, + 3, + 7, + 3, + 8, + 3, + 4, + 1, + 0, + 3, + 2, + 2, + 3, + 0, + 4, + 2, + 4, + 0, + 4, + 8, + 8, + 8, + 3, + 5 + ], + "id_count_min": 0, + "id_count_max": 11 + }, + { + "hop": 2, + "id_edges_covered": 173, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 4, + 0, + 9, + 7, + 6, + 2, + 0, + 5, + 0, + 7, + 3, + 0, + 4, + 3, + 0, + 0, + 6, + 7, + 1, + 1, + 0, + 2, + 9, + 0, + 4, + 6, + 4, + 0, + 5, + 7, + 1, + 3, + 3, + 3, + 2, + 3, + 0, + 1, + 2, + 2, + 0, + 0, + 14, + 9, + 6, + 0, + 1, + 0, + 0, + 0, + 0, + 5, + 4, + 2, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 2, + 0, + 5, + 3, + 0, + 13, + 5, + 0, + 0, + 4, + 10, + 9, + 15, + 0, + 3, + 4, + 2, + 2, + 0, + 8, + 5, + 3, + 1, + 2, + 4, + 5, + 3, + 0, + 1, + 5, + 8, + 0, + 8, + 4, + 0, + 1, + 0, + 1, + 6, + 3, + 2, + 0, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 0, + 7, + 5, + 0, + 3, + 0, + 3, + 5, + 3, + 4, + 0, + 2, + 4, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 1, + 0, + 3, + 8, + 3, + 5, + 0, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 8, + 6, + 0, + 0, + 3, + 1, + 4, + 0, + 1, + 1, + 4, + 0, + 9, + 14, + 0, + 10, + 3, + 0, + 3, + 0, + 0, + 0, + 9, + 2, + 1, + 6, + 0, + 2, + 2, + 5, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 4, + 5, + 6, + 12, + 8, + 9, + 9, + 2, + 6, + 0, + 7, + 1, + 5, + 5, + 3, + 0, + 4, + 11, + 12, + 1, + 0, + 2, + 5, + 0, + 1, + 0, + 0, + 5, + 2, + 8, + 0, + 11, + 0, + 5, + 0, + 0, + 8, + 8, + 7, + 6, + 5, + 1, + 2, + 0, + 4, + 3, + 4, + 7, + 0, + 7, + 7, + 0, + 0, + 3, + 3, + 7, + 10, + 9, + 12 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 172, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 4, + 0, + 5, + 2, + 0, + 1, + 0, + 3, + 2, + 0, + 6, + 4, + 3, + 2, + 0, + 9, + 0, + 12, + 6, + 0, + 6, + 3, + 0, + 0, + 7, + 15, + 1, + 0, + 2, + 1, + 7, + 0, + 5, + 5, + 13, + 0, + 8, + 13, + 2, + 3, + 2, + 1, + 1, + 2, + 0, + 1, + 2, + 1, + 0, + 0, + 5, + 7, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 3, + 0, + 8, + 2, + 0, + 10, + 3, + 0, + 0, + 2, + 10, + 11, + 3, + 0, + 5, + 8, + 4, + 4, + 0, + 5, + 4, + 5, + 3, + 0, + 1, + 2, + 0, + 0, + 1, + 4, + 4, + 0, + 9, + 8, + 2, + 1, + 3, + 2, + 2, + 1, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 7, + 5, + 5, + 0, + 5, + 11, + 1, + 4, + 2, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 3, + 2, + 4, + 4, + 4, + 3, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 11, + 12, + 0, + 0, + 4, + 5, + 6, + 0, + 4, + 5, + 5, + 0, + 7, + 12, + 6, + 10, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 5, + 5, + 4, + 0, + 2, + 1, + 5, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 5, + 5, + 5, + 12, + 8, + 7, + 4, + 4, + 7, + 0, + 6, + 4, + 6, + 6, + 3, + 0, + 10, + 6, + 13, + 4, + 0, + 3, + 2, + 0, + 4, + 3, + 0, + 1, + 2, + 2, + 0, + 12, + 0, + 3, + 0, + 0, + 5, + 3, + 2, + 10, + 4, + 6, + 5, + 0, + 1, + 0, + 1, + 6, + 0, + 9, + 4, + 5, + 0, + 2, + 3, + 8, + 7, + 5, + 9 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 4, + "id_edges_covered": 169, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 0, + 2, + 0, + 5, + 9, + 2, + 5, + 0, + 6, + 0, + 4, + 3, + 0, + 0, + 2, + 0, + 0, + 10, + 5, + 0, + 3, + 2, + 0, + 5, + 0, + 6, + 9, + 15, + 0, + 12, + 9, + 1, + 1, + 0, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 6, + 6, + 5, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 1, + 0, + 5, + 6, + 0, + 8, + 8, + 0, + 5, + 6, + 0, + 0, + 6, + 14, + 8, + 5, + 0, + 6, + 2, + 5, + 7, + 0, + 7, + 3, + 8, + 1, + 4, + 1, + 1, + 3, + 0, + 5, + 2, + 6, + 0, + 9, + 8, + 1, + 1, + 1, + 1, + 1, + 4, + 4, + 0, + 1, + 0, + 3, + 1, + 2, + 2, + 0, + 0, + 1, + 4, + 0, + 2, + 0, + 5, + 2, + 4, + 5, + 0, + 6, + 8, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 1, + 2, + 5, + 2, + 6, + 6, + 0, + 0, + 2, + 2, + 0, + 0, + 0, + 0, + 14, + 11, + 0, + 0, + 5, + 5, + 5, + 3, + 2, + 4, + 2, + 0, + 7, + 9, + 7, + 6, + 3, + 0, + 5, + 0, + 0, + 0, + 2, + 5, + 5, + 1, + 0, + 4, + 2, + 1, + 0, + 0, + 6, + 5, + 8, + 0, + 0, + 10, + 2, + 4, + 9, + 10, + 14, + 11, + 7, + 2, + 0, + 5, + 2, + 2, + 2, + 8, + 0, + 8, + 9, + 8, + 2, + 0, + 4, + 4, + 0, + 2, + 2, + 0, + 1, + 1, + 0, + 0, + 9, + 0, + 3, + 0, + 0, + 6, + 7, + 2, + 11, + 5, + 6, + 6, + 0, + 2, + 3, + 0, + 1, + 0, + 6, + 6, + 6, + 0, + 4, + 2, + 5, + 4, + 5, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + } + ] + }, + "test_composite": { + "n": 512, + "any_repeated_entity_n": 116, + "any_repeated_entity_fraction": 0.2265625, + "answer_equals_preceding_entity_n": 54, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 174, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 1, + 2, + 1, + 6, + 0, + 3, + 4, + 0, + 3, + 2, + 5, + 0, + 0, + 4, + 0, + 1, + 2, + 0, + 4, + 2, + 0, + 0, + 3, + 3, + 3, + 0, + 3, + 5, + 4, + 0, + 5, + 2, + 2, + 0, + 2, + 3, + 2, + 3, + 4, + 6, + 3, + 2, + 0, + 5, + 1, + 1, + 0, + 0, + 2, + 5, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 4, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 4, + 1, + 3, + 1, + 0, + 2, + 2, + 0, + 3, + 2, + 0, + 0, + 2, + 6, + 4, + 3, + 0, + 2, + 5, + 2, + 3, + 0, + 4, + 7, + 4, + 1, + 3, + 2, + 3, + 3, + 0, + 1, + 2, + 2, + 0, + 5, + 5, + 5, + 5, + 6, + 0, + 5, + 3, + 1, + 0, + 3, + 5, + 6, + 2, + 3, + 1, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 5, + 4, + 3, + 0, + 5, + 5, + 3, + 5, + 1, + 0, + 0, + 1, + 5, + 1, + 2, + 3, + 2, + 0, + 1, + 5, + 3, + 3, + 0, + 3, + 2, + 1, + 4, + 2, + 4, + 0, + 10, + 3, + 0, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 0, + 0, + 3, + 3, + 4, + 2, + 0, + 1, + 0, + 0, + 0, + 4, + 1, + 0, + 1, + 0, + 4, + 7, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 3, + 3, + 2, + 2, + 3, + 1, + 2, + 0, + 3, + 0, + 7, + 4, + 2, + 3, + 1, + 0, + 4, + 2, + 2, + 3, + 0, + 4, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 3, + 4, + 5, + 4, + 0, + 5, + 0, + 2, + 1, + 1, + 3, + 0, + 4, + 3, + 7, + 0, + 0, + 2, + 1, + 2, + 0, + 2 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 2, + "id_edges_covered": 155, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 2, + 2, + 0, + 4, + 7, + 2, + 2, + 0, + 7, + 0, + 7, + 2, + 0, + 2, + 1, + 0, + 0, + 6, + 3, + 0, + 2, + 0, + 1, + 5, + 0, + 5, + 2, + 3, + 0, + 7, + 13, + 2, + 2, + 2, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 9, + 9, + 3, + 0, + 1, + 2, + 0, + 0, + 0, + 3, + 2, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 3, + 0, + 0, + 5, + 1, + 0, + 6, + 1, + 0, + 0, + 0, + 5, + 7, + 6, + 0, + 0, + 2, + 4, + 1, + 0, + 2, + 3, + 7, + 2, + 4, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 0, + 2, + 7, + 2, + 1, + 2, + 0, + 3, + 0, + 7, + 0, + 2, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 4, + 2, + 0, + 7, + 0, + 2, + 3, + 0, + 5, + 0, + 3, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 1, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 12, + 2, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 1, + 3, + 0, + 1, + 3, + 2, + 7, + 3, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 2, + 1, + 4, + 0, + 0, + 3, + 7, + 2, + 10, + 12, + 3, + 7, + 2, + 0, + 0, + 4, + 4, + 2, + 3, + 1, + 0, + 5, + 2, + 6, + 2, + 0, + 3, + 1, + 0, + 2, + 2, + 0, + 4, + 6, + 3, + 0, + 6, + 0, + 5, + 0, + 0, + 4, + 6, + 4, + 3, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 2, + 0, + 4, + 4, + 4, + 0, + 2, + 5, + 6, + 9, + 3, + 2 + ], + "id_count_min": 0, + "id_count_max": 13 + }, + { + "hop": 3, + "id_edges_covered": 156, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 2, + 3, + 5, + 0, + 2, + 0, + 0, + 4, + 3, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 0, + 0, + 0, + 7, + 9, + 0, + 2, + 0, + 1, + 4, + 0, + 6, + 3, + 8, + 0, + 6, + 9, + 0, + 1, + 2, + 3, + 3, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 7, + 4, + 3, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 5, + 1, + 0, + 4, + 4, + 0, + 0, + 5, + 4, + 3, + 4, + 0, + 5, + 4, + 2, + 4, + 0, + 4, + 2, + 6, + 1, + 1, + 3, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 7, + 4, + 1, + 0, + 0, + 1, + 3, + 2, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 2, + 0, + 0, + 5, + 1, + 0, + 2, + 0, + 3, + 7, + 3, + 6, + 0, + 4, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 6, + 1, + 2, + 4, + 4, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 5, + 3, + 0, + 0, + 2, + 2, + 3, + 2, + 3, + 1, + 5, + 0, + 4, + 9, + 2, + 6, + 6, + 0, + 4, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 5, + 2, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 2, + 2, + 8, + 3, + 5, + 4, + 3, + 5, + 0, + 2, + 3, + 4, + 3, + 3, + 0, + 9, + 6, + 10, + 1, + 0, + 1, + 2, + 0, + 0, + 1, + 0, + 1, + 1, + 2, + 0, + 6, + 0, + 0, + 0, + 0, + 8, + 6, + 6, + 3, + 2, + 2, + 5, + 0, + 0, + 2, + 0, + 3, + 0, + 5, + 2, + 2, + 0, + 1, + 2, + 5, + 6, + 6, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 4, + "id_edges_covered": 164, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 2, + 0, + 3, + 2, + 6, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 4, + 5, + 2, + 1, + 1, + 1, + 2, + 0, + 5, + 3, + 4, + 0, + 4, + 10, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 2, + 1, + 1, + 0, + 0, + 2, + 4, + 4, + 0, + 0, + 2, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 0, + 0, + 0, + 0, + 0, + 4, + 0, + 2, + 0, + 6, + 1, + 0, + 6, + 2, + 0, + 0, + 7, + 4, + 8, + 9, + 0, + 4, + 6, + 1, + 3, + 0, + 4, + 3, + 4, + 3, + 1, + 0, + 1, + 5, + 0, + 3, + 1, + 5, + 0, + 4, + 7, + 1, + 1, + 0, + 2, + 1, + 3, + 1, + 0, + 1, + 2, + 2, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 2, + 5, + 4, + 7, + 0, + 3, + 3, + 2, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 4, + 2, + 2, + 1, + 3, + 5, + 2, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 8, + 0, + 0, + 0, + 2, + 4, + 3, + 2, + 2, + 4, + 0, + 5, + 1, + 9, + 9, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 2, + 0, + 0, + 2, + 3, + 6, + 9, + 4, + 7, + 2, + 6, + 4, + 0, + 5, + 1, + 2, + 1, + 0, + 0, + 7, + 5, + 5, + 0, + 0, + 0, + 0, + 0, + 5, + 1, + 0, + 4, + 3, + 1, + 0, + 2, + 0, + 3, + 0, + 0, + 3, + 2, + 1, + 5, + 4, + 6, + 4, + 0, + 0, + 0, + 2, + 5, + 0, + 3, + 4, + 3, + 0, + 2, + 3, + 6, + 3, + 5, + 1 + ], + "id_count_min": 0, + "id_count_max": 10 + } + ] + }, + "test_full_composite": { + "n": 1025, + "any_repeated_entity_n": 243, + "any_repeated_entity_fraction": 0.2370731707317073, + "answer_equals_preceding_entity_n": 116, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 187, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 5, + 0, + 5, + 0, + 2, + 4, + 2, + 12, + 0, + 6, + 5, + 0, + 8, + 8, + 8, + 3, + 0, + 8, + 0, + 2, + 4, + 0, + 9, + 3, + 0, + 0, + 5, + 5, + 4, + 0, + 5, + 7, + 6, + 0, + 11, + 5, + 3, + 0, + 5, + 6, + 4, + 3, + 7, + 11, + 4, + 5, + 0, + 7, + 3, + 4, + 0, + 0, + 7, + 10, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 6, + 6, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 7, + 1, + 9, + 3, + 0, + 4, + 4, + 0, + 5, + 5, + 0, + 0, + 3, + 8, + 6, + 6, + 0, + 3, + 10, + 7, + 5, + 0, + 6, + 10, + 7, + 2, + 8, + 4, + 6, + 6, + 0, + 5, + 9, + 6, + 0, + 6, + 8, + 7, + 6, + 10, + 0, + 10, + 6, + 5, + 0, + 7, + 8, + 6, + 5, + 5, + 2, + 0, + 0, + 5, + 5, + 0, + 4, + 0, + 5, + 11, + 7, + 12, + 0, + 5, + 14, + 4, + 8, + 6, + 0, + 2, + 5, + 6, + 3, + 2, + 4, + 4, + 0, + 2, + 13, + 3, + 7, + 0, + 6, + 3, + 4, + 9, + 5, + 7, + 0, + 13, + 5, + 0, + 0, + 6, + 0, + 7, + 3, + 3, + 7, + 5, + 0, + 3, + 7, + 4, + 6, + 4, + 0, + 4, + 0, + 0, + 0, + 5, + 4, + 1, + 3, + 0, + 6, + 12, + 5, + 0, + 0, + 4, + 1, + 3, + 0, + 0, + 5, + 9, + 3, + 5, + 6, + 2, + 6, + 1, + 4, + 0, + 9, + 6, + 4, + 5, + 2, + 0, + 7, + 6, + 7, + 6, + 0, + 9, + 4, + 0, + 3, + 6, + 0, + 6, + 6, + 2, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 8, + 6, + 7, + 5, + 1, + 6, + 0, + 2, + 2, + 9, + 4, + 0, + 11, + 4, + 14, + 0, + 0, + 3, + 7, + 5, + 2, + 6 + ], + "id_count_min": 0, + "id_count_max": 14 + }, + { + "hop": 2, + "id_edges_covered": 179, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 3, + 0, + 1, + 2, + 1, + 2, + 0, + 5, + 3, + 0, + 10, + 10, + 5, + 4, + 0, + 13, + 0, + 12, + 2, + 0, + 4, + 2, + 0, + 0, + 11, + 9, + 1, + 2, + 0, + 2, + 10, + 0, + 7, + 5, + 9, + 0, + 9, + 21, + 4, + 3, + 3, + 6, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 12, + 19, + 8, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 4, + 3, + 0, + 0, + 5, + 0, + 0, + 0, + 0, + 3, + 0, + 4, + 2, + 0, + 10, + 2, + 0, + 11, + 3, + 0, + 0, + 4, + 10, + 11, + 10, + 0, + 2, + 6, + 7, + 2, + 0, + 7, + 7, + 12, + 2, + 5, + 2, + 2, + 3, + 0, + 3, + 2, + 2, + 0, + 5, + 13, + 5, + 2, + 4, + 2, + 4, + 3, + 10, + 0, + 5, + 0, + 3, + 3, + 3, + 2, + 0, + 0, + 17, + 4, + 0, + 11, + 0, + 4, + 4, + 3, + 6, + 0, + 8, + 7, + 4, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 4, + 2, + 4, + 5, + 1, + 8, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 20, + 5, + 0, + 0, + 2, + 2, + 5, + 1, + 2, + 2, + 6, + 0, + 8, + 7, + 3, + 12, + 7, + 0, + 7, + 0, + 0, + 0, + 3, + 4, + 3, + 4, + 0, + 7, + 4, + 1, + 0, + 0, + 2, + 4, + 6, + 0, + 0, + 3, + 9, + 3, + 15, + 28, + 5, + 20, + 4, + 1, + 0, + 8, + 6, + 3, + 6, + 3, + 0, + 14, + 7, + 10, + 6, + 0, + 9, + 3, + 0, + 3, + 4, + 0, + 9, + 9, + 5, + 0, + 15, + 0, + 11, + 0, + 0, + 8, + 10, + 9, + 7, + 2, + 3, + 5, + 0, + 5, + 4, + 1, + 7, + 0, + 9, + 4, + 6, + 0, + 2, + 6, + 14, + 12, + 13, + 5 + ], + "id_count_min": 0, + "id_count_max": 28 + }, + { + "hop": 3, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 3, + 0, + 8, + 5, + 4, + 11, + 0, + 5, + 2, + 0, + 9, + 12, + 6, + 3, + 0, + 5, + 0, + 8, + 5, + 0, + 1, + 1, + 0, + 0, + 14, + 13, + 0, + 2, + 2, + 2, + 6, + 0, + 10, + 9, + 14, + 0, + 14, + 17, + 1, + 1, + 2, + 3, + 4, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 13, + 9, + 8, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 5, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 2, + 0, + 8, + 4, + 0, + 10, + 7, + 0, + 0, + 7, + 8, + 6, + 11, + 0, + 8, + 9, + 5, + 7, + 0, + 10, + 5, + 12, + 3, + 2, + 4, + 0, + 6, + 0, + 1, + 3, + 4, + 0, + 10, + 10, + 1, + 0, + 3, + 1, + 3, + 6, + 2, + 0, + 0, + 3, + 2, + 2, + 1, + 3, + 0, + 0, + 8, + 2, + 0, + 3, + 0, + 12, + 13, + 6, + 10, + 0, + 7, + 4, + 2, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 2, + 6, + 1, + 4, + 5, + 5, + 5, + 10, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 14, + 4, + 0, + 0, + 3, + 5, + 7, + 5, + 8, + 2, + 8, + 0, + 11, + 15, + 4, + 11, + 8, + 0, + 9, + 0, + 0, + 0, + 5, + 3, + 1, + 2, + 0, + 1, + 7, + 6, + 0, + 0, + 5, + 2, + 7, + 0, + 0, + 5, + 7, + 5, + 14, + 9, + 11, + 10, + 5, + 10, + 0, + 8, + 6, + 7, + 5, + 4, + 0, + 19, + 14, + 16, + 1, + 0, + 1, + 4, + 0, + 2, + 4, + 0, + 3, + 4, + 3, + 0, + 10, + 0, + 3, + 0, + 0, + 10, + 8, + 10, + 4, + 6, + 6, + 12, + 0, + 0, + 2, + 0, + 6, + 0, + 10, + 2, + 6, + 0, + 1, + 6, + 10, + 11, + 9, + 7 + ], + "id_count_min": 0, + "id_count_max": 19 + }, + { + "hop": 4, + "id_edges_covered": 181, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 1, + 0, + 4, + 0, + 1, + 4, + 0, + 1, + 2, + 0, + 8, + 6, + 10, + 8, + 0, + 10, + 0, + 8, + 1, + 0, + 2, + 4, + 0, + 0, + 7, + 8, + 3, + 1, + 1, + 3, + 5, + 0, + 11, + 7, + 10, + 0, + 11, + 17, + 1, + 1, + 1, + 1, + 1, + 4, + 0, + 5, + 1, + 2, + 0, + 0, + 7, + 11, + 6, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 1, + 2, + 0, + 0, + 6, + 0, + 0, + 0, + 0, + 1, + 6, + 2, + 3, + 0, + 14, + 11, + 0, + 11, + 6, + 0, + 0, + 10, + 7, + 12, + 12, + 0, + 5, + 10, + 6, + 4, + 0, + 9, + 8, + 8, + 5, + 1, + 0, + 1, + 6, + 0, + 5, + 4, + 14, + 0, + 12, + 12, + 1, + 1, + 1, + 2, + 5, + 6, + 2, + 0, + 2, + 4, + 3, + 1, + 3, + 1, + 0, + 0, + 3, + 4, + 0, + 4, + 0, + 5, + 12, + 7, + 14, + 0, + 8, + 5, + 5, + 3, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 4, + 5, + 3, + 4, + 10, + 7, + 3, + 0, + 4, + 1, + 3, + 0, + 0, + 0, + 0, + 9, + 15, + 0, + 0, + 3, + 4, + 5, + 5, + 6, + 4, + 7, + 0, + 8, + 8, + 12, + 14, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 7, + 6, + 0, + 4, + 3, + 2, + 0, + 0, + 9, + 6, + 5, + 0, + 0, + 2, + 4, + 8, + 16, + 10, + 15, + 9, + 10, + 8, + 0, + 9, + 3, + 3, + 2, + 1, + 0, + 14, + 9, + 10, + 2, + 0, + 0, + 2, + 0, + 6, + 5, + 0, + 5, + 3, + 2, + 0, + 5, + 0, + 4, + 0, + 0, + 7, + 5, + 9, + 8, + 7, + 9, + 9, + 0, + 1, + 1, + 2, + 10, + 0, + 4, + 6, + 4, + 0, + 4, + 10, + 9, + 10, + 11, + 10 + ], + "id_count_min": 0, + "id_count_max": 17 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 5, + 0, + 10, + 0, + 14, + 7, + 4, + 6, + 0, + 10, + 12, + 0, + 27, + 30, + 11, + 12, + 0, + 26, + 0, + 28, + 15, + 0, + 16, + 12, + 0, + 0, + 27, + 34, + 4, + 8, + 7, + 5, + 26, + 0, + 19, + 26, + 33, + 0, + 32, + 35, + 7, + 10, + 11, + 10, + 13, + 12, + 0, + 5, + 9, + 6, + 0, + 0, + 30, + 28, + 17, + 0, + 5, + 4, + 0, + 0, + 0, + 13, + 12, + 9, + 0, + 0, + 6, + 0, + 10, + 0, + 0, + 7, + 4, + 11, + 15, + 0, + 24, + 14, + 0, + 32, + 17, + 0, + 0, + 12, + 40, + 34, + 33, + 0, + 19, + 20, + 16, + 18, + 0, + 24, + 17, + 21, + 10, + 7, + 11, + 12, + 10, + 0, + 7, + 13, + 20, + 0, + 30, + 23, + 6, + 7, + 8, + 8, + 12, + 14, + 9, + 0, + 7, + 9, + 10, + 9, + 5, + 11, + 0, + 0, + 15, + 12, + 0, + 10, + 0, + 15, + 20, + 15, + 15, + 0, + 17, + 28, + 2, + 8, + 12, + 0, + 0, + 3, + 6, + 1, + 14, + 14, + 5, + 4, + 16, + 16, + 17, + 17, + 0, + 3, + 10, + 9, + 4, + 4, + 7, + 0, + 34, + 30, + 0, + 0, + 14, + 13, + 19, + 5, + 11, + 14, + 15, + 0, + 26, + 43, + 14, + 29, + 17, + 0, + 12, + 0, + 0, + 0, + 17, + 17, + 14, + 16, + 0, + 14, + 14, + 22, + 0, + 0, + 11, + 8, + 22, + 0, + 0, + 21, + 14, + 21, + 39, + 29, + 35, + 31, + 16, + 18, + 0, + 23, + 12, + 18, + 20, + 17, + 0, + 24, + 29, + 38, + 15, + 0, + 17, + 18, + 0, + 10, + 12, + 0, + 11, + 8, + 16, + 0, + 36, + 0, + 14, + 0, + 0, + 22, + 25, + 14, + 35, + 17, + 17, + 14, + 0, + 10, + 8, + 7, + 17, + 0, + 26, + 19, + 15, + 0, + 13, + 16, + 28, + 29, + 22, + 32 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 184, + 173, + 172, + 169 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 37, + "fraction": 0.048177083333333336, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.048177083333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10286458333333333, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10286458333333333, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 7, + 67, + 67, + 69, + 66, + 59 + ], + [ + 46, + 68, + 66, + 69, + 66, + 44 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.17447916666666666, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.17447916666666666, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 56, + 67, + 69, + 66, + 66, + 43 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.2643229166666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.2643229166666667, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 31, + 68, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 246, + "empirical_modal_target_fraction": 0.421875, + "single_target_group_query_fraction": 0.06380208333333333, + "singleton_group_query_fraction": 0.045572916666666664, + "multi_query_groups": 211, + "multi_query_coverage_fraction": 0.9544270833333334, + "multi_query_empirical_modal_target_fraction": 0.3942701227830832, + "multi_target_groups": 204, + "same_suffix_different_target_example": [ + [ + 28, + 66, + 66, + 66, + 66, + 60 + ], + [ + 39, + 66, + 66, + 66, + 66, + 32 + ] + ] + } + ] + }, + "test_composite": { + "n": 512, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 512, + "any_relevant_fact_in_composite_training_n": 512, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 512, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 174, + 155, + 156, + 164 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 20, + "fraction": 0.0390625, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.0390625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.091796875, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.091796875, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 49, + 66, + 67, + 67, + 66, + 63 + ], + [ + 39, + 68, + 66, + 69, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.15625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.15625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 9, + 67, + 69, + 66, + 66, + 34 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.279296875, + "single_target_group_query_fraction": 0.001953125, + "singleton_group_query_fraction": 0.001953125, + "multi_query_groups": 63, + "multi_query_coverage_fraction": 0.998046875, + "multi_query_empirical_modal_target_fraction": 0.27788649706457924, + "multi_target_groups": 63, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 13, + 67, + 66, + 66, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 217, + "empirical_modal_target_fraction": 0.490234375, + "single_target_group_query_fraction": 0.138671875, + "singleton_group_query_fraction": 0.115234375, + "multi_query_groups": 158, + "multi_query_coverage_fraction": 0.884765625, + "multi_query_empirical_modal_target_fraction": 0.423841059602649, + "multi_target_groups": 152, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 68, + 65 + ], + [ + 12, + 66, + 66, + 66, + 68, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 1025, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 1023, + "any_relevant_fact_in_composite_training_n": 1025, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9995121951219512, + "all_id_queries": 1025, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 187, + 179, + 177, + 181 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 44, + "fraction": 0.042926829268292686, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.042926829268292686, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08195121951219513, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08195121951219513, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 69, + 66, + 25 + ], + [ + 2, + 67, + 68, + 67, + 66, + 57 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14146341463414633, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14146341463414633, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 67, + 66, + 66, + 53 + ], + [ + 4, + 68, + 66, + 66, + 66, + 60 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.24, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.24, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 4, + 68, + 66, + 66, + 66, + 60 + ], + [ + 6, + 66, + 66, + 66, + 66, + 36 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 249, + "empirical_modal_target_fraction": 0.3648780487804878, + "single_target_group_query_fraction": 0.02048780487804878, + "singleton_group_query_fraction": 0.014634146341463415, + "multi_query_groups": 234, + "multi_query_coverage_fraction": 0.9853658536585366, + "multi_query_empirical_modal_target_fraction": 0.35544554455445543, + "multi_target_groups": 231, + "same_suffix_different_target_example": [ + [ + 6, + 66, + 66, + 66, + 66, + 36 + ], + [ + 43, + 66, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "ood_composite": { + "n": 53, + "unique_relevant_atomic_facts": 48, + "relevant_atomic_fact_coverage_of_graph": 0.1875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 53, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 35, + 27, + 24, + 26 + ], + "within_split_majority_tail": { + "target_token": 54, + "count": 7, + "fraction": 0.1320754716981132, + "distinct_targets": 22 + }, + "train_composite_majority_tail_fraction": 0.018867924528301886, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.32075471698113206, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.32075471698113206, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 69, + 68, + 66, + 60 + ], + [ + 7, + 68, + 68, + 69, + 66, + 65 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.6981132075471698, + "single_target_group_query_fraction": 0.18867924528301888, + "singleton_group_query_fraction": 0.05660377358490566, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.9433962264150944, + "multi_query_empirical_modal_target_fraction": 0.68, + "multi_target_groups": 9, + "same_suffix_different_target_example": [ + [ + 8, + 67, + 69, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 32, + "empirical_modal_target_fraction": 0.9056603773584906, + "single_target_group_query_fraction": 0.7169811320754716, + "singleton_group_query_fraction": 0.37735849056603776, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.6226415094339622, + "multi_query_empirical_modal_target_fraction": 0.8484848484848485, + "multi_target_groups": 5, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 47, + "empirical_modal_target_fraction": 0.9622641509433962, + "single_target_group_query_fraction": 0.9056603773584906, + "singleton_group_query_fraction": 0.7924528301886793, + "multi_query_groups": 5, + "multi_query_coverage_fraction": 0.20754716981132076, + "multi_query_empirical_modal_target_fraction": 0.8181818181818182, + "multi_target_groups": 2, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + } + ] + }, + "unused_composite": { + "n": 3358, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 3354, + "any_relevant_fact_in_composite_training_n": 3358, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9997022036926743, + "all_id_queries": 3358, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192, + 185, + 185, + 184 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 143, + "fraction": 0.04258487194758785, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03335318642048839, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.09380583680762358, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.09380583680762358, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 67, + 66, + 57 + ], + [ + 2, + 67, + 66, + 68, + 66, + 50 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14502680166765933, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14502680166765933, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 67, + 66, + 66, + 10 + ], + [ + 3, + 69, + 67, + 66, + 66, + 53 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.197736748064324, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.197736748064324, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 67, + 66, + 66, + 66, + 44 + ], + [ + 5, + 66, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 256, + "empirical_modal_target_fraction": 0.25431804645622397, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 256, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25431804645622397, + "multi_target_groups": 256, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 66, + 5 + ], + [ + 7, + 66, + 66, + 66, + 66, + 45 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + } + }, + "same_atomic_and_id_mask_all_lengths": true, + "source_entity_offset": 2, + "entity_offset": 3, + "source_token_shift": 1, + "separator_token": 71, + "vocab_size": 72, + "evaluation_pools": "Complete test_full_composite and ood_composite", + "composition_supervision": "Terminal entity only; no intermediate entity", + "training_objective": "All nonpadding next tokens including EOS", + "holdout": "Complete queries held out within each length; not subpaths across lengths", + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "independent_audit": { + "passed": true, + "counts": { + "atomic": 256, + "train_2": 444, + "familiar_2": 124, + "strict_2": 64, + "train_3": 768, + "familiar_3": 329, + "strict_3": 59, + "train_4": 768, + "familiar_4": 1025, + "strict_4": 53 + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "truth_edges_independently_traversed": true, + "complete_query_overlap": 0, + "all_strict_facts_absent_from_composition_training": true, + "cross_length_subpath_holdout": false + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/audit-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/audit-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..9e601fbb8d965f8a838bd7b708da536726b98e70 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/audit-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "audit", + "gpu": 7, + "returncode": 0, + "seconds": 3.7198770456016064 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/audit-process.log b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/audit-process.log new file mode 100644 index 0000000000000000000000000000000000000000..abef7761f0c55e3c7968a32ca7da3dfbf9eb076c --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/audit-process.log @@ -0,0 +1 @@ +{"passed": true, "dataset_rebuilt_and_archived_exact": true, "initial_model_exact": true, "checkpoint_nodes": [0, 8000, 32000, 64000], "endpoint_tokens_exact": true, "all_nodes_exposure_counters_exact": true, "stream_state_continuation_exact": true, "max_nll_difference": 0.0, "nll_rtol": 1e-05, "nll_atol": 1e-05, "utc": "2026-10-01T22:55:37.135185+00:00"} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/audit.json b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/audit.json new file mode 100644 index 0000000000000000000000000000000000000000..f91689db8841484917ba8e5ee786a75e964f9d7a --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/audit.json @@ -0,0 +1,18 @@ +{ + "passed": true, + "dataset_rebuilt_and_archived_exact": true, + "initial_model_exact": true, + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "endpoint_tokens_exact": true, + "all_nodes_exposure_counters_exact": true, + "stream_state_continuation_exact": true, + "max_nll_difference": 0.0, + "nll_rtol": 1e-05, + "nll_atol": 1e-05, + "utc": "2026-10-01T22:55:37.135185+00:00" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/complete.json b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..f9dc8387f13cb529fa5395c3311bff3eed59d4f8 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/complete.json @@ -0,0 +1,204 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 4, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "initial_model_sha256": "9b640444efffa10643f04822d97bd644b190896d7bda17959e8b4dde847b6057", + "checkpoint_sha256": "ebe40711e0e443ded77b1006fa2f235cef30f5a5b22590b2a85285effa9d85b1", + "finished_utc": "2026-10-01T22:55:33.192300+00:00", + "parameters": 208896, + "strata_counts": { + "atomic": 256, + "train_2": 444, + "train_3": 768, + "train_4": 768 + }, + "endpoint": { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 3.958930756198242e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 4.1045765101443976e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3629032258064516, + "answer_accuracy": 0.3629032258064516, + "answer_nll": 4.035329818725586, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3629032258064516, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 11.278942108154297, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 6.099061283748597e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.4072948328267477, + "answer_accuracy": 0.4072948328267477, + "answer_nll": 3.912595510482788, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.4072948328267477, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 11.949211120605469, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 7.502448715968058e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2497560975609756, + "answer_accuracy": 0.25073170731707317, + "answer_nll": 5.869071960449219, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2497560975609756, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 11.656739234924316, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.172883152961731, + "training_seconds": 71.965233463794, + "estimated_training_flops": 316082749440000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + }, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000, + "estimated_training_flops": 316082749440000, + "training_seconds": 71.965233463794, + "process_seconds": 77.09110439196229, + "environment": { + "torch": "2.6.0+cu126", + "numpy": "1.23.5", + "cuda": "12.6", + "gpu": "NVIDIA L20X", + "tf32": true + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/input-spec.json b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/input-spec.json new file mode 100644 index 0000000000000000000000000000000000000000..d476130710e8ded97a7c706d2998241a50d2bbf1 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/input-spec.json @@ -0,0 +1,65 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 4, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/learning.json b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..d1e9b108819aebabbda2fdf196494e1e8a201034 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/learning.json @@ -0,0 +1,1162 @@ +[ + { + "step": 0, + "lr": 0.0, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.0, + "answer_accuracy": 0.00390625, + "answer_nll": 4.315576553344727 + }, + "train_2": { + "n": 444, + "accuracy": 0.0, + "answer_accuracy": 0.006756756756756757, + "answer_nll": 4.305614471435547, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.0, + "answer_accuracy": 0.024193548387096774, + "answer_nll": 4.313386917114258, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.336587905883789, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.006510416666666667, + "answer_nll": 4.328152179718018, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.339831829071045, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.322370529174805, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.3169474601745605, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.0, + "answer_accuracy": 0.000975609756097561, + "answer_nll": 4.314676284790039, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.323181629180908, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": null, + "training_seconds": 0.0, + "estimated_training_flops": 0, + "supervised_tokens": 0, + "padded_input_tokens": 0 + }, + { + "step": 256, + "lr": 0.0009999982891312849, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.12890625, + "answer_accuracy": 0.12890625, + "answer_nll": 3.4470505714416504 + }, + "train_2": { + "n": 444, + "accuracy": 0.12612612612612611, + "answer_accuracy": 0.12612612612612611, + "answer_nll": 3.384122848510742, + "atomic_correct_coverage": 0.05630630630630631, + "conditional_accuracy": 0.88, + "autonomous_two_calls": 0.11711711711711711, + "autonomous_path_accuracy": 0.05630630630630631, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.0967741935483871, + "answer_accuracy": 0.0967741935483871, + "answer_nll": 3.3869855403900146, + "atomic_correct_coverage": 0.04838709677419355, + "conditional_accuracy": 0.8333333333333334, + "autonomous_two_calls": 0.08064516129032258, + "autonomous_path_accuracy": 0.04838709677419355, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.546984672546387, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.09505208333333333, + "answer_accuracy": 0.09505208333333333, + "answer_nll": 3.383296251296997, + "atomic_correct_coverage": 0.024739583333333332, + "conditional_accuracy": 0.8421052631578947, + "autonomous_two_calls": 0.08072916666666667, + "autonomous_path_accuracy": 0.024739583333333332, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.1033434650455927, + "answer_accuracy": 0.1033434650455927, + "answer_nll": 3.4537928104400635, + "atomic_correct_coverage": 0.0243161094224924, + "conditional_accuracy": 0.5, + "autonomous_two_calls": 0.09422492401215805, + "autonomous_path_accuracy": 0.0243161094224924, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.856058597564697, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.11588541666666667, + "answer_accuracy": 0.11588541666666667, + "answer_nll": 3.3849239349365234, + "atomic_correct_coverage": 0.010416666666666666, + "conditional_accuracy": 0.625, + "autonomous_two_calls": 0.09635416666666667, + "autonomous_path_accuracy": 0.010416666666666666, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.08585365853658537, + "answer_accuracy": 0.08585365853658537, + "answer_nll": 3.471395254135132, + "atomic_correct_coverage": 0.003902439024390244, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 0.07317073170731707, + "autonomous_path_accuracy": 0.003902439024390244, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.938809871673584, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": 1.9121794700622559, + "training_seconds": 0.2884250469505787, + "estimated_training_flops": 1264330997760, + "supervised_tokens": 212992, + "padded_input_tokens": 262144 + }, + { + "step": 512, + "lr": 0.0009999468942493638, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.5546875, + "answer_accuracy": 0.5546875, + "answer_nll": 1.8139561414718628 + }, + "train_2": { + "n": 444, + "accuracy": 0.36261261261261263, + "answer_accuracy": 0.36261261261261263, + "answer_nll": 2.330261468887329, + "atomic_correct_coverage": 0.4436936936936937, + "conditional_accuracy": 0.5126903553299492, + "autonomous_two_calls": 0.47072072072072074, + "autonomous_path_accuracy": 0.4436936936936937, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.12903225806451613, + "answer_accuracy": 0.12903225806451613, + "answer_nll": 3.090785503387451, + "atomic_correct_coverage": 0.3387096774193548, + "conditional_accuracy": 0.19047619047619047, + "autonomous_two_calls": 0.3790322580645161, + "autonomous_path_accuracy": 0.3387096774193548, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 5.027553558349609, + "atomic_correct_coverage": 0.140625, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.140625, + "autonomous_path_accuracy": 0.140625, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.22005208333333334, + "answer_accuracy": 0.22005208333333334, + "answer_nll": 2.7540979385375977, + "atomic_correct_coverage": 0.2955729166666667, + "conditional_accuracy": 0.34801762114537443, + "autonomous_two_calls": 0.34375, + "autonomous_path_accuracy": 0.2955729166666667, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.11854103343465046, + "answer_accuracy": 0.11854103343465046, + "answer_nll": 3.1416029930114746, + "atomic_correct_coverage": 0.2948328267477204, + "conditional_accuracy": 0.20618556701030927, + "autonomous_two_calls": 0.3373860182370821, + "autonomous_path_accuracy": 0.2948328267477204, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 5.530490398406982, + "atomic_correct_coverage": 0.03389830508474576, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.1016949152542373, + "autonomous_path_accuracy": 0.03389830508474576, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.18489583333333334, + "answer_accuracy": 0.18489583333333334, + "answer_nll": 2.8534109592437744, + "atomic_correct_coverage": 0.20182291666666666, + "conditional_accuracy": 0.3161290322580645, + "autonomous_two_calls": 0.26171875, + "autonomous_path_accuracy": 0.20182291666666666, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.10439024390243902, + "answer_accuracy": 0.10439024390243902, + "answer_nll": 3.3615176677703857, + "atomic_correct_coverage": 0.18926829268292683, + "conditional_accuracy": 0.211340206185567, + "autonomous_two_calls": 0.23512195121951218, + "autonomous_path_accuracy": 0.18926829268292683, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 5.798784255981445, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.11320754716981132, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": 1.738394021987915, + "training_seconds": 0.5770740061998367, + "estimated_training_flops": 2528661995520, + "supervised_tokens": 425984, + "padded_input_tokens": 524288 + }, + { + "step": 1000, + "lr": 0.0009996508880478938, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.99609375, + "answer_accuracy": 0.99609375, + "answer_nll": 0.17171308398246765 + }, + "train_2": { + "n": 444, + "accuracy": 0.9662162162162162, + "answer_accuracy": 0.9662162162162162, + "answer_nll": 0.28732162714004517, + "atomic_correct_coverage": 0.990990990990991, + "conditional_accuracy": 0.9681818181818181, + "autonomous_two_calls": 0.990990990990991, + "autonomous_path_accuracy": 0.990990990990991, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.22580645161290322, + "answer_accuracy": 0.22580645161290322, + "answer_nll": 2.8611276149749756, + "atomic_correct_coverage": 0.9919354838709677, + "conditional_accuracy": 0.22764227642276422, + "autonomous_two_calls": 0.9919354838709677, + "autonomous_path_accuracy": 0.9919354838709677, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 7.259957790374756, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.7682291666666666, + "answer_accuracy": 0.7682291666666666, + "answer_nll": 0.8201155662536621, + "atomic_correct_coverage": 0.9908854166666666, + "conditional_accuracy": 0.771353482260184, + "autonomous_two_calls": 0.9908854166666666, + "autonomous_path_accuracy": 0.9908854166666666, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.2553191489361702, + "answer_accuracy": 0.2553191489361702, + "answer_nll": 2.8303394317626953, + "atomic_correct_coverage": 0.9848024316109423, + "conditional_accuracy": 0.25925925925925924, + "autonomous_two_calls": 0.9848024316109423, + "autonomous_path_accuracy": 0.9848024316109423, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 7.472927570343018, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.6458333333333334, + "answer_accuracy": 0.6458333333333334, + "answer_nll": 1.1426156759262085, + "atomic_correct_coverage": 0.9817708333333334, + "conditional_accuracy": 0.6485411140583555, + "autonomous_two_calls": 0.9817708333333334, + "autonomous_path_accuracy": 0.9817708333333334, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.1824390243902439, + "answer_accuracy": 0.1824390243902439, + "answer_nll": 3.633296251296997, + "atomic_correct_coverage": 0.9853658536585366, + "conditional_accuracy": 0.18415841584158416, + "autonomous_two_calls": 0.9853658536585366, + "autonomous_path_accuracy": 0.9853658536585366, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 7.229517936706543, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.4281182289123535, + "training_seconds": 1.1270386762917042, + "estimated_training_flops": 4938792960000, + "supervised_tokens": 832000, + "padded_input_tokens": 1024000 + }, + { + "step": 2000, + "lr": 0.000998233549067816, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.015221678651869297 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.029541758820414543, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3467741935483871, + "answer_accuracy": 0.3467741935483871, + "answer_nll": 3.367438554763794, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3467741935483871, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 9.435236930847168, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.98828125, + "answer_accuracy": 0.98828125, + "answer_nll": 0.06728941202163696, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.98828125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3009118541033435, + "answer_accuracy": 0.3009118541033435, + "answer_nll": 3.489215850830078, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3009118541033435, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 9.642549514770508, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9765625, + "answer_accuracy": 0.9765625, + "answer_nll": 0.11337205022573471, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9765625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.21073170731707316, + "answer_accuracy": 0.21073170731707316, + "answer_nll": 4.807465076446533, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.21073170731707316, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 9.479876518249512, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.247185230255127, + "training_seconds": 2.2532122768461704, + "estimated_training_flops": 9877585920000, + "supervised_tokens": 1664000, + "padded_input_tokens": 2048000 + }, + { + "step": 4000, + "lr": 0.0009921451014991594, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0038114592898637056 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0046599796041846275, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3709677419354839, + "answer_accuracy": 0.3709677419354839, + "answer_nll": 3.6902663707733154, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3709677419354839, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 9.972343444824219, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9947916666666666, + "answer_accuracy": 0.9947916666666666, + "answer_nll": 0.021578721702098846, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9947916666666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3282674772036474, + "answer_accuracy": 0.3282674772036474, + "answer_nll": 3.728360414505005, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3282674772036474, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 10.296494483947754, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9986979166666666, + "answer_accuracy": 0.9986979166666666, + "answer_nll": 0.012569218873977661, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9986979166666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2370731707317073, + "answer_accuracy": 0.2370731707317073, + "answer_nll": 5.339746475219727, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2370731707317073, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 10.485361099243164, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.2017533779144287, + "training_seconds": 4.504435613751411, + "estimated_training_flops": 19755171840000, + "supervised_tokens": 3328000, + "padded_input_tokens": 4096000 + }, + { + "step": 8000, + "lr": 0.0009672142859549292, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0005696798325516284 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.000599966908339411, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.31451612903225806, + "answer_accuracy": 0.31451612903225806, + "answer_nll": 3.8303112983703613, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.31451612903225806, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 10.712912559509277, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0007743299356661737, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3951367781155015, + "answer_accuracy": 0.3951367781155015, + "answer_nll": 3.866652488708496, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3951367781155015, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 10.469517707824707, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0009685691329650581, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2302439024390244, + "answer_accuracy": 0.2302439024390244, + "answer_nll": 5.648223876953125, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2302439024390244, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 10.666311264038086, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03773584905660377, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1791402101516724, + "training_seconds": 9.003444075584412, + "estimated_training_flops": 39510343680000, + "supervised_tokens": 6656000, + "padded_input_tokens": 8192000 + }, + { + "step": 16000, + "lr": 0.0008705396215758866, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00037344780866988003 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00040489985258318484, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3629032258064516, + "answer_accuracy": 0.3629032258064516, + "answer_nll": 3.9941647052764893, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3629032258064516, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 10.926900863647461, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0006791818886995316, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.43465045592705165, + "answer_accuracy": 0.43465045592705165, + "answer_nll": 3.4148669242858887, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.43465045592705165, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 10.96091365814209, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0008473517373204231, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.24097560975609755, + "answer_accuracy": 0.24097560975609755, + "answer_nll": 5.378407001495361, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.24097560975609755, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 11.475810050964355, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1798161268234253, + "training_seconds": 18.00601176917553, + "estimated_training_flops": 79020687360000, + "supervised_tokens": 13312000, + "padded_input_tokens": 16384000 + }, + { + "step": 32000, + "lr": 0.0005522158479326845, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00010978426143992692 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00012632740254048258, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3629032258064516, + "answer_accuracy": 0.3629032258064516, + "answer_nll": 3.834321975708008, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3629032258064516, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 10.846040725708008, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00021132799156475812, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.43465045592705165, + "answer_accuracy": 0.43465045592705165, + "answer_nll": 3.5886964797973633, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.43465045592705165, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 11.829418182373047, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00023864120885264128, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2634146341463415, + "answer_accuracy": 0.2634146341463415, + "answer_nll": 5.470647811889648, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2634146341463415, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 11.50385570526123, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03773584905660377, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1747336387634277, + "training_seconds": 36.00138855725527, + "estimated_training_flops": 158041374720000, + "supervised_tokens": 26624000, + "padded_input_tokens": 32768000 + }, + { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 3.958930756198242e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 4.1045765101443976e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3629032258064516, + "answer_accuracy": 0.3629032258064516, + "answer_nll": 4.035329818725586, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3629032258064516, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 11.278942108154297, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 6.099061283748597e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.4072948328267477, + "answer_accuracy": 0.4072948328267477, + "answer_nll": 3.912595510482788, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.4072948328267477, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 11.949211120605469, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 7.502448715968058e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2497560975609756, + "answer_accuracy": 0.25073170731707317, + "answer_nll": 5.869071960449219, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2497560975609756, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 11.656739234924316, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.172883152961731, + "training_seconds": 71.965233463794, + "estimated_training_flops": 316082749440000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + } +] diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/spec.json b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/spec.json new file mode 100644 index 0000000000000000000000000000000000000000..473838c5b258d31e3f8d245eed57cc3a1e44beae --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/spec.json @@ -0,0 +1,66 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 4, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/status.json new file mode 100644 index 0000000000000000000000000000000000000000..d332dc2b8bde7c33219e9f3a7045f6466b684b92 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/status.json @@ -0,0 +1,4 @@ +{ + "step": 64000, + "budget": 64000 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/train-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/train-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..645cbee6154ca510a1bb12a98b3efb28eddd6854 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/train-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "train", + "gpu": 7, + "returncode": 0, + "seconds": 86.37519220635295 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/train-process.log b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/train-process.log new file mode 100644 index 0000000000000000000000000000000000000000..205bd35672252ad40c585d440012027f07f01814 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/train-process.log @@ -0,0 +1,10 @@ +{"run": "w751011-i752011-d128-l1-r4-s64000", "step": 0, "atomic": 0.0, "familiar": {"2": 0.0, "3": 0.0, "4": 0.0}} +{"run": "w751011-i752011-d128-l1-r4-s64000", "step": 256, "atomic": 0.12890625, "familiar": {"2": 0.0967741935483871, "3": 0.1033434650455927, "4": 0.08585365853658537}} +{"run": "w751011-i752011-d128-l1-r4-s64000", "step": 512, "atomic": 0.5546875, "familiar": {"2": 0.12903225806451613, "3": 0.11854103343465046, "4": 0.10439024390243902}} +{"run": "w751011-i752011-d128-l1-r4-s64000", "step": 1000, "atomic": 0.99609375, "familiar": {"2": 0.22580645161290322, "3": 0.2553191489361702, "4": 0.1824390243902439}} +{"run": "w751011-i752011-d128-l1-r4-s64000", "step": 2000, "atomic": 1.0, "familiar": {"2": 0.3467741935483871, "3": 0.3009118541033435, "4": 0.21073170731707316}} +{"run": "w751011-i752011-d128-l1-r4-s64000", "step": 4000, "atomic": 1.0, "familiar": {"2": 0.3709677419354839, "3": 0.3282674772036474, "4": 0.2370731707317073}} +{"run": "w751011-i752011-d128-l1-r4-s64000", "step": 8000, "atomic": 1.0, "familiar": {"2": 0.31451612903225806, "3": 0.3951367781155015, "4": 0.2302439024390244}} +{"run": "w751011-i752011-d128-l1-r4-s64000", "step": 16000, "atomic": 1.0, "familiar": {"2": 0.3629032258064516, "3": 0.43465045592705165, "4": 0.24097560975609755}} +{"run": "w751011-i752011-d128-l1-r4-s64000", "step": 32000, "atomic": 1.0, "familiar": {"2": 0.3629032258064516, "3": 0.43465045592705165, "4": 0.2634146341463415}} +{"run": "w751011-i752011-d128-l1-r4-s64000", "step": 64000, "atomic": 1.0, "familiar": {"2": 0.3629032258064516, "3": 0.4072948328267477, "4": 0.2497560975609756}} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/world-metadata.json b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/world-metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0d160c9e2f6a49b4d5ec9ef5ade290343346beb5 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r4-s64000/world-metadata.json @@ -0,0 +1,11519 @@ +{ + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "id_mask": [ + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + false, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + true, + true, + false, + false, + false, + true, + true, + true, + false, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + false, + true, + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true + ], + "source_worlds": { + "2": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": true, + "phi_actual": 2.3125, + "mixed_composite_excluded": 392, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 444, + "test_composite": 124, + "test_full_composite": 124, + "ood_composite": 64, + "unused_composite": 0 + }, + "dataset_sha256": "59e810faf8478e02f02ffd785bce119413d62608e48c5d41a4c24032dda4abc2", + "warnings": [ + "Training request capped at eligible pool" + ], + "hops": 2, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 568, + "all_paths_total": 1024, + "training_fraction_of_id_paths": 0.7816901408450704, + "training_fraction_of_nonreserved_id_paths": 1.0, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 29, + 49, + 14, + 32, + 62, + 86, + 66, + 5, + 8, + 83, + 50, + 88, + 116, + 23, + 87, + 80, + 100, + 9, + 117, + 81, + 79, + 54, + 91, + 111, + 19, + 4, + 68, + 2, + 113, + 40, + 65, + 27, + 38, + 0, + 41, + 21, + 1, + 78, + 82, + 101, + 15, + 20, + 59, + 35, + 99, + 53, + 84, + 123, + 114, + 56, + 108, + 72, + 55, + 104, + 92, + 22, + 89, + 43, + 18, + 11, + 74, + 13, + 52, + 60, + 25, + 109, + 48, + 57, + 71, + 115, + 30, + 110, + 61, + 119, + 44, + 95, + 106, + 47, + 121, + 24, + 69, + 118, + 98, + 39, + 34, + 112, + 26, + 102, + 36, + 75, + 33, + 105, + 96, + 51, + 94, + 58, + 90, + 12, + 10, + 97, + 76, + 107, + 93, + 42, + 6, + 17, + 46, + 122, + 64, + 67, + 73, + 85, + 77, + 28, + 7, + 45, + 3, + 120, + 63, + 70, + 37, + 16, + 31, + 103 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 444, + "any_repeated_entity_n": 45, + "any_repeated_entity_fraction": 0.10135135135135136, + "answer_equals_preceding_entity_n": 33, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 185, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 0, + 4, + 2, + 0, + 1, + 0, + 2, + 0, + 3, + 2, + 0, + 1, + 2, + 0, + 0, + 2, + 3, + 3, + 2, + 1, + 3, + 3, + 0, + 3, + 2, + 2, + 0, + 2, + 3, + 1, + 2, + 4, + 3, + 3, + 2, + 0, + 0, + 1, + 3, + 0, + 0, + 4, + 4, + 1, + 0, + 2, + 2, + 0, + 0, + 0, + 1, + 4, + 3, + 0, + 0, + 1, + 0, + 3, + 0, + 0, + 4, + 2, + 2, + 2, + 0, + 2, + 2, + 0, + 2, + 3, + 0, + 0, + 2, + 3, + 3, + 4, + 0, + 3, + 4, + 2, + 3, + 0, + 2, + 2, + 0, + 3, + 1, + 3, + 3, + 3, + 0, + 2, + 3, + 1, + 0, + 3, + 2, + 3, + 3, + 3, + 1, + 2, + 2, + 2, + 0, + 3, + 2, + 4, + 2, + 2, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 3, + 3, + 0, + 3, + 3, + 2, + 3, + 3, + 0, + 1, + 3, + 3, + 1, + 2, + 3, + 1, + 1, + 1, + 4, + 3, + 3, + 0, + 2, + 3, + 2, + 3, + 1, + 3, + 0, + 3, + 2, + 0, + 0, + 2, + 2, + 4, + 1, + 3, + 3, + 3, + 0, + 2, + 2, + 2, + 2, + 2, + 0, + 3, + 0, + 0, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 0, + 2, + 0, + 3, + 2, + 2, + 4, + 2, + 0, + 4, + 2, + 3, + 4, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 4, + 2, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 2, + 2, + 3, + 1, + 2, + 2, + 2, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 2, + 1, + 0, + 1, + 3, + 4, + 2, + 2, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 182, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 0, + 3, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 0, + 5, + 3, + 0, + 1, + 1, + 1, + 3, + 0, + 4, + 4, + 4, + 0, + 5, + 4, + 1, + 2, + 1, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 3, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 5, + 4, + 0, + 1, + 2, + 0, + 0, + 4, + 6, + 5, + 5, + 0, + 2, + 2, + 2, + 1, + 0, + 2, + 3, + 3, + 2, + 2, + 2, + 2, + 2, + 0, + 2, + 2, + 4, + 0, + 4, + 3, + 1, + 1, + 1, + 1, + 2, + 2, + 1, + 0, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 0, + 2, + 3, + 0, + 4, + 0, + 1, + 1, + 2, + 3, + 0, + 3, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 2, + 1, + 3, + 3, + 3, + 2, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 2, + 2, + 2, + 2, + 2, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 3, + 2, + 0, + 3, + 2, + 2, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 2, + 3, + 1, + 5, + 6, + 7, + 6, + 3, + 2, + 0, + 3, + 2, + 3, + 2, + 3, + 0, + 4, + 3, + 3, + 1, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 1, + 2, + 2, + 0, + 5, + 0, + 6, + 0, + 0, + 4, + 4, + 3, + 1, + 3, + 2, + 2, + 0, + 2, + 3, + 2, + 4, + 0, + 3, + 3, + 2, + 0, + 2, + 3, + 4, + 4, + 4, + 3 + ], + "id_count_min": 0, + "id_count_max": 7 + } + ] + }, + "test_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + }, + "test_full_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 3, + 0, + 4, + 0, + 4, + 3, + 2, + 3, + 0, + 3, + 4, + 0, + 8, + 5, + 4, + 4, + 0, + 5, + 0, + 5, + 3, + 0, + 3, + 4, + 0, + 0, + 7, + 6, + 3, + 3, + 2, + 4, + 6, + 0, + 7, + 6, + 6, + 0, + 7, + 7, + 2, + 4, + 5, + 4, + 4, + 4, + 0, + 0, + 2, + 4, + 0, + 0, + 8, + 9, + 6, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 6, + 5, + 0, + 0, + 4, + 0, + 4, + 0, + 0, + 5, + 4, + 4, + 3, + 0, + 7, + 6, + 0, + 3, + 5, + 0, + 0, + 6, + 9, + 8, + 9, + 0, + 5, + 6, + 4, + 4, + 0, + 4, + 5, + 3, + 5, + 3, + 5, + 5, + 5, + 0, + 4, + 5, + 5, + 0, + 7, + 5, + 4, + 4, + 4, + 2, + 4, + 4, + 3, + 0, + 4, + 3, + 5, + 2, + 4, + 4, + 0, + 0, + 4, + 3, + 0, + 7, + 0, + 3, + 3, + 5, + 6, + 0, + 6, + 4, + 3, + 4, + 4, + 0, + 1, + 3, + 3, + 1, + 4, + 5, + 3, + 2, + 4, + 7, + 6, + 5, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 7, + 5, + 0, + 0, + 4, + 4, + 6, + 3, + 5, + 4, + 5, + 0, + 6, + 5, + 6, + 5, + 5, + 0, + 6, + 0, + 0, + 0, + 6, + 3, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 0, + 4, + 3, + 4, + 0, + 0, + 5, + 5, + 3, + 7, + 10, + 9, + 8, + 3, + 4, + 0, + 6, + 4, + 5, + 6, + 5, + 0, + 8, + 5, + 6, + 5, + 0, + 6, + 4, + 0, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 9, + 0, + 8, + 0, + 0, + 6, + 6, + 6, + 2, + 5, + 4, + 4, + 0, + 2, + 3, + 4, + 6, + 0, + 5, + 5, + 3, + 0, + 3, + 6, + 8, + 6, + 6, + 5 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 444, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 444, + "any_relevant_fact_in_composite_training_n": 444, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 444, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 185, + 182 + ], + "within_split_majority_tail": { + "target_token": 8, + "count": 16, + "fraction": 0.036036036036036036, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.036036036036036036, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08783783783783784, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08783783783783784, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 36, + 67, + 66, + 43 + ], + [ + 47, + 69, + 66, + 56 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.13063063063063063, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.13063063063063063, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 54, + 66, + 66, + 43 + ], + [ + 11, + 66, + 66, + 22 + ] + ] + } + ] + }, + "test_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 15, + 68, + 66, + 34 + ], + [ + 18, + 68, + 66, + 22 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 35, + 66, + 66, + 53 + ], + [ + 55, + 66, + 66, + 60 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 66, + 53 + ], + [ + 5, + 69, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 53 + ], + [ + 25, + 66, + 66, + 16 + ] + ] + } + ] + }, + "ood_composite": { + "n": 64, + "unique_relevant_atomic_facts": 53, + "relevant_atomic_fact_coverage_of_graph": 0.20703125, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 44, + 39 + ], + "within_split_majority_tail": { + "target_token": 58, + "count": 5, + "fraction": 0.078125, + "distinct_targets": 30 + }, + "train_composite_majority_tail_fraction": 0.0, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.25, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 6, + 67, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.328125, + "single_target_group_query_fraction": 0.03125, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.328125, + "multi_target_groups": 14, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 13, + 66, + 66, + 13 + ] + ] + } + ] + }, + "unused_composite": { + "n": 0, + "unique_relevant_atomic_facts": 0, + "relevant_atomic_fact_coverage_of_graph": 0.0, + "all_relevant_facts_in_atomic_training_fraction": null, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": null, + "all_id_queries": 0, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 0, + 0 + ], + "within_split_majority_tail": { + "target_token": null, + "count": 0, + "fraction": null, + "distinct_targets": 0 + }, + "train_composite_majority_tail_fraction": null, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + }, + { + "suffix_relation_count": 2, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "3": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 2331, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 329, + "test_full_composite": 329, + "ood_composite": 59, + "unused_composite": 609 + }, + "dataset_sha256": "874230d99d7b1184953935d1476d34c3d69968bcc196b499299cf4c63dc75d6f", + "warnings": [], + "hops": 3, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 1706, + "all_paths_total": 4096, + "training_fraction_of_id_paths": 0.4501758499413834, + "training_fraction_of_nonreserved_id_paths": 0.5577342047930284, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 177, + 263, + 289, + 328, + 73, + 17, + 112, + 159, + 45, + 110, + 16, + 286, + 225, + 25, + 95, + 24, + 49, + 66, + 230, + 201, + 19, + 7, + 172, + 323, + 321, + 152, + 181, + 58, + 313, + 169, + 218, + 231, + 221, + 121, + 285, + 243, + 150, + 256, + 292, + 141, + 105, + 51, + 34, + 37, + 102, + 266, + 196, + 139, + 106, + 250, + 65, + 28, + 195, + 188, + 113, + 52, + 228, + 173, + 246, + 99, + 125, + 167, + 175, + 244, + 61, + 47, + 178, + 257, + 50, + 2, + 301, + 252, + 55, + 202, + 165, + 41, + 148, + 140, + 309, + 239, + 213, + 238, + 128, + 318, + 97, + 86, + 242, + 311, + 88, + 197, + 248, + 96, + 293, + 273, + 155, + 281, + 90, + 214, + 87, + 278, + 270, + 21, + 237, + 35, + 71, + 44, + 157, + 315, + 156, + 174, + 222, + 4, + 134, + 249, + 32, + 119, + 260, + 130, + 232, + 259, + 192, + 183, + 291, + 185, + 264, + 79, + 75, + 104, + 13, + 296, + 26, + 133, + 101, + 272, + 304, + 205, + 319, + 254, + 11, + 162, + 48, + 93, + 306, + 190, + 290, + 27, + 262, + 168, + 116, + 200, + 109, + 277, + 118, + 29, + 279, + 268, + 314, + 111, + 245, + 288, + 298, + 186, + 81, + 226, + 12, + 324, + 227, + 171, + 18, + 326, + 233, + 179, + 15, + 307, + 170, + 144, + 275, + 43, + 287, + 320, + 103, + 36, + 215, + 302, + 164, + 153, + 120, + 59, + 1, + 94, + 209, + 189, + 180, + 76, + 77, + 123, + 98, + 83, + 108, + 224, + 40, + 67, + 129, + 229, + 54, + 269, + 149, + 265, + 297, + 22, + 92, + 303, + 126, + 282, + 223, + 42, + 191, + 216, + 100, + 135, + 184, + 14, + 72, + 163, + 253, + 131, + 207, + 3, + 255, + 82, + 166, + 312, + 241, + 295, + 251, + 204, + 84, + 57, + 274, + 78, + 299, + 8, + 276, + 10, + 217, + 212, + 176, + 267, + 74, + 107, + 147, + 327, + 91, + 33, + 305, + 151, + 38, + 199, + 325, + 0, + 182, + 122, + 9, + 300, + 235, + 160, + 85, + 317, + 187, + 208, + 56, + 219, + 161, + 70, + 80, + 308, + 31, + 124, + 194, + 316, + 220, + 145, + 154, + 115, + 258, + 271, + 210, + 198, + 310, + 60, + 68, + 234, + 114, + 247, + 62, + 64, + 322, + 283, + 23, + 284, + 203, + 261, + 136, + 294, + 89, + 30, + 211, + 63, + 6, + 20, + 158, + 146, + 53, + 5, + 143, + 117, + 137, + 132, + 138, + 193, + 127, + 280, + 236, + 69, + 39, + 206, + 142, + 46, + 240 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 117, + "any_repeated_entity_fraction": 0.15234375, + "answer_equals_preceding_entity_n": 63, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 189, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 5, + 0, + 7, + 2, + 2, + 6, + 0, + 5, + 3, + 0, + 7, + 5, + 5, + 2, + 0, + 5, + 0, + 6, + 6, + 0, + 7, + 2, + 0, + 0, + 2, + 4, + 3, + 5, + 3, + 4, + 4, + 0, + 6, + 5, + 3, + 0, + 3, + 7, + 0, + 4, + 7, + 4, + 3, + 4, + 0, + 4, + 4, + 6, + 0, + 0, + 5, + 5, + 5, + 0, + 3, + 2, + 0, + 0, + 0, + 4, + 6, + 5, + 0, + 0, + 3, + 0, + 3, + 0, + 0, + 9, + 2, + 6, + 3, + 0, + 2, + 1, + 0, + 3, + 4, + 0, + 0, + 4, + 3, + 4, + 7, + 0, + 4, + 6, + 3, + 7, + 0, + 1, + 3, + 7, + 3, + 3, + 2, + 5, + 7, + 0, + 2, + 8, + 4, + 0, + 6, + 5, + 7, + 7, + 5, + 3, + 3, + 4, + 0, + 0, + 4, + 8, + 4, + 6, + 5, + 3, + 0, + 0, + 5, + 3, + 0, + 2, + 0, + 5, + 5, + 3, + 4, + 0, + 3, + 4, + 1, + 3, + 7, + 0, + 1, + 3, + 4, + 3, + 4, + 5, + 2, + 2, + 4, + 6, + 5, + 3, + 0, + 3, + 4, + 4, + 2, + 2, + 3, + 0, + 4, + 3, + 0, + 0, + 2, + 3, + 5, + 3, + 3, + 4, + 5, + 0, + 4, + 7, + 1, + 4, + 1, + 0, + 2, + 0, + 0, + 0, + 3, + 3, + 2, + 4, + 0, + 5, + 4, + 5, + 0, + 0, + 1, + 1, + 4, + 0, + 0, + 2, + 5, + 3, + 1, + 4, + 1, + 4, + 3, + 0, + 0, + 6, + 3, + 5, + 7, + 3, + 0, + 5, + 2, + 6, + 5, + 0, + 5, + 7, + 0, + 3, + 6, + 0, + 6, + 6, + 5, + 0, + 3, + 0, + 6, + 0, + 0, + 4, + 2, + 4, + 4, + 5, + 2, + 4, + 0, + 1, + 4, + 3, + 4, + 0, + 6, + 2, + 6, + 0, + 4, + 5, + 5, + 5, + 7, + 4 + ], + "id_count_min": 0, + "id_count_max": 9 + }, + { + "hop": 2, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 4, + 0, + 1, + 2, + 0, + 1, + 0, + 6, + 4, + 0, + 8, + 10, + 4, + 3, + 0, + 8, + 0, + 8, + 3, + 0, + 1, + 3, + 0, + 0, + 7, + 11, + 2, + 1, + 1, + 1, + 10, + 0, + 8, + 6, + 5, + 0, + 7, + 7, + 0, + 3, + 3, + 2, + 3, + 2, + 0, + 2, + 1, + 2, + 0, + 0, + 12, + 11, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 4, + 0, + 0, + 4, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 2, + 0, + 6, + 4, + 0, + 11, + 6, + 0, + 0, + 4, + 5, + 7, + 13, + 0, + 1, + 4, + 3, + 3, + 0, + 7, + 6, + 8, + 2, + 3, + 2, + 4, + 2, + 0, + 4, + 1, + 5, + 0, + 6, + 9, + 2, + 1, + 1, + 2, + 7, + 3, + 1, + 0, + 2, + 2, + 1, + 1, + 5, + 1, + 0, + 0, + 5, + 5, + 0, + 3, + 0, + 1, + 4, + 1, + 3, + 0, + 5, + 4, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 0, + 0, + 3, + 7, + 5, + 6, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 2, + 2, + 2, + 1, + 0, + 3, + 0, + 8, + 9, + 6, + 8, + 3, + 0, + 2, + 0, + 0, + 0, + 4, + 3, + 1, + 3, + 0, + 3, + 5, + 6, + 0, + 0, + 3, + 2, + 4, + 0, + 0, + 6, + 6, + 3, + 10, + 14, + 7, + 15, + 3, + 2, + 0, + 1, + 3, + 4, + 4, + 4, + 0, + 11, + 7, + 8, + 5, + 0, + 5, + 5, + 0, + 1, + 4, + 0, + 2, + 2, + 4, + 0, + 10, + 0, + 9, + 0, + 0, + 9, + 8, + 5, + 3, + 0, + 3, + 4, + 0, + 5, + 1, + 3, + 3, + 0, + 7, + 2, + 5, + 0, + 1, + 5, + 9, + 6, + 6, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 175, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 6, + 5, + 2, + 1, + 0, + 2, + 2, + 0, + 7, + 7, + 5, + 7, + 0, + 7, + 0, + 9, + 3, + 0, + 2, + 2, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 1, + 5, + 0, + 5, + 5, + 9, + 0, + 8, + 7, + 3, + 3, + 3, + 2, + 2, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 9, + 5, + 8, + 0, + 4, + 2, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 4, + 3, + 2, + 0, + 6, + 3, + 0, + 5, + 3, + 0, + 0, + 4, + 5, + 10, + 6, + 0, + 3, + 4, + 5, + 7, + 0, + 5, + 9, + 5, + 1, + 2, + 2, + 0, + 1, + 0, + 1, + 4, + 10, + 0, + 8, + 7, + 1, + 2, + 2, + 2, + 2, + 4, + 4, + 0, + 4, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 3, + 1, + 0, + 2, + 0, + 7, + 7, + 8, + 9, + 0, + 6, + 4, + 1, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 3, + 4, + 3, + 6, + 1, + 4, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 16, + 9, + 0, + 0, + 3, + 3, + 4, + 2, + 4, + 3, + 3, + 0, + 10, + 8, + 7, + 8, + 4, + 0, + 4, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 0, + 4, + 5, + 5, + 0, + 0, + 3, + 5, + 3, + 0, + 0, + 5, + 5, + 3, + 14, + 5, + 8, + 6, + 6, + 5, + 0, + 4, + 5, + 2, + 1, + 5, + 0, + 6, + 12, + 7, + 0, + 0, + 1, + 1, + 0, + 2, + 6, + 0, + 2, + 3, + 2, + 0, + 9, + 0, + 5, + 0, + 0, + 5, + 7, + 2, + 6, + 6, + 8, + 8, + 0, + 0, + 1, + 2, + 6, + 0, + 3, + 8, + 1, + 0, + 4, + 4, + 11, + 7, + 8, + 7 + ], + "id_count_min": 0, + "id_count_max": 16 + } + ] + }, + "test_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + }, + "test_full_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 192, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 6, + 0, + 12, + 0, + 14, + 9, + 4, + 8, + 0, + 13, + 9, + 0, + 22, + 22, + 14, + 12, + 0, + 20, + 0, + 23, + 12, + 0, + 10, + 7, + 0, + 0, + 16, + 22, + 5, + 6, + 6, + 6, + 19, + 0, + 19, + 16, + 17, + 0, + 18, + 21, + 3, + 10, + 13, + 8, + 8, + 7, + 0, + 8, + 6, + 8, + 0, + 0, + 26, + 21, + 18, + 0, + 8, + 4, + 0, + 0, + 0, + 8, + 10, + 11, + 0, + 0, + 9, + 0, + 5, + 0, + 0, + 12, + 6, + 11, + 7, + 0, + 14, + 8, + 0, + 19, + 13, + 0, + 0, + 12, + 13, + 21, + 26, + 0, + 8, + 14, + 11, + 17, + 0, + 13, + 18, + 20, + 6, + 8, + 6, + 9, + 10, + 0, + 7, + 13, + 19, + 0, + 20, + 21, + 10, + 10, + 8, + 7, + 12, + 11, + 5, + 0, + 10, + 11, + 7, + 8, + 12, + 4, + 0, + 0, + 13, + 9, + 0, + 7, + 0, + 13, + 16, + 12, + 16, + 0, + 14, + 12, + 3, + 8, + 9, + 0, + 1, + 3, + 4, + 3, + 14, + 13, + 5, + 6, + 10, + 19, + 11, + 13, + 0, + 4, + 6, + 5, + 2, + 2, + 3, + 0, + 27, + 19, + 0, + 0, + 7, + 8, + 11, + 7, + 8, + 7, + 11, + 0, + 22, + 24, + 14, + 20, + 8, + 0, + 8, + 0, + 0, + 0, + 9, + 7, + 5, + 9, + 0, + 12, + 14, + 16, + 0, + 0, + 7, + 8, + 11, + 0, + 0, + 13, + 16, + 9, + 25, + 23, + 16, + 25, + 12, + 7, + 0, + 11, + 11, + 11, + 12, + 12, + 0, + 22, + 21, + 21, + 10, + 0, + 11, + 13, + 0, + 6, + 16, + 0, + 10, + 11, + 11, + 0, + 22, + 0, + 20, + 0, + 0, + 18, + 17, + 11, + 13, + 11, + 13, + 16, + 0, + 6, + 6, + 8, + 13, + 0, + 16, + 12, + 12, + 0, + 9, + 14, + 25, + 18, + 21, + 17 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.75, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.0234375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.026041666666666668, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 189, + 177, + 175 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 43, + "fraction": 0.055989583333333336, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.055989583333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10807291666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10807291666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.1640625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.1640625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.23177083333333334, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23177083333333334, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + } + ] + }, + "test_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 54, + 69, + 68, + 66, + 8 + ], + [ + 65, + 68, + 67, + 66, + 25 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 11, + 67, + 66, + 66, + 45 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 69, + 66, + 42 + ], + [ + 4, + 69, + 67, + 66, + 59 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 67, + 66, + 66, + 45 + ], + [ + 12, + 69, + 66, + 66, + 16 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "ood_composite": { + "n": 59, + "unique_relevant_atomic_facts": 51, + "relevant_atomic_fact_coverage_of_graph": 0.19921875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 59, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 41, + 30, + 31 + ], + "within_split_majority_tail": { + "target_token": 60, + "count": 6, + "fraction": 0.1016949152542373, + "distinct_targets": 25 + }, + "train_composite_majority_tail_fraction": 0.03389830508474576, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.23728813559322035, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23728813559322035, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 8, + 67, + 69, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.5423728813559322, + "single_target_group_query_fraction": 0.1016949152542373, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.5423728813559322, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 39, + "empirical_modal_target_fraction": 0.7288135593220338, + "single_target_group_query_fraction": 0.4745762711864407, + "singleton_group_query_fraction": 0.4067796610169492, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 0.5932203389830508, + "multi_query_empirical_modal_target_fraction": 0.5428571428571428, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 13, + 66, + 66, + 66, + 13 + ], + [ + 18, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "unused_composite": { + "n": 609, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 609, + "any_relevant_fact_in_composite_training_n": 609, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 609, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 186, + 172, + 174 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 26, + "fraction": 0.042692939244663386, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03940886699507389, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07717569786535304, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07717569786535304, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 69, + 67, + 66, + 52 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14614121510673234, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14614121510673234, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 67, + 66, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.22660098522167488, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.22660098522167488, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 66, + 10 + ], + [ + 6, + 66, + 66, + 66, + 60 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "4": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 11180, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 512, + "test_full_composite": 1025, + "ood_composite": 53, + "unused_composite": 3358 + }, + "dataset_sha256": "11ec0124d665d8362ddc331d5c39bc251f7cada4bc5263b5524390fbb9319e85", + "warnings": [], + "hops": 4, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 5151, + "all_paths_total": 16384, + "training_fraction_of_id_paths": 0.14909726266744322, + "training_fraction_of_nonreserved_id_paths": 0.1861366941347552, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 560, + 766, + 474, + 184, + 609, + 39, + 576, + 63, + 547, + 821, + 853, + 222, + 688, + 718, + 268, + 448, + 856, + 266, + 593, + 433, + 505, + 736, + 138, + 300, + 982, + 250, + 165, + 817, + 112, + 984, + 545, + 654, + 773, + 700, + 312, + 651, + 154, + 297, + 224, + 639, + 16, + 411, + 440, + 225, + 825, + 972, + 709, + 355, + 903, + 846, + 10, + 353, + 449, + 498, + 782, + 803, + 106, + 85, + 810, + 528, + 58, + 194, + 514, + 488, + 289, + 789, + 424, + 889, + 1014, + 877, + 417, + 4, + 691, + 597, + 81, + 412, + 401, + 635, + 331, + 199, + 115, + 341, + 743, + 447, + 288, + 965, + 950, + 21, + 507, + 399, + 519, + 414, + 953, + 403, + 834, + 619, + 486, + 379, + 347, + 969, + 974, + 952, + 568, + 30, + 337, + 882, + 722, + 955, + 506, + 831, + 359, + 418, + 454, + 105, + 516, + 157, + 109, + 940, + 228, + 95, + 145, + 642, + 543, + 787, + 124, + 243, + 996, + 1007, + 464, + 571, + 721, + 921, + 745, + 340, + 710, + 634, + 253, + 947, + 838, + 986, + 520, + 442, + 841, + 429, + 948, + 126, + 605, + 744, + 922, + 181, + 1004, + 958, + 544, + 192, + 1016, + 75, + 430, + 247, + 238, + 649, + 800, + 600, + 103, + 76, + 352, + 827, + 296, + 606, + 369, + 441, + 842, + 848, + 357, + 406, + 670, + 416, + 293, + 677, + 973, + 910, + 264, + 434, + 196, + 113, + 149, + 515, + 939, + 808, + 131, + 871, + 720, + 478, + 586, + 936, + 906, + 432, + 724, + 822, + 160, + 933, + 62, + 561, + 633, + 824, + 407, + 226, + 33, + 248, + 680, + 804, + 740, + 208, + 167, + 214, + 476, + 233, + 302, + 292, + 220, + 6, + 750, + 189, + 503, + 90, + 91, + 914, + 937, + 93, + 187, + 366, + 951, + 373, + 18, + 695, + 203, + 310, + 625, + 398, + 339, + 241, + 556, + 570, + 812, + 944, + 14, + 562, + 327, + 667, + 303, + 100, + 173, + 623, + 860, + 781, + 283, + 924, + 1000, + 180, + 899, + 767, + 523, + 125, + 316, + 564, + 1, + 536, + 726, + 786, + 930, + 168, + 546, + 360, + 957, + 741, + 935, + 971, + 332, + 481, + 703, + 136, + 445, + 162, + 590, + 111, + 38, + 326, + 190, + 342, + 72, + 541, + 487, + 524, + 278, + 764, + 174, + 646, + 757, + 946, + 270, + 102, + 761, + 141, + 799, + 28, + 919, + 601, + 86, + 183, + 47, + 675, + 885, + 956, + 836, + 218, + 335, + 307, + 317, + 37, + 596, + 120, + 648, + 1003, + 702, + 291, + 96, + 839, + 943, + 807, + 9, + 32, + 828, + 732, + 542, + 36, + 908, + 855, + 279, + 538, + 768, + 754, + 587, + 987, + 142, + 598, + 287, + 678, + 880, + 589, + 71, + 370, + 469, + 473, + 553, + 143, + 427, + 404, + 391, + 286, + 869, + 928, + 621, + 462, + 338, + 133, + 52, + 525, + 857, + 334, + 477, + 41, + 423, + 615, + 459, + 784, + 508, + 826, + 815, + 567, + 79, + 656, + 261, + 329, + 219, + 620, + 415, + 636, + 832, + 756, + 27, + 425, + 663, + 309, + 734, + 867, + 497, + 169, + 659, + 932, + 452, + 193, + 475, + 118, + 495, + 176, + 161, + 275, + 44, + 992, + 466, + 1001, + 989, + 428, + 212, + 668, + 8, + 792, + 381, + 696, + 467, + 911, + 172, + 22, + 153, + 660, + 13, + 613, + 849, + 319, + 74, + 299, + 758, + 276, + 833, + 387, + 19, + 993, + 376, + 368, + 594, + 708, + 684, + 727, + 130, + 693, + 237, + 402, + 595, + 728, + 107, + 114, + 540, + 256, + 345, + 83, + 156, + 669, + 210, + 731, + 150, + 627, + 419, + 1024, + 51, + 491, + 672, + 874, + 762, + 797, + 844, + 585, + 938, + 980, + 901, + 273, + 470, + 554, + 121, + 671, + 60, + 915, + 351, + 909, + 61, + 321, + 479, + 284, + 492, + 674, + 765, + 178, + 875, + 348, + 661, + 234, + 249, + 723, + 1020, + 259, + 629, + 236, + 117, + 305, + 673, + 582, + 422, + 611, + 861, + 483, + 413, + 377, + 97, + 999 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 194, + "any_repeated_entity_fraction": 0.2526041666666667, + "answer_equals_preceding_entity_n": 84, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 184, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 3, + 0, + 6, + 3, + 0, + 3, + 0, + 3, + 4, + 0, + 7, + 10, + 0, + 3, + 0, + 6, + 0, + 5, + 3, + 0, + 6, + 4, + 0, + 0, + 4, + 7, + 2, + 4, + 3, + 2, + 5, + 0, + 4, + 6, + 1, + 0, + 7, + 6, + 3, + 3, + 6, + 6, + 6, + 4, + 0, + 1, + 3, + 3, + 0, + 0, + 5, + 6, + 4, + 0, + 1, + 1, + 0, + 0, + 0, + 4, + 6, + 7, + 0, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 1, + 3, + 4, + 0, + 3, + 1, + 0, + 4, + 3, + 0, + 0, + 0, + 6, + 6, + 10, + 0, + 5, + 6, + 5, + 5, + 0, + 4, + 5, + 5, + 5, + 1, + 5, + 4, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 3, + 3, + 4, + 4, + 4, + 3, + 6, + 1, + 0, + 4, + 7, + 5, + 6, + 2, + 4, + 0, + 0, + 5, + 1, + 0, + 3, + 0, + 4, + 6, + 3, + 1, + 0, + 4, + 5, + 1, + 2, + 7, + 0, + 0, + 3, + 6, + 1, + 3, + 4, + 0, + 0, + 4, + 2, + 4, + 3, + 0, + 2, + 6, + 5, + 4, + 4, + 7, + 0, + 1, + 1, + 0, + 0, + 2, + 2, + 4, + 2, + 4, + 4, + 4, + 0, + 3, + 8, + 1, + 3, + 7, + 0, + 3, + 0, + 0, + 0, + 5, + 5, + 3, + 5, + 0, + 6, + 9, + 11, + 0, + 0, + 2, + 1, + 7, + 0, + 0, + 2, + 2, + 6, + 6, + 3, + 5, + 7, + 3, + 3, + 0, + 5, + 5, + 5, + 7, + 3, + 0, + 2, + 3, + 5, + 8, + 0, + 8, + 7, + 0, + 3, + 7, + 0, + 4, + 3, + 6, + 0, + 4, + 0, + 3, + 0, + 0, + 3, + 7, + 3, + 8, + 3, + 4, + 1, + 0, + 3, + 2, + 2, + 3, + 0, + 4, + 2, + 4, + 0, + 4, + 8, + 8, + 8, + 3, + 5 + ], + "id_count_min": 0, + "id_count_max": 11 + }, + { + "hop": 2, + "id_edges_covered": 173, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 4, + 0, + 9, + 7, + 6, + 2, + 0, + 5, + 0, + 7, + 3, + 0, + 4, + 3, + 0, + 0, + 6, + 7, + 1, + 1, + 0, + 2, + 9, + 0, + 4, + 6, + 4, + 0, + 5, + 7, + 1, + 3, + 3, + 3, + 2, + 3, + 0, + 1, + 2, + 2, + 0, + 0, + 14, + 9, + 6, + 0, + 1, + 0, + 0, + 0, + 0, + 5, + 4, + 2, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 2, + 0, + 5, + 3, + 0, + 13, + 5, + 0, + 0, + 4, + 10, + 9, + 15, + 0, + 3, + 4, + 2, + 2, + 0, + 8, + 5, + 3, + 1, + 2, + 4, + 5, + 3, + 0, + 1, + 5, + 8, + 0, + 8, + 4, + 0, + 1, + 0, + 1, + 6, + 3, + 2, + 0, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 0, + 7, + 5, + 0, + 3, + 0, + 3, + 5, + 3, + 4, + 0, + 2, + 4, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 1, + 0, + 3, + 8, + 3, + 5, + 0, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 8, + 6, + 0, + 0, + 3, + 1, + 4, + 0, + 1, + 1, + 4, + 0, + 9, + 14, + 0, + 10, + 3, + 0, + 3, + 0, + 0, + 0, + 9, + 2, + 1, + 6, + 0, + 2, + 2, + 5, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 4, + 5, + 6, + 12, + 8, + 9, + 9, + 2, + 6, + 0, + 7, + 1, + 5, + 5, + 3, + 0, + 4, + 11, + 12, + 1, + 0, + 2, + 5, + 0, + 1, + 0, + 0, + 5, + 2, + 8, + 0, + 11, + 0, + 5, + 0, + 0, + 8, + 8, + 7, + 6, + 5, + 1, + 2, + 0, + 4, + 3, + 4, + 7, + 0, + 7, + 7, + 0, + 0, + 3, + 3, + 7, + 10, + 9, + 12 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 172, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 4, + 0, + 5, + 2, + 0, + 1, + 0, + 3, + 2, + 0, + 6, + 4, + 3, + 2, + 0, + 9, + 0, + 12, + 6, + 0, + 6, + 3, + 0, + 0, + 7, + 15, + 1, + 0, + 2, + 1, + 7, + 0, + 5, + 5, + 13, + 0, + 8, + 13, + 2, + 3, + 2, + 1, + 1, + 2, + 0, + 1, + 2, + 1, + 0, + 0, + 5, + 7, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 3, + 0, + 8, + 2, + 0, + 10, + 3, + 0, + 0, + 2, + 10, + 11, + 3, + 0, + 5, + 8, + 4, + 4, + 0, + 5, + 4, + 5, + 3, + 0, + 1, + 2, + 0, + 0, + 1, + 4, + 4, + 0, + 9, + 8, + 2, + 1, + 3, + 2, + 2, + 1, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 7, + 5, + 5, + 0, + 5, + 11, + 1, + 4, + 2, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 3, + 2, + 4, + 4, + 4, + 3, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 11, + 12, + 0, + 0, + 4, + 5, + 6, + 0, + 4, + 5, + 5, + 0, + 7, + 12, + 6, + 10, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 5, + 5, + 4, + 0, + 2, + 1, + 5, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 5, + 5, + 5, + 12, + 8, + 7, + 4, + 4, + 7, + 0, + 6, + 4, + 6, + 6, + 3, + 0, + 10, + 6, + 13, + 4, + 0, + 3, + 2, + 0, + 4, + 3, + 0, + 1, + 2, + 2, + 0, + 12, + 0, + 3, + 0, + 0, + 5, + 3, + 2, + 10, + 4, + 6, + 5, + 0, + 1, + 0, + 1, + 6, + 0, + 9, + 4, + 5, + 0, + 2, + 3, + 8, + 7, + 5, + 9 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 4, + "id_edges_covered": 169, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 0, + 2, + 0, + 5, + 9, + 2, + 5, + 0, + 6, + 0, + 4, + 3, + 0, + 0, + 2, + 0, + 0, + 10, + 5, + 0, + 3, + 2, + 0, + 5, + 0, + 6, + 9, + 15, + 0, + 12, + 9, + 1, + 1, + 0, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 6, + 6, + 5, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 1, + 0, + 5, + 6, + 0, + 8, + 8, + 0, + 5, + 6, + 0, + 0, + 6, + 14, + 8, + 5, + 0, + 6, + 2, + 5, + 7, + 0, + 7, + 3, + 8, + 1, + 4, + 1, + 1, + 3, + 0, + 5, + 2, + 6, + 0, + 9, + 8, + 1, + 1, + 1, + 1, + 1, + 4, + 4, + 0, + 1, + 0, + 3, + 1, + 2, + 2, + 0, + 0, + 1, + 4, + 0, + 2, + 0, + 5, + 2, + 4, + 5, + 0, + 6, + 8, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 1, + 2, + 5, + 2, + 6, + 6, + 0, + 0, + 2, + 2, + 0, + 0, + 0, + 0, + 14, + 11, + 0, + 0, + 5, + 5, + 5, + 3, + 2, + 4, + 2, + 0, + 7, + 9, + 7, + 6, + 3, + 0, + 5, + 0, + 0, + 0, + 2, + 5, + 5, + 1, + 0, + 4, + 2, + 1, + 0, + 0, + 6, + 5, + 8, + 0, + 0, + 10, + 2, + 4, + 9, + 10, + 14, + 11, + 7, + 2, + 0, + 5, + 2, + 2, + 2, + 8, + 0, + 8, + 9, + 8, + 2, + 0, + 4, + 4, + 0, + 2, + 2, + 0, + 1, + 1, + 0, + 0, + 9, + 0, + 3, + 0, + 0, + 6, + 7, + 2, + 11, + 5, + 6, + 6, + 0, + 2, + 3, + 0, + 1, + 0, + 6, + 6, + 6, + 0, + 4, + 2, + 5, + 4, + 5, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + } + ] + }, + "test_composite": { + "n": 512, + "any_repeated_entity_n": 116, + "any_repeated_entity_fraction": 0.2265625, + "answer_equals_preceding_entity_n": 54, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 174, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 1, + 2, + 1, + 6, + 0, + 3, + 4, + 0, + 3, + 2, + 5, + 0, + 0, + 4, + 0, + 1, + 2, + 0, + 4, + 2, + 0, + 0, + 3, + 3, + 3, + 0, + 3, + 5, + 4, + 0, + 5, + 2, + 2, + 0, + 2, + 3, + 2, + 3, + 4, + 6, + 3, + 2, + 0, + 5, + 1, + 1, + 0, + 0, + 2, + 5, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 4, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 4, + 1, + 3, + 1, + 0, + 2, + 2, + 0, + 3, + 2, + 0, + 0, + 2, + 6, + 4, + 3, + 0, + 2, + 5, + 2, + 3, + 0, + 4, + 7, + 4, + 1, + 3, + 2, + 3, + 3, + 0, + 1, + 2, + 2, + 0, + 5, + 5, + 5, + 5, + 6, + 0, + 5, + 3, + 1, + 0, + 3, + 5, + 6, + 2, + 3, + 1, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 5, + 4, + 3, + 0, + 5, + 5, + 3, + 5, + 1, + 0, + 0, + 1, + 5, + 1, + 2, + 3, + 2, + 0, + 1, + 5, + 3, + 3, + 0, + 3, + 2, + 1, + 4, + 2, + 4, + 0, + 10, + 3, + 0, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 0, + 0, + 3, + 3, + 4, + 2, + 0, + 1, + 0, + 0, + 0, + 4, + 1, + 0, + 1, + 0, + 4, + 7, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 3, + 3, + 2, + 2, + 3, + 1, + 2, + 0, + 3, + 0, + 7, + 4, + 2, + 3, + 1, + 0, + 4, + 2, + 2, + 3, + 0, + 4, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 3, + 4, + 5, + 4, + 0, + 5, + 0, + 2, + 1, + 1, + 3, + 0, + 4, + 3, + 7, + 0, + 0, + 2, + 1, + 2, + 0, + 2 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 2, + "id_edges_covered": 155, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 2, + 2, + 0, + 4, + 7, + 2, + 2, + 0, + 7, + 0, + 7, + 2, + 0, + 2, + 1, + 0, + 0, + 6, + 3, + 0, + 2, + 0, + 1, + 5, + 0, + 5, + 2, + 3, + 0, + 7, + 13, + 2, + 2, + 2, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 9, + 9, + 3, + 0, + 1, + 2, + 0, + 0, + 0, + 3, + 2, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 3, + 0, + 0, + 5, + 1, + 0, + 6, + 1, + 0, + 0, + 0, + 5, + 7, + 6, + 0, + 0, + 2, + 4, + 1, + 0, + 2, + 3, + 7, + 2, + 4, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 0, + 2, + 7, + 2, + 1, + 2, + 0, + 3, + 0, + 7, + 0, + 2, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 4, + 2, + 0, + 7, + 0, + 2, + 3, + 0, + 5, + 0, + 3, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 1, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 12, + 2, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 1, + 3, + 0, + 1, + 3, + 2, + 7, + 3, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 2, + 1, + 4, + 0, + 0, + 3, + 7, + 2, + 10, + 12, + 3, + 7, + 2, + 0, + 0, + 4, + 4, + 2, + 3, + 1, + 0, + 5, + 2, + 6, + 2, + 0, + 3, + 1, + 0, + 2, + 2, + 0, + 4, + 6, + 3, + 0, + 6, + 0, + 5, + 0, + 0, + 4, + 6, + 4, + 3, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 2, + 0, + 4, + 4, + 4, + 0, + 2, + 5, + 6, + 9, + 3, + 2 + ], + "id_count_min": 0, + "id_count_max": 13 + }, + { + "hop": 3, + "id_edges_covered": 156, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 2, + 3, + 5, + 0, + 2, + 0, + 0, + 4, + 3, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 0, + 0, + 0, + 7, + 9, + 0, + 2, + 0, + 1, + 4, + 0, + 6, + 3, + 8, + 0, + 6, + 9, + 0, + 1, + 2, + 3, + 3, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 7, + 4, + 3, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 5, + 1, + 0, + 4, + 4, + 0, + 0, + 5, + 4, + 3, + 4, + 0, + 5, + 4, + 2, + 4, + 0, + 4, + 2, + 6, + 1, + 1, + 3, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 7, + 4, + 1, + 0, + 0, + 1, + 3, + 2, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 2, + 0, + 0, + 5, + 1, + 0, + 2, + 0, + 3, + 7, + 3, + 6, + 0, + 4, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 6, + 1, + 2, + 4, + 4, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 5, + 3, + 0, + 0, + 2, + 2, + 3, + 2, + 3, + 1, + 5, + 0, + 4, + 9, + 2, + 6, + 6, + 0, + 4, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 5, + 2, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 2, + 2, + 8, + 3, + 5, + 4, + 3, + 5, + 0, + 2, + 3, + 4, + 3, + 3, + 0, + 9, + 6, + 10, + 1, + 0, + 1, + 2, + 0, + 0, + 1, + 0, + 1, + 1, + 2, + 0, + 6, + 0, + 0, + 0, + 0, + 8, + 6, + 6, + 3, + 2, + 2, + 5, + 0, + 0, + 2, + 0, + 3, + 0, + 5, + 2, + 2, + 0, + 1, + 2, + 5, + 6, + 6, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 4, + "id_edges_covered": 164, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 2, + 0, + 3, + 2, + 6, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 4, + 5, + 2, + 1, + 1, + 1, + 2, + 0, + 5, + 3, + 4, + 0, + 4, + 10, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 2, + 1, + 1, + 0, + 0, + 2, + 4, + 4, + 0, + 0, + 2, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 0, + 0, + 0, + 0, + 0, + 4, + 0, + 2, + 0, + 6, + 1, + 0, + 6, + 2, + 0, + 0, + 7, + 4, + 8, + 9, + 0, + 4, + 6, + 1, + 3, + 0, + 4, + 3, + 4, + 3, + 1, + 0, + 1, + 5, + 0, + 3, + 1, + 5, + 0, + 4, + 7, + 1, + 1, + 0, + 2, + 1, + 3, + 1, + 0, + 1, + 2, + 2, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 2, + 5, + 4, + 7, + 0, + 3, + 3, + 2, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 4, + 2, + 2, + 1, + 3, + 5, + 2, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 8, + 0, + 0, + 0, + 2, + 4, + 3, + 2, + 2, + 4, + 0, + 5, + 1, + 9, + 9, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 2, + 0, + 0, + 2, + 3, + 6, + 9, + 4, + 7, + 2, + 6, + 4, + 0, + 5, + 1, + 2, + 1, + 0, + 0, + 7, + 5, + 5, + 0, + 0, + 0, + 0, + 0, + 5, + 1, + 0, + 4, + 3, + 1, + 0, + 2, + 0, + 3, + 0, + 0, + 3, + 2, + 1, + 5, + 4, + 6, + 4, + 0, + 0, + 0, + 2, + 5, + 0, + 3, + 4, + 3, + 0, + 2, + 3, + 6, + 3, + 5, + 1 + ], + "id_count_min": 0, + "id_count_max": 10 + } + ] + }, + "test_full_composite": { + "n": 1025, + "any_repeated_entity_n": 243, + "any_repeated_entity_fraction": 0.2370731707317073, + "answer_equals_preceding_entity_n": 116, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 187, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 5, + 0, + 5, + 0, + 2, + 4, + 2, + 12, + 0, + 6, + 5, + 0, + 8, + 8, + 8, + 3, + 0, + 8, + 0, + 2, + 4, + 0, + 9, + 3, + 0, + 0, + 5, + 5, + 4, + 0, + 5, + 7, + 6, + 0, + 11, + 5, + 3, + 0, + 5, + 6, + 4, + 3, + 7, + 11, + 4, + 5, + 0, + 7, + 3, + 4, + 0, + 0, + 7, + 10, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 6, + 6, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 7, + 1, + 9, + 3, + 0, + 4, + 4, + 0, + 5, + 5, + 0, + 0, + 3, + 8, + 6, + 6, + 0, + 3, + 10, + 7, + 5, + 0, + 6, + 10, + 7, + 2, + 8, + 4, + 6, + 6, + 0, + 5, + 9, + 6, + 0, + 6, + 8, + 7, + 6, + 10, + 0, + 10, + 6, + 5, + 0, + 7, + 8, + 6, + 5, + 5, + 2, + 0, + 0, + 5, + 5, + 0, + 4, + 0, + 5, + 11, + 7, + 12, + 0, + 5, + 14, + 4, + 8, + 6, + 0, + 2, + 5, + 6, + 3, + 2, + 4, + 4, + 0, + 2, + 13, + 3, + 7, + 0, + 6, + 3, + 4, + 9, + 5, + 7, + 0, + 13, + 5, + 0, + 0, + 6, + 0, + 7, + 3, + 3, + 7, + 5, + 0, + 3, + 7, + 4, + 6, + 4, + 0, + 4, + 0, + 0, + 0, + 5, + 4, + 1, + 3, + 0, + 6, + 12, + 5, + 0, + 0, + 4, + 1, + 3, + 0, + 0, + 5, + 9, + 3, + 5, + 6, + 2, + 6, + 1, + 4, + 0, + 9, + 6, + 4, + 5, + 2, + 0, + 7, + 6, + 7, + 6, + 0, + 9, + 4, + 0, + 3, + 6, + 0, + 6, + 6, + 2, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 8, + 6, + 7, + 5, + 1, + 6, + 0, + 2, + 2, + 9, + 4, + 0, + 11, + 4, + 14, + 0, + 0, + 3, + 7, + 5, + 2, + 6 + ], + "id_count_min": 0, + "id_count_max": 14 + }, + { + "hop": 2, + "id_edges_covered": 179, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 3, + 0, + 1, + 2, + 1, + 2, + 0, + 5, + 3, + 0, + 10, + 10, + 5, + 4, + 0, + 13, + 0, + 12, + 2, + 0, + 4, + 2, + 0, + 0, + 11, + 9, + 1, + 2, + 0, + 2, + 10, + 0, + 7, + 5, + 9, + 0, + 9, + 21, + 4, + 3, + 3, + 6, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 12, + 19, + 8, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 4, + 3, + 0, + 0, + 5, + 0, + 0, + 0, + 0, + 3, + 0, + 4, + 2, + 0, + 10, + 2, + 0, + 11, + 3, + 0, + 0, + 4, + 10, + 11, + 10, + 0, + 2, + 6, + 7, + 2, + 0, + 7, + 7, + 12, + 2, + 5, + 2, + 2, + 3, + 0, + 3, + 2, + 2, + 0, + 5, + 13, + 5, + 2, + 4, + 2, + 4, + 3, + 10, + 0, + 5, + 0, + 3, + 3, + 3, + 2, + 0, + 0, + 17, + 4, + 0, + 11, + 0, + 4, + 4, + 3, + 6, + 0, + 8, + 7, + 4, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 4, + 2, + 4, + 5, + 1, + 8, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 20, + 5, + 0, + 0, + 2, + 2, + 5, + 1, + 2, + 2, + 6, + 0, + 8, + 7, + 3, + 12, + 7, + 0, + 7, + 0, + 0, + 0, + 3, + 4, + 3, + 4, + 0, + 7, + 4, + 1, + 0, + 0, + 2, + 4, + 6, + 0, + 0, + 3, + 9, + 3, + 15, + 28, + 5, + 20, + 4, + 1, + 0, + 8, + 6, + 3, + 6, + 3, + 0, + 14, + 7, + 10, + 6, + 0, + 9, + 3, + 0, + 3, + 4, + 0, + 9, + 9, + 5, + 0, + 15, + 0, + 11, + 0, + 0, + 8, + 10, + 9, + 7, + 2, + 3, + 5, + 0, + 5, + 4, + 1, + 7, + 0, + 9, + 4, + 6, + 0, + 2, + 6, + 14, + 12, + 13, + 5 + ], + "id_count_min": 0, + "id_count_max": 28 + }, + { + "hop": 3, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 3, + 0, + 8, + 5, + 4, + 11, + 0, + 5, + 2, + 0, + 9, + 12, + 6, + 3, + 0, + 5, + 0, + 8, + 5, + 0, + 1, + 1, + 0, + 0, + 14, + 13, + 0, + 2, + 2, + 2, + 6, + 0, + 10, + 9, + 14, + 0, + 14, + 17, + 1, + 1, + 2, + 3, + 4, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 13, + 9, + 8, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 5, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 2, + 0, + 8, + 4, + 0, + 10, + 7, + 0, + 0, + 7, + 8, + 6, + 11, + 0, + 8, + 9, + 5, + 7, + 0, + 10, + 5, + 12, + 3, + 2, + 4, + 0, + 6, + 0, + 1, + 3, + 4, + 0, + 10, + 10, + 1, + 0, + 3, + 1, + 3, + 6, + 2, + 0, + 0, + 3, + 2, + 2, + 1, + 3, + 0, + 0, + 8, + 2, + 0, + 3, + 0, + 12, + 13, + 6, + 10, + 0, + 7, + 4, + 2, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 2, + 6, + 1, + 4, + 5, + 5, + 5, + 10, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 14, + 4, + 0, + 0, + 3, + 5, + 7, + 5, + 8, + 2, + 8, + 0, + 11, + 15, + 4, + 11, + 8, + 0, + 9, + 0, + 0, + 0, + 5, + 3, + 1, + 2, + 0, + 1, + 7, + 6, + 0, + 0, + 5, + 2, + 7, + 0, + 0, + 5, + 7, + 5, + 14, + 9, + 11, + 10, + 5, + 10, + 0, + 8, + 6, + 7, + 5, + 4, + 0, + 19, + 14, + 16, + 1, + 0, + 1, + 4, + 0, + 2, + 4, + 0, + 3, + 4, + 3, + 0, + 10, + 0, + 3, + 0, + 0, + 10, + 8, + 10, + 4, + 6, + 6, + 12, + 0, + 0, + 2, + 0, + 6, + 0, + 10, + 2, + 6, + 0, + 1, + 6, + 10, + 11, + 9, + 7 + ], + "id_count_min": 0, + "id_count_max": 19 + }, + { + "hop": 4, + "id_edges_covered": 181, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 1, + 0, + 4, + 0, + 1, + 4, + 0, + 1, + 2, + 0, + 8, + 6, + 10, + 8, + 0, + 10, + 0, + 8, + 1, + 0, + 2, + 4, + 0, + 0, + 7, + 8, + 3, + 1, + 1, + 3, + 5, + 0, + 11, + 7, + 10, + 0, + 11, + 17, + 1, + 1, + 1, + 1, + 1, + 4, + 0, + 5, + 1, + 2, + 0, + 0, + 7, + 11, + 6, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 1, + 2, + 0, + 0, + 6, + 0, + 0, + 0, + 0, + 1, + 6, + 2, + 3, + 0, + 14, + 11, + 0, + 11, + 6, + 0, + 0, + 10, + 7, + 12, + 12, + 0, + 5, + 10, + 6, + 4, + 0, + 9, + 8, + 8, + 5, + 1, + 0, + 1, + 6, + 0, + 5, + 4, + 14, + 0, + 12, + 12, + 1, + 1, + 1, + 2, + 5, + 6, + 2, + 0, + 2, + 4, + 3, + 1, + 3, + 1, + 0, + 0, + 3, + 4, + 0, + 4, + 0, + 5, + 12, + 7, + 14, + 0, + 8, + 5, + 5, + 3, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 4, + 5, + 3, + 4, + 10, + 7, + 3, + 0, + 4, + 1, + 3, + 0, + 0, + 0, + 0, + 9, + 15, + 0, + 0, + 3, + 4, + 5, + 5, + 6, + 4, + 7, + 0, + 8, + 8, + 12, + 14, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 7, + 6, + 0, + 4, + 3, + 2, + 0, + 0, + 9, + 6, + 5, + 0, + 0, + 2, + 4, + 8, + 16, + 10, + 15, + 9, + 10, + 8, + 0, + 9, + 3, + 3, + 2, + 1, + 0, + 14, + 9, + 10, + 2, + 0, + 0, + 2, + 0, + 6, + 5, + 0, + 5, + 3, + 2, + 0, + 5, + 0, + 4, + 0, + 0, + 7, + 5, + 9, + 8, + 7, + 9, + 9, + 0, + 1, + 1, + 2, + 10, + 0, + 4, + 6, + 4, + 0, + 4, + 10, + 9, + 10, + 11, + 10 + ], + "id_count_min": 0, + "id_count_max": 17 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 5, + 0, + 10, + 0, + 14, + 7, + 4, + 6, + 0, + 10, + 12, + 0, + 27, + 30, + 11, + 12, + 0, + 26, + 0, + 28, + 15, + 0, + 16, + 12, + 0, + 0, + 27, + 34, + 4, + 8, + 7, + 5, + 26, + 0, + 19, + 26, + 33, + 0, + 32, + 35, + 7, + 10, + 11, + 10, + 13, + 12, + 0, + 5, + 9, + 6, + 0, + 0, + 30, + 28, + 17, + 0, + 5, + 4, + 0, + 0, + 0, + 13, + 12, + 9, + 0, + 0, + 6, + 0, + 10, + 0, + 0, + 7, + 4, + 11, + 15, + 0, + 24, + 14, + 0, + 32, + 17, + 0, + 0, + 12, + 40, + 34, + 33, + 0, + 19, + 20, + 16, + 18, + 0, + 24, + 17, + 21, + 10, + 7, + 11, + 12, + 10, + 0, + 7, + 13, + 20, + 0, + 30, + 23, + 6, + 7, + 8, + 8, + 12, + 14, + 9, + 0, + 7, + 9, + 10, + 9, + 5, + 11, + 0, + 0, + 15, + 12, + 0, + 10, + 0, + 15, + 20, + 15, + 15, + 0, + 17, + 28, + 2, + 8, + 12, + 0, + 0, + 3, + 6, + 1, + 14, + 14, + 5, + 4, + 16, + 16, + 17, + 17, + 0, + 3, + 10, + 9, + 4, + 4, + 7, + 0, + 34, + 30, + 0, + 0, + 14, + 13, + 19, + 5, + 11, + 14, + 15, + 0, + 26, + 43, + 14, + 29, + 17, + 0, + 12, + 0, + 0, + 0, + 17, + 17, + 14, + 16, + 0, + 14, + 14, + 22, + 0, + 0, + 11, + 8, + 22, + 0, + 0, + 21, + 14, + 21, + 39, + 29, + 35, + 31, + 16, + 18, + 0, + 23, + 12, + 18, + 20, + 17, + 0, + 24, + 29, + 38, + 15, + 0, + 17, + 18, + 0, + 10, + 12, + 0, + 11, + 8, + 16, + 0, + 36, + 0, + 14, + 0, + 0, + 22, + 25, + 14, + 35, + 17, + 17, + 14, + 0, + 10, + 8, + 7, + 17, + 0, + 26, + 19, + 15, + 0, + 13, + 16, + 28, + 29, + 22, + 32 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 184, + 173, + 172, + 169 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 37, + "fraction": 0.048177083333333336, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.048177083333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10286458333333333, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10286458333333333, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 7, + 67, + 67, + 69, + 66, + 59 + ], + [ + 46, + 68, + 66, + 69, + 66, + 44 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.17447916666666666, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.17447916666666666, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 56, + 67, + 69, + 66, + 66, + 43 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.2643229166666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.2643229166666667, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 31, + 68, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 246, + "empirical_modal_target_fraction": 0.421875, + "single_target_group_query_fraction": 0.06380208333333333, + "singleton_group_query_fraction": 0.045572916666666664, + "multi_query_groups": 211, + "multi_query_coverage_fraction": 0.9544270833333334, + "multi_query_empirical_modal_target_fraction": 0.3942701227830832, + "multi_target_groups": 204, + "same_suffix_different_target_example": [ + [ + 28, + 66, + 66, + 66, + 66, + 60 + ], + [ + 39, + 66, + 66, + 66, + 66, + 32 + ] + ] + } + ] + }, + "test_composite": { + "n": 512, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 512, + "any_relevant_fact_in_composite_training_n": 512, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 512, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 174, + 155, + 156, + 164 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 20, + "fraction": 0.0390625, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.0390625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.091796875, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.091796875, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 49, + 66, + 67, + 67, + 66, + 63 + ], + [ + 39, + 68, + 66, + 69, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.15625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.15625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 9, + 67, + 69, + 66, + 66, + 34 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.279296875, + "single_target_group_query_fraction": 0.001953125, + "singleton_group_query_fraction": 0.001953125, + "multi_query_groups": 63, + "multi_query_coverage_fraction": 0.998046875, + "multi_query_empirical_modal_target_fraction": 0.27788649706457924, + "multi_target_groups": 63, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 13, + 67, + 66, + 66, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 217, + "empirical_modal_target_fraction": 0.490234375, + "single_target_group_query_fraction": 0.138671875, + "singleton_group_query_fraction": 0.115234375, + "multi_query_groups": 158, + "multi_query_coverage_fraction": 0.884765625, + "multi_query_empirical_modal_target_fraction": 0.423841059602649, + "multi_target_groups": 152, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 68, + 65 + ], + [ + 12, + 66, + 66, + 66, + 68, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 1025, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 1023, + "any_relevant_fact_in_composite_training_n": 1025, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9995121951219512, + "all_id_queries": 1025, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 187, + 179, + 177, + 181 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 44, + "fraction": 0.042926829268292686, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.042926829268292686, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08195121951219513, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08195121951219513, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 69, + 66, + 25 + ], + [ + 2, + 67, + 68, + 67, + 66, + 57 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14146341463414633, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14146341463414633, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 67, + 66, + 66, + 53 + ], + [ + 4, + 68, + 66, + 66, + 66, + 60 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.24, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.24, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 4, + 68, + 66, + 66, + 66, + 60 + ], + [ + 6, + 66, + 66, + 66, + 66, + 36 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 249, + "empirical_modal_target_fraction": 0.3648780487804878, + "single_target_group_query_fraction": 0.02048780487804878, + "singleton_group_query_fraction": 0.014634146341463415, + "multi_query_groups": 234, + "multi_query_coverage_fraction": 0.9853658536585366, + "multi_query_empirical_modal_target_fraction": 0.35544554455445543, + "multi_target_groups": 231, + "same_suffix_different_target_example": [ + [ + 6, + 66, + 66, + 66, + 66, + 36 + ], + [ + 43, + 66, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "ood_composite": { + "n": 53, + "unique_relevant_atomic_facts": 48, + "relevant_atomic_fact_coverage_of_graph": 0.1875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 53, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 35, + 27, + 24, + 26 + ], + "within_split_majority_tail": { + "target_token": 54, + "count": 7, + "fraction": 0.1320754716981132, + "distinct_targets": 22 + }, + "train_composite_majority_tail_fraction": 0.018867924528301886, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.32075471698113206, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.32075471698113206, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 69, + 68, + 66, + 60 + ], + [ + 7, + 68, + 68, + 69, + 66, + 65 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.6981132075471698, + "single_target_group_query_fraction": 0.18867924528301888, + "singleton_group_query_fraction": 0.05660377358490566, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.9433962264150944, + "multi_query_empirical_modal_target_fraction": 0.68, + "multi_target_groups": 9, + "same_suffix_different_target_example": [ + [ + 8, + 67, + 69, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 32, + "empirical_modal_target_fraction": 0.9056603773584906, + "single_target_group_query_fraction": 0.7169811320754716, + "singleton_group_query_fraction": 0.37735849056603776, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.6226415094339622, + "multi_query_empirical_modal_target_fraction": 0.8484848484848485, + "multi_target_groups": 5, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 47, + "empirical_modal_target_fraction": 0.9622641509433962, + "single_target_group_query_fraction": 0.9056603773584906, + "singleton_group_query_fraction": 0.7924528301886793, + "multi_query_groups": 5, + "multi_query_coverage_fraction": 0.20754716981132076, + "multi_query_empirical_modal_target_fraction": 0.8181818181818182, + "multi_target_groups": 2, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + } + ] + }, + "unused_composite": { + "n": 3358, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 3354, + "any_relevant_fact_in_composite_training_n": 3358, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9997022036926743, + "all_id_queries": 3358, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192, + 185, + 185, + 184 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 143, + "fraction": 0.04258487194758785, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03335318642048839, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.09380583680762358, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.09380583680762358, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 67, + 66, + 57 + ], + [ + 2, + 67, + 66, + 68, + 66, + 50 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14502680166765933, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14502680166765933, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 67, + 66, + 66, + 10 + ], + [ + 3, + 69, + 67, + 66, + 66, + 53 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.197736748064324, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.197736748064324, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 67, + 66, + 66, + 66, + 44 + ], + [ + 5, + 66, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 256, + "empirical_modal_target_fraction": 0.25431804645622397, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 256, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25431804645622397, + "multi_target_groups": 256, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 66, + 5 + ], + [ + 7, + 66, + 66, + 66, + 66, + 45 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + } + }, + "same_atomic_and_id_mask_all_lengths": true, + "source_entity_offset": 2, + "entity_offset": 3, + "source_token_shift": 1, + "separator_token": 71, + "vocab_size": 72, + "evaluation_pools": "Complete test_full_composite and ood_composite", + "composition_supervision": "Terminal entity only; no intermediate entity", + "training_objective": "All nonpadding next tokens including EOS", + "holdout": "Complete queries held out within each length; not subpaths across lengths", + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "independent_audit": { + "passed": true, + "counts": { + "atomic": 256, + "train_2": 444, + "familiar_2": 124, + "strict_2": 64, + "train_3": 768, + "familiar_3": 329, + "strict_3": 59, + "train_4": 768, + "familiar_4": 1025, + "strict_4": 53 + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "truth_edges_independently_traversed": true, + "complete_query_overlap": 0, + "all_strict_facts_absent_from_composition_training": true, + "cross_length_subpath_holdout": false + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/audit-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/audit-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..63f9169a0d7a846b9e01c318f5b849f366fe4a6e --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/audit-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "audit", + "gpu": 0, + "returncode": 0, + "seconds": 6.689751606434584 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/audit-process.log b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/audit-process.log new file mode 100644 index 0000000000000000000000000000000000000000..20293d5b17c78e4488100b06d6f015e71e70cc11 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/audit-process.log @@ -0,0 +1 @@ +{"passed": true, "dataset_rebuilt_and_archived_exact": true, "initial_model_exact": true, "checkpoint_nodes": [0, 8000, 32000, 64000], "endpoint_tokens_exact": true, "all_nodes_exposure_counters_exact": true, "stream_state_continuation_exact": true, "max_nll_difference": 0.0, "nll_rtol": 1e-05, "nll_atol": 1e-05, "utc": "2026-10-01T22:56:49.598284+00:00"} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/audit.json b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/audit.json new file mode 100644 index 0000000000000000000000000000000000000000..8689e6666b88e3120df2ba345177f4fa6998759b --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/audit.json @@ -0,0 +1,18 @@ +{ + "passed": true, + "dataset_rebuilt_and_archived_exact": true, + "initial_model_exact": true, + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "endpoint_tokens_exact": true, + "all_nodes_exposure_counters_exact": true, + "stream_state_continuation_exact": true, + "max_nll_difference": 0.0, + "nll_rtol": 1e-05, + "nll_atol": 1e-05, + "utc": "2026-10-01T22:56:49.598284+00:00" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/complete.json b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..c60c65bae3fe58cb1d6a0e5ca89d6c0c97c75fe8 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/complete.json @@ -0,0 +1,204 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 6, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "initial_model_sha256": "ea5e7f48aa9ba17da159de2490bf6f66267893fd8f226a471f0edbdb9761eea1", + "checkpoint_sha256": "1c880ee5cf4bcaded14aba250a1b9c133ee551a5cb544a6e3b9a124c575d80f4", + "finished_utc": "2026-10-01T22:56:42.617354+00:00", + "parameters": 208896, + "strata_counts": { + "atomic": 256, + "train_2": 444, + "train_3": 768, + "train_4": 768 + }, + "endpoint": { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 3.78430777345784e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 4.0418326534563676e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.43548387096774194, + "answer_accuracy": 0.43548387096774194, + "answer_nll": 3.642416000366211, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.43548387096774194, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.421507835388184, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 5.7264696806669235e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.45288753799392095, + "answer_accuracy": 0.45288753799392095, + "answer_nll": 3.7320611476898193, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.45288753799392095, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 11.899250030517578, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 7.165521674323827e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.26634146341463416, + "answer_accuracy": 0.26634146341463416, + "answer_nll": 6.1703619956970215, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.26634146341463416, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.692276954650879, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1728802919387817, + "training_seconds": 101.93848122283816, + "estimated_training_flops": 472312184832000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + }, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000, + "estimated_training_flops": 472312184832000, + "training_seconds": 101.93848122283816, + "process_seconds": 108.93068173900247, + "environment": { + "torch": "2.6.0+cu126", + "numpy": "1.23.5", + "cuda": "12.6", + "gpu": "NVIDIA L20X", + "tf32": true + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/input-spec.json b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/input-spec.json new file mode 100644 index 0000000000000000000000000000000000000000..c87eebc7ea2202d79deecc4fad57a09170925f77 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/input-spec.json @@ -0,0 +1,65 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 6, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/learning.json b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..dd41c74b8f19443e9de5014dc1883e94c02d64f2 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/learning.json @@ -0,0 +1,1162 @@ +[ + { + "step": 0, + "lr": 0.0, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.0, + "answer_accuracy": 0.0078125, + "answer_nll": 4.310755729675293 + }, + "train_2": { + "n": 444, + "accuracy": 0.0, + "answer_accuracy": 0.009009009009009009, + "answer_nll": 4.301599979400635, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.0, + "answer_accuracy": 0.024193548387096774, + "answer_nll": 4.305453777313232, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.33920955657959, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0078125, + "answer_nll": 4.3211846351623535, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.333035945892334, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.323620796203613, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0013020833333333333, + "answer_nll": 4.3147149085998535, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.0, + "answer_accuracy": 0.00878048780487805, + "answer_nll": 4.310116767883301, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.317178249359131, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": null, + "training_seconds": 0.0, + "estimated_training_flops": 0, + "supervised_tokens": 0, + "padded_input_tokens": 0 + }, + { + "step": 256, + "lr": 0.0009999982891312849, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.1015625, + "answer_accuracy": 0.1015625, + "answer_nll": 3.5364394187927246 + }, + "train_2": { + "n": 444, + "accuracy": 0.0990990990990991, + "answer_accuracy": 0.0990990990990991, + "answer_nll": 3.4365837574005127, + "atomic_correct_coverage": 0.05405405405405406, + "conditional_accuracy": 0.7916666666666666, + "autonomous_two_calls": 0.11036036036036036, + "autonomous_path_accuracy": 0.05405405405405406, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.08064516129032258, + "answer_accuracy": 0.08064516129032258, + "answer_nll": 3.4094913005828857, + "atomic_correct_coverage": 0.04838709677419355, + "conditional_accuracy": 0.8333333333333334, + "autonomous_two_calls": 0.08870967741935484, + "autonomous_path_accuracy": 0.04838709677419355, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 4.532770156860352, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.015625, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.08203125, + "answer_accuracy": 0.08203125, + "answer_nll": 3.4261474609375, + "atomic_correct_coverage": 0.024739583333333332, + "conditional_accuracy": 0.8947368421052632, + "autonomous_two_calls": 0.0859375, + "autonomous_path_accuracy": 0.024739583333333332, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.09422492401215805, + "answer_accuracy": 0.09422492401215805, + "answer_nll": 3.496633291244507, + "atomic_correct_coverage": 0.02735562310030395, + "conditional_accuracy": 0.7777777777777778, + "autonomous_two_calls": 0.1033434650455927, + "autonomous_path_accuracy": 0.02735562310030395, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.812765121459961, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.1171875, + "answer_accuracy": 0.1171875, + "answer_nll": 3.412255048751831, + "atomic_correct_coverage": 0.01171875, + "conditional_accuracy": 0.6666666666666666, + "autonomous_two_calls": 0.10026041666666667, + "autonomous_path_accuracy": 0.01171875, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.07902439024390244, + "answer_accuracy": 0.07902439024390244, + "answer_nll": 3.492309093475342, + "atomic_correct_coverage": 0.002926829268292683, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 0.07414634146341463, + "autonomous_path_accuracy": 0.002926829268292683, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.884692668914795, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": 1.9140290021896362, + "training_seconds": 0.40823234617710114, + "estimated_training_flops": 1889248739328, + "supervised_tokens": 212992, + "padded_input_tokens": 262144 + }, + { + "step": 512, + "lr": 0.0009999468942493638, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.41796875, + "answer_accuracy": 0.41796875, + "answer_nll": 2.252588987350464 + }, + "train_2": { + "n": 444, + "accuracy": 0.25675675675675674, + "answer_accuracy": 0.25675675675675674, + "answer_nll": 2.598037004470825, + "atomic_correct_coverage": 0.2747747747747748, + "conditional_accuracy": 0.5245901639344263, + "autonomous_two_calls": 0.30180180180180183, + "autonomous_path_accuracy": 0.2747747747747748, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.08870967741935484, + "answer_accuracy": 0.08870967741935484, + "answer_nll": 3.1918931007385254, + "atomic_correct_coverage": 0.1935483870967742, + "conditional_accuracy": 0.20833333333333334, + "autonomous_two_calls": 0.22580645161290322, + "autonomous_path_accuracy": 0.1935483870967742, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 5.010485649108887, + "atomic_correct_coverage": 0.03125, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.03125, + "autonomous_path_accuracy": 0.03125, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.18880208333333334, + "answer_accuracy": 0.18880208333333334, + "answer_nll": 2.8997154235839844, + "atomic_correct_coverage": 0.13541666666666666, + "conditional_accuracy": 0.3173076923076923, + "autonomous_two_calls": 0.18359375, + "autonomous_path_accuracy": 0.13541666666666666, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.11246200607902736, + "answer_accuracy": 0.11246200607902736, + "answer_nll": 3.259127378463745, + "atomic_correct_coverage": 0.15501519756838905, + "conditional_accuracy": 0.3137254901960784, + "autonomous_two_calls": 0.182370820668693, + "autonomous_path_accuracy": 0.15501519756838905, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 5.558329105377197, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.03389830508474576, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.17447916666666666, + "answer_accuracy": 0.17447916666666666, + "answer_nll": 2.979813575744629, + "atomic_correct_coverage": 0.07552083333333333, + "conditional_accuracy": 0.3793103448275862, + "autonomous_two_calls": 0.13541666666666666, + "autonomous_path_accuracy": 0.07552083333333333, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.09951219512195122, + "answer_accuracy": 0.09951219512195122, + "answer_nll": 3.3482906818389893, + "atomic_correct_coverage": 0.05658536585365854, + "conditional_accuracy": 0.27586206896551724, + "autonomous_two_calls": 0.11219512195121951, + "autonomous_path_accuracy": 0.05658536585365854, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 5.718642711639404, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.018867924528301886, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": 1.7648411989212036, + "training_seconds": 0.8163630776107311, + "estimated_training_flops": 3778497478656, + "supervised_tokens": 425984, + "padded_input_tokens": 524288 + }, + { + "step": 1000, + "lr": 0.0009996508880478938, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.98046875, + "answer_accuracy": 0.98046875, + "answer_nll": 0.3344350755214691 + }, + "train_2": { + "n": 444, + "accuracy": 0.8671171171171171, + "answer_accuracy": 0.8671171171171171, + "answer_nll": 0.5966804027557373, + "atomic_correct_coverage": 0.9617117117117117, + "conditional_accuracy": 0.8688524590163934, + "autonomous_two_calls": 0.9617117117117117, + "autonomous_path_accuracy": 0.9617117117117117, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.21774193548387097, + "answer_accuracy": 0.21774193548387097, + "answer_nll": 2.865935802459717, + "atomic_correct_coverage": 0.967741935483871, + "conditional_accuracy": 0.225, + "autonomous_two_calls": 0.967741935483871, + "autonomous_path_accuracy": 0.967741935483871, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 6.456479072570801, + "atomic_correct_coverage": 0.953125, + "conditional_accuracy": 0.01639344262295082, + "autonomous_two_calls": 0.953125, + "autonomous_path_accuracy": 0.953125, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.5963541666666666, + "answer_accuracy": 0.5963541666666666, + "answer_nll": 1.3144575357437134, + "atomic_correct_coverage": 0.9466145833333334, + "conditional_accuracy": 0.6024759284731774, + "autonomous_two_calls": 0.9466145833333334, + "autonomous_path_accuracy": 0.9466145833333334, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.22796352583586627, + "answer_accuracy": 0.22796352583586627, + "answer_nll": 3.138498544692993, + "atomic_correct_coverage": 0.9574468085106383, + "conditional_accuracy": 0.23174603174603176, + "autonomous_two_calls": 0.9574468085106383, + "autonomous_path_accuracy": 0.9574468085106383, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 6.772446632385254, + "atomic_correct_coverage": 0.8813559322033898, + "conditional_accuracy": 0.038461538461538464, + "autonomous_two_calls": 0.8813559322033898, + "autonomous_path_accuracy": 0.8813559322033898, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.4713541666666667, + "answer_accuracy": 0.4713541666666667, + "answer_nll": 1.701708436012268, + "atomic_correct_coverage": 0.93359375, + "conditional_accuracy": 0.47419804741980476, + "autonomous_two_calls": 0.9348958333333334, + "autonomous_path_accuracy": 0.93359375, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.16682926829268294, + "answer_accuracy": 0.16682926829268294, + "answer_nll": 3.466987371444702, + "atomic_correct_coverage": 0.9190243902439025, + "conditional_accuracy": 0.1740976645435244, + "autonomous_two_calls": 0.9190243902439025, + "autonomous_path_accuracy": 0.9190243902439025, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 6.901362419128418, + "atomic_correct_coverage": 0.8490566037735849, + "conditional_accuracy": 0.022222222222222223, + "autonomous_two_calls": 0.8490566037735849, + "autonomous_path_accuracy": 0.8490566037735849, + "hop_count": 4 + } + }, + "loss": 1.5117676258087158, + "training_seconds": 1.593918815255165, + "estimated_training_flops": 7379877888000, + "supervised_tokens": 832000, + "padded_input_tokens": 1024000 + }, + { + "step": 2000, + "lr": 0.000998233549067816, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.9921875, + "answer_accuracy": 0.9921875, + "answer_nll": 0.039298493415117264 + }, + "train_2": { + "n": 444, + "accuracy": 0.9932432432432432, + "answer_accuracy": 0.9932432432432432, + "answer_nll": 0.0443318672478199, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9932432432432432, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.27419354838709675, + "answer_accuracy": 0.27419354838709675, + "answer_nll": 3.585007667541504, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.27419354838709675, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 8.903437614440918, + "atomic_correct_coverage": 0.953125, + "conditional_accuracy": 0.01639344262295082, + "autonomous_two_calls": 0.953125, + "autonomous_path_accuracy": 0.953125, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.98046875, + "answer_accuracy": 0.98046875, + "answer_nll": 0.08784870058298111, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.98046875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3465045592705167, + "answer_accuracy": 0.3465045592705167, + "answer_nll": 3.4402544498443604, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3465045592705167, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 9.14179801940918, + "atomic_correct_coverage": 0.9152542372881356, + "conditional_accuracy": 0.018518518518518517, + "autonomous_two_calls": 0.9152542372881356, + "autonomous_path_accuracy": 0.9152542372881356, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.98046875, + "answer_accuracy": 0.98046875, + "answer_nll": 0.12775008380413055, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.98046875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.22048780487804878, + "answer_accuracy": 0.22048780487804878, + "answer_nll": 4.69022798538208, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.22048780487804878, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 8.861170768737793, + "atomic_correct_coverage": 0.8867924528301887, + "conditional_accuracy": 0.02127659574468085, + "autonomous_two_calls": 0.8867924528301887, + "autonomous_path_accuracy": 0.8867924528301887, + "hop_count": 4 + } + }, + "loss": 1.2749323844909668, + "training_seconds": 3.1876068860292435, + "estimated_training_flops": 14759755776000, + "supervised_tokens": 1664000, + "padded_input_tokens": 2048000 + }, + { + "step": 4000, + "lr": 0.0009921451014991594, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0027477466501295567 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0028564399108290672, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3548387096774194, + "answer_accuracy": 0.3548387096774194, + "answer_nll": 3.9018564224243164, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3548387096774194, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 9.472274780273438, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.006029999349266291, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3525835866261398, + "answer_accuracy": 0.3525835866261398, + "answer_nll": 4.020298957824707, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3525835866261398, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 10.261129379272461, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.006963261868804693, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.24292682926829268, + "answer_accuracy": 0.24292682926829268, + "answer_nll": 5.541621208190918, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.24292682926829268, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 10.270591735839844, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03773584905660377, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1951062679290771, + "training_seconds": 6.374032653868198, + "estimated_training_flops": 29519511552000, + "supervised_tokens": 3328000, + "padded_input_tokens": 4096000 + }, + { + "step": 8000, + "lr": 0.0009672142859549292, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0009606737876310945 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0010419305181130767, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3467741935483871, + "answer_accuracy": 0.3467741935483871, + "answer_nll": 3.5877184867858887, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3467741935483871, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 10.150182723999023, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.046875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0014771003043279052, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.4072948328267477, + "answer_accuracy": 0.4072948328267477, + "answer_nll": 3.486534357070923, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.4072948328267477, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 10.76089859008789, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0019742611330002546, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.24585365853658536, + "answer_accuracy": 0.24585365853658536, + "answer_nll": 5.564813613891602, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.24585365853658536, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 10.0396728515625, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03773584905660377, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.182352900505066, + "training_seconds": 12.74384918063879, + "estimated_training_flops": 59039023104000, + "supervised_tokens": 6656000, + "padded_input_tokens": 8192000 + }, + { + "step": 16000, + "lr": 0.0008705396215758866, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0006729433662258089 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0008115081582218409, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3951612903225806, + "answer_accuracy": 0.3951612903225806, + "answer_nll": 3.571070432662964, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3951612903225806, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 11.10729694366455, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0014058685628697276, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.48632218844984804, + "answer_accuracy": 0.48632218844984804, + "answer_nll": 3.0448620319366455, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.48632218844984804, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 10.97901725769043, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0019004292553290725, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.26634146341463416, + "answer_accuracy": 0.26634146341463416, + "answer_nll": 5.4360175132751465, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.26634146341463416, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 11.051054000854492, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1798838376998901, + "training_seconds": 25.480454571545124, + "estimated_training_flops": 118078046208000, + "supervised_tokens": 13312000, + "padded_input_tokens": 16384000 + }, + { + "step": 32000, + "lr": 0.0005522158479326845, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.004447115585207939 + }, + "train_2": { + "n": 444, + "accuracy": 0.9887387387387387, + "answer_accuracy": 0.9887387387387387, + "answer_nll": 0.03428872302174568, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9887387387387387, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3870967741935484, + "answer_accuracy": 0.3870967741935484, + "answer_nll": 3.354180097579956, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3870967741935484, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 10.494215965270996, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9921875, + "answer_accuracy": 0.9921875, + "answer_nll": 0.03756839036941528, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9921875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.41641337386018235, + "answer_accuracy": 0.41641337386018235, + "answer_nll": 3.4803478717803955, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.41641337386018235, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 11.919454574584961, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9830729166666666, + "answer_accuracy": 0.9830729166666666, + "answer_nll": 0.06718149781227112, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9830729166666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.22634146341463415, + "answer_accuracy": 0.22634146341463415, + "answer_nll": 5.92665958404541, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.22634146341463415, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 10.67516040802002, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1912771463394165, + "training_seconds": 50.96497181430459, + "estimated_training_flops": 236156092416000, + "supervised_tokens": 26624000, + "padded_input_tokens": 32768000 + }, + { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 3.78430777345784e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 4.0418326534563676e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.43548387096774194, + "answer_accuracy": 0.43548387096774194, + "answer_nll": 3.642416000366211, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.43548387096774194, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.421507835388184, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 5.7264696806669235e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.45288753799392095, + "answer_accuracy": 0.45288753799392095, + "answer_nll": 3.7320611476898193, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.45288753799392095, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 11.899250030517578, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 7.165521674323827e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.26634146341463416, + "answer_accuracy": 0.26634146341463416, + "answer_nll": 6.1703619956970215, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.26634146341463416, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.692276954650879, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1728802919387817, + "training_seconds": 101.93848122283816, + "estimated_training_flops": 472312184832000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + } +] diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/spec.json b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/spec.json new file mode 100644 index 0000000000000000000000000000000000000000..4ebd4bed28ba1587a8dd9763e7e4018838f55668 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/spec.json @@ -0,0 +1,66 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 1, + "repeats": 6, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/status.json new file mode 100644 index 0000000000000000000000000000000000000000..d332dc2b8bde7c33219e9f3a7045f6466b684b92 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/status.json @@ -0,0 +1,4 @@ +{ + "step": 64000, + "budget": 64000 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/train-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/train-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..5752e0ccf0c4ffbf670e1393c40dc7c1376b7cb7 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/train-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "train", + "gpu": 0, + "returncode": 0, + "seconds": 111.58419137075543 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/train-process.log b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/train-process.log new file mode 100644 index 0000000000000000000000000000000000000000..922c7985b14f90e966e08fa31634e81d300c733b --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/train-process.log @@ -0,0 +1,10 @@ +{"run": "w751011-i752011-d128-l1-r6-s64000", "step": 0, "atomic": 0.0, "familiar": {"2": 0.0, "3": 0.0, "4": 0.0}} +{"run": "w751011-i752011-d128-l1-r6-s64000", "step": 256, "atomic": 0.1015625, "familiar": {"2": 0.08064516129032258, "3": 0.09422492401215805, "4": 0.07902439024390244}} +{"run": "w751011-i752011-d128-l1-r6-s64000", "step": 512, "atomic": 0.41796875, "familiar": {"2": 0.08870967741935484, "3": 0.11246200607902736, "4": 0.09951219512195122}} +{"run": "w751011-i752011-d128-l1-r6-s64000", "step": 1000, "atomic": 0.98046875, "familiar": {"2": 0.21774193548387097, "3": 0.22796352583586627, "4": 0.16682926829268294}} +{"run": "w751011-i752011-d128-l1-r6-s64000", "step": 2000, "atomic": 0.9921875, "familiar": {"2": 0.27419354838709675, "3": 0.3465045592705167, "4": 0.22048780487804878}} +{"run": "w751011-i752011-d128-l1-r6-s64000", "step": 4000, "atomic": 1.0, "familiar": {"2": 0.3548387096774194, "3": 0.3525835866261398, "4": 0.24292682926829268}} +{"run": "w751011-i752011-d128-l1-r6-s64000", "step": 8000, "atomic": 1.0, "familiar": {"2": 0.3467741935483871, "3": 0.4072948328267477, "4": 0.24585365853658536}} +{"run": "w751011-i752011-d128-l1-r6-s64000", "step": 16000, "atomic": 1.0, "familiar": {"2": 0.3951612903225806, "3": 0.48632218844984804, "4": 0.26634146341463416}} +{"run": "w751011-i752011-d128-l1-r6-s64000", "step": 32000, "atomic": 1.0, "familiar": {"2": 0.3870967741935484, "3": 0.41641337386018235, "4": 0.22634146341463415}} +{"run": "w751011-i752011-d128-l1-r6-s64000", "step": 64000, "atomic": 1.0, "familiar": {"2": 0.43548387096774194, "3": 0.45288753799392095, "4": 0.26634146341463416}} diff --git a/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/world-metadata.json b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/world-metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0d160c9e2f6a49b4d5ec9ef5ade290343346beb5 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l1-r6-s64000/world-metadata.json @@ -0,0 +1,11519 @@ +{ + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "id_mask": [ + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + false, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + true, + true, + false, + false, + false, + true, + true, + true, + false, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + false, + true, + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true + ], + "source_worlds": { + "2": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": true, + "phi_actual": 2.3125, + "mixed_composite_excluded": 392, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 444, + "test_composite": 124, + "test_full_composite": 124, + "ood_composite": 64, + "unused_composite": 0 + }, + "dataset_sha256": "59e810faf8478e02f02ffd785bce119413d62608e48c5d41a4c24032dda4abc2", + "warnings": [ + "Training request capped at eligible pool" + ], + "hops": 2, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 568, + "all_paths_total": 1024, + "training_fraction_of_id_paths": 0.7816901408450704, + "training_fraction_of_nonreserved_id_paths": 1.0, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 29, + 49, + 14, + 32, + 62, + 86, + 66, + 5, + 8, + 83, + 50, + 88, + 116, + 23, + 87, + 80, + 100, + 9, + 117, + 81, + 79, + 54, + 91, + 111, + 19, + 4, + 68, + 2, + 113, + 40, + 65, + 27, + 38, + 0, + 41, + 21, + 1, + 78, + 82, + 101, + 15, + 20, + 59, + 35, + 99, + 53, + 84, + 123, + 114, + 56, + 108, + 72, + 55, + 104, + 92, + 22, + 89, + 43, + 18, + 11, + 74, + 13, + 52, + 60, + 25, + 109, + 48, + 57, + 71, + 115, + 30, + 110, + 61, + 119, + 44, + 95, + 106, + 47, + 121, + 24, + 69, + 118, + 98, + 39, + 34, + 112, + 26, + 102, + 36, + 75, + 33, + 105, + 96, + 51, + 94, + 58, + 90, + 12, + 10, + 97, + 76, + 107, + 93, + 42, + 6, + 17, + 46, + 122, + 64, + 67, + 73, + 85, + 77, + 28, + 7, + 45, + 3, + 120, + 63, + 70, + 37, + 16, + 31, + 103 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 444, + "any_repeated_entity_n": 45, + "any_repeated_entity_fraction": 0.10135135135135136, + "answer_equals_preceding_entity_n": 33, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 185, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 0, + 4, + 2, + 0, + 1, + 0, + 2, + 0, + 3, + 2, + 0, + 1, + 2, + 0, + 0, + 2, + 3, + 3, + 2, + 1, + 3, + 3, + 0, + 3, + 2, + 2, + 0, + 2, + 3, + 1, + 2, + 4, + 3, + 3, + 2, + 0, + 0, + 1, + 3, + 0, + 0, + 4, + 4, + 1, + 0, + 2, + 2, + 0, + 0, + 0, + 1, + 4, + 3, + 0, + 0, + 1, + 0, + 3, + 0, + 0, + 4, + 2, + 2, + 2, + 0, + 2, + 2, + 0, + 2, + 3, + 0, + 0, + 2, + 3, + 3, + 4, + 0, + 3, + 4, + 2, + 3, + 0, + 2, + 2, + 0, + 3, + 1, + 3, + 3, + 3, + 0, + 2, + 3, + 1, + 0, + 3, + 2, + 3, + 3, + 3, + 1, + 2, + 2, + 2, + 0, + 3, + 2, + 4, + 2, + 2, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 3, + 3, + 0, + 3, + 3, + 2, + 3, + 3, + 0, + 1, + 3, + 3, + 1, + 2, + 3, + 1, + 1, + 1, + 4, + 3, + 3, + 0, + 2, + 3, + 2, + 3, + 1, + 3, + 0, + 3, + 2, + 0, + 0, + 2, + 2, + 4, + 1, + 3, + 3, + 3, + 0, + 2, + 2, + 2, + 2, + 2, + 0, + 3, + 0, + 0, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 0, + 2, + 0, + 3, + 2, + 2, + 4, + 2, + 0, + 4, + 2, + 3, + 4, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 4, + 2, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 2, + 2, + 3, + 1, + 2, + 2, + 2, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 2, + 1, + 0, + 1, + 3, + 4, + 2, + 2, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 182, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 0, + 3, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 0, + 5, + 3, + 0, + 1, + 1, + 1, + 3, + 0, + 4, + 4, + 4, + 0, + 5, + 4, + 1, + 2, + 1, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 3, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 5, + 4, + 0, + 1, + 2, + 0, + 0, + 4, + 6, + 5, + 5, + 0, + 2, + 2, + 2, + 1, + 0, + 2, + 3, + 3, + 2, + 2, + 2, + 2, + 2, + 0, + 2, + 2, + 4, + 0, + 4, + 3, + 1, + 1, + 1, + 1, + 2, + 2, + 1, + 0, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 0, + 2, + 3, + 0, + 4, + 0, + 1, + 1, + 2, + 3, + 0, + 3, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 2, + 1, + 3, + 3, + 3, + 2, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 2, + 2, + 2, + 2, + 2, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 3, + 2, + 0, + 3, + 2, + 2, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 2, + 3, + 1, + 5, + 6, + 7, + 6, + 3, + 2, + 0, + 3, + 2, + 3, + 2, + 3, + 0, + 4, + 3, + 3, + 1, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 1, + 2, + 2, + 0, + 5, + 0, + 6, + 0, + 0, + 4, + 4, + 3, + 1, + 3, + 2, + 2, + 0, + 2, + 3, + 2, + 4, + 0, + 3, + 3, + 2, + 0, + 2, + 3, + 4, + 4, + 4, + 3 + ], + "id_count_min": 0, + "id_count_max": 7 + } + ] + }, + "test_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + }, + "test_full_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 3, + 0, + 4, + 0, + 4, + 3, + 2, + 3, + 0, + 3, + 4, + 0, + 8, + 5, + 4, + 4, + 0, + 5, + 0, + 5, + 3, + 0, + 3, + 4, + 0, + 0, + 7, + 6, + 3, + 3, + 2, + 4, + 6, + 0, + 7, + 6, + 6, + 0, + 7, + 7, + 2, + 4, + 5, + 4, + 4, + 4, + 0, + 0, + 2, + 4, + 0, + 0, + 8, + 9, + 6, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 6, + 5, + 0, + 0, + 4, + 0, + 4, + 0, + 0, + 5, + 4, + 4, + 3, + 0, + 7, + 6, + 0, + 3, + 5, + 0, + 0, + 6, + 9, + 8, + 9, + 0, + 5, + 6, + 4, + 4, + 0, + 4, + 5, + 3, + 5, + 3, + 5, + 5, + 5, + 0, + 4, + 5, + 5, + 0, + 7, + 5, + 4, + 4, + 4, + 2, + 4, + 4, + 3, + 0, + 4, + 3, + 5, + 2, + 4, + 4, + 0, + 0, + 4, + 3, + 0, + 7, + 0, + 3, + 3, + 5, + 6, + 0, + 6, + 4, + 3, + 4, + 4, + 0, + 1, + 3, + 3, + 1, + 4, + 5, + 3, + 2, + 4, + 7, + 6, + 5, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 7, + 5, + 0, + 0, + 4, + 4, + 6, + 3, + 5, + 4, + 5, + 0, + 6, + 5, + 6, + 5, + 5, + 0, + 6, + 0, + 0, + 0, + 6, + 3, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 0, + 4, + 3, + 4, + 0, + 0, + 5, + 5, + 3, + 7, + 10, + 9, + 8, + 3, + 4, + 0, + 6, + 4, + 5, + 6, + 5, + 0, + 8, + 5, + 6, + 5, + 0, + 6, + 4, + 0, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 9, + 0, + 8, + 0, + 0, + 6, + 6, + 6, + 2, + 5, + 4, + 4, + 0, + 2, + 3, + 4, + 6, + 0, + 5, + 5, + 3, + 0, + 3, + 6, + 8, + 6, + 6, + 5 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 444, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 444, + "any_relevant_fact_in_composite_training_n": 444, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 444, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 185, + 182 + ], + "within_split_majority_tail": { + "target_token": 8, + "count": 16, + "fraction": 0.036036036036036036, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.036036036036036036, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08783783783783784, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08783783783783784, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 36, + 67, + 66, + 43 + ], + [ + 47, + 69, + 66, + 56 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.13063063063063063, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.13063063063063063, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 54, + 66, + 66, + 43 + ], + [ + 11, + 66, + 66, + 22 + ] + ] + } + ] + }, + "test_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 15, + 68, + 66, + 34 + ], + [ + 18, + 68, + 66, + 22 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 35, + 66, + 66, + 53 + ], + [ + 55, + 66, + 66, + 60 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 66, + 53 + ], + [ + 5, + 69, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 53 + ], + [ + 25, + 66, + 66, + 16 + ] + ] + } + ] + }, + "ood_composite": { + "n": 64, + "unique_relevant_atomic_facts": 53, + "relevant_atomic_fact_coverage_of_graph": 0.20703125, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 44, + 39 + ], + "within_split_majority_tail": { + "target_token": 58, + "count": 5, + "fraction": 0.078125, + "distinct_targets": 30 + }, + "train_composite_majority_tail_fraction": 0.0, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.25, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 6, + 67, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.328125, + "single_target_group_query_fraction": 0.03125, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.328125, + "multi_target_groups": 14, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 13, + 66, + 66, + 13 + ] + ] + } + ] + }, + "unused_composite": { + "n": 0, + "unique_relevant_atomic_facts": 0, + "relevant_atomic_fact_coverage_of_graph": 0.0, + "all_relevant_facts_in_atomic_training_fraction": null, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": null, + "all_id_queries": 0, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 0, + 0 + ], + "within_split_majority_tail": { + "target_token": null, + "count": 0, + "fraction": null, + "distinct_targets": 0 + }, + "train_composite_majority_tail_fraction": null, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + }, + { + "suffix_relation_count": 2, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "3": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 2331, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 329, + "test_full_composite": 329, + "ood_composite": 59, + "unused_composite": 609 + }, + "dataset_sha256": "874230d99d7b1184953935d1476d34c3d69968bcc196b499299cf4c63dc75d6f", + "warnings": [], + "hops": 3, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 1706, + "all_paths_total": 4096, + "training_fraction_of_id_paths": 0.4501758499413834, + "training_fraction_of_nonreserved_id_paths": 0.5577342047930284, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 177, + 263, + 289, + 328, + 73, + 17, + 112, + 159, + 45, + 110, + 16, + 286, + 225, + 25, + 95, + 24, + 49, + 66, + 230, + 201, + 19, + 7, + 172, + 323, + 321, + 152, + 181, + 58, + 313, + 169, + 218, + 231, + 221, + 121, + 285, + 243, + 150, + 256, + 292, + 141, + 105, + 51, + 34, + 37, + 102, + 266, + 196, + 139, + 106, + 250, + 65, + 28, + 195, + 188, + 113, + 52, + 228, + 173, + 246, + 99, + 125, + 167, + 175, + 244, + 61, + 47, + 178, + 257, + 50, + 2, + 301, + 252, + 55, + 202, + 165, + 41, + 148, + 140, + 309, + 239, + 213, + 238, + 128, + 318, + 97, + 86, + 242, + 311, + 88, + 197, + 248, + 96, + 293, + 273, + 155, + 281, + 90, + 214, + 87, + 278, + 270, + 21, + 237, + 35, + 71, + 44, + 157, + 315, + 156, + 174, + 222, + 4, + 134, + 249, + 32, + 119, + 260, + 130, + 232, + 259, + 192, + 183, + 291, + 185, + 264, + 79, + 75, + 104, + 13, + 296, + 26, + 133, + 101, + 272, + 304, + 205, + 319, + 254, + 11, + 162, + 48, + 93, + 306, + 190, + 290, + 27, + 262, + 168, + 116, + 200, + 109, + 277, + 118, + 29, + 279, + 268, + 314, + 111, + 245, + 288, + 298, + 186, + 81, + 226, + 12, + 324, + 227, + 171, + 18, + 326, + 233, + 179, + 15, + 307, + 170, + 144, + 275, + 43, + 287, + 320, + 103, + 36, + 215, + 302, + 164, + 153, + 120, + 59, + 1, + 94, + 209, + 189, + 180, + 76, + 77, + 123, + 98, + 83, + 108, + 224, + 40, + 67, + 129, + 229, + 54, + 269, + 149, + 265, + 297, + 22, + 92, + 303, + 126, + 282, + 223, + 42, + 191, + 216, + 100, + 135, + 184, + 14, + 72, + 163, + 253, + 131, + 207, + 3, + 255, + 82, + 166, + 312, + 241, + 295, + 251, + 204, + 84, + 57, + 274, + 78, + 299, + 8, + 276, + 10, + 217, + 212, + 176, + 267, + 74, + 107, + 147, + 327, + 91, + 33, + 305, + 151, + 38, + 199, + 325, + 0, + 182, + 122, + 9, + 300, + 235, + 160, + 85, + 317, + 187, + 208, + 56, + 219, + 161, + 70, + 80, + 308, + 31, + 124, + 194, + 316, + 220, + 145, + 154, + 115, + 258, + 271, + 210, + 198, + 310, + 60, + 68, + 234, + 114, + 247, + 62, + 64, + 322, + 283, + 23, + 284, + 203, + 261, + 136, + 294, + 89, + 30, + 211, + 63, + 6, + 20, + 158, + 146, + 53, + 5, + 143, + 117, + 137, + 132, + 138, + 193, + 127, + 280, + 236, + 69, + 39, + 206, + 142, + 46, + 240 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 117, + "any_repeated_entity_fraction": 0.15234375, + "answer_equals_preceding_entity_n": 63, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 189, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 5, + 0, + 7, + 2, + 2, + 6, + 0, + 5, + 3, + 0, + 7, + 5, + 5, + 2, + 0, + 5, + 0, + 6, + 6, + 0, + 7, + 2, + 0, + 0, + 2, + 4, + 3, + 5, + 3, + 4, + 4, + 0, + 6, + 5, + 3, + 0, + 3, + 7, + 0, + 4, + 7, + 4, + 3, + 4, + 0, + 4, + 4, + 6, + 0, + 0, + 5, + 5, + 5, + 0, + 3, + 2, + 0, + 0, + 0, + 4, + 6, + 5, + 0, + 0, + 3, + 0, + 3, + 0, + 0, + 9, + 2, + 6, + 3, + 0, + 2, + 1, + 0, + 3, + 4, + 0, + 0, + 4, + 3, + 4, + 7, + 0, + 4, + 6, + 3, + 7, + 0, + 1, + 3, + 7, + 3, + 3, + 2, + 5, + 7, + 0, + 2, + 8, + 4, + 0, + 6, + 5, + 7, + 7, + 5, + 3, + 3, + 4, + 0, + 0, + 4, + 8, + 4, + 6, + 5, + 3, + 0, + 0, + 5, + 3, + 0, + 2, + 0, + 5, + 5, + 3, + 4, + 0, + 3, + 4, + 1, + 3, + 7, + 0, + 1, + 3, + 4, + 3, + 4, + 5, + 2, + 2, + 4, + 6, + 5, + 3, + 0, + 3, + 4, + 4, + 2, + 2, + 3, + 0, + 4, + 3, + 0, + 0, + 2, + 3, + 5, + 3, + 3, + 4, + 5, + 0, + 4, + 7, + 1, + 4, + 1, + 0, + 2, + 0, + 0, + 0, + 3, + 3, + 2, + 4, + 0, + 5, + 4, + 5, + 0, + 0, + 1, + 1, + 4, + 0, + 0, + 2, + 5, + 3, + 1, + 4, + 1, + 4, + 3, + 0, + 0, + 6, + 3, + 5, + 7, + 3, + 0, + 5, + 2, + 6, + 5, + 0, + 5, + 7, + 0, + 3, + 6, + 0, + 6, + 6, + 5, + 0, + 3, + 0, + 6, + 0, + 0, + 4, + 2, + 4, + 4, + 5, + 2, + 4, + 0, + 1, + 4, + 3, + 4, + 0, + 6, + 2, + 6, + 0, + 4, + 5, + 5, + 5, + 7, + 4 + ], + "id_count_min": 0, + "id_count_max": 9 + }, + { + "hop": 2, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 4, + 0, + 1, + 2, + 0, + 1, + 0, + 6, + 4, + 0, + 8, + 10, + 4, + 3, + 0, + 8, + 0, + 8, + 3, + 0, + 1, + 3, + 0, + 0, + 7, + 11, + 2, + 1, + 1, + 1, + 10, + 0, + 8, + 6, + 5, + 0, + 7, + 7, + 0, + 3, + 3, + 2, + 3, + 2, + 0, + 2, + 1, + 2, + 0, + 0, + 12, + 11, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 4, + 0, + 0, + 4, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 2, + 0, + 6, + 4, + 0, + 11, + 6, + 0, + 0, + 4, + 5, + 7, + 13, + 0, + 1, + 4, + 3, + 3, + 0, + 7, + 6, + 8, + 2, + 3, + 2, + 4, + 2, + 0, + 4, + 1, + 5, + 0, + 6, + 9, + 2, + 1, + 1, + 2, + 7, + 3, + 1, + 0, + 2, + 2, + 1, + 1, + 5, + 1, + 0, + 0, + 5, + 5, + 0, + 3, + 0, + 1, + 4, + 1, + 3, + 0, + 5, + 4, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 0, + 0, + 3, + 7, + 5, + 6, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 2, + 2, + 2, + 1, + 0, + 3, + 0, + 8, + 9, + 6, + 8, + 3, + 0, + 2, + 0, + 0, + 0, + 4, + 3, + 1, + 3, + 0, + 3, + 5, + 6, + 0, + 0, + 3, + 2, + 4, + 0, + 0, + 6, + 6, + 3, + 10, + 14, + 7, + 15, + 3, + 2, + 0, + 1, + 3, + 4, + 4, + 4, + 0, + 11, + 7, + 8, + 5, + 0, + 5, + 5, + 0, + 1, + 4, + 0, + 2, + 2, + 4, + 0, + 10, + 0, + 9, + 0, + 0, + 9, + 8, + 5, + 3, + 0, + 3, + 4, + 0, + 5, + 1, + 3, + 3, + 0, + 7, + 2, + 5, + 0, + 1, + 5, + 9, + 6, + 6, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 175, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 6, + 5, + 2, + 1, + 0, + 2, + 2, + 0, + 7, + 7, + 5, + 7, + 0, + 7, + 0, + 9, + 3, + 0, + 2, + 2, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 1, + 5, + 0, + 5, + 5, + 9, + 0, + 8, + 7, + 3, + 3, + 3, + 2, + 2, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 9, + 5, + 8, + 0, + 4, + 2, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 4, + 3, + 2, + 0, + 6, + 3, + 0, + 5, + 3, + 0, + 0, + 4, + 5, + 10, + 6, + 0, + 3, + 4, + 5, + 7, + 0, + 5, + 9, + 5, + 1, + 2, + 2, + 0, + 1, + 0, + 1, + 4, + 10, + 0, + 8, + 7, + 1, + 2, + 2, + 2, + 2, + 4, + 4, + 0, + 4, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 3, + 1, + 0, + 2, + 0, + 7, + 7, + 8, + 9, + 0, + 6, + 4, + 1, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 3, + 4, + 3, + 6, + 1, + 4, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 16, + 9, + 0, + 0, + 3, + 3, + 4, + 2, + 4, + 3, + 3, + 0, + 10, + 8, + 7, + 8, + 4, + 0, + 4, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 0, + 4, + 5, + 5, + 0, + 0, + 3, + 5, + 3, + 0, + 0, + 5, + 5, + 3, + 14, + 5, + 8, + 6, + 6, + 5, + 0, + 4, + 5, + 2, + 1, + 5, + 0, + 6, + 12, + 7, + 0, + 0, + 1, + 1, + 0, + 2, + 6, + 0, + 2, + 3, + 2, + 0, + 9, + 0, + 5, + 0, + 0, + 5, + 7, + 2, + 6, + 6, + 8, + 8, + 0, + 0, + 1, + 2, + 6, + 0, + 3, + 8, + 1, + 0, + 4, + 4, + 11, + 7, + 8, + 7 + ], + "id_count_min": 0, + "id_count_max": 16 + } + ] + }, + "test_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + }, + "test_full_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 192, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 6, + 0, + 12, + 0, + 14, + 9, + 4, + 8, + 0, + 13, + 9, + 0, + 22, + 22, + 14, + 12, + 0, + 20, + 0, + 23, + 12, + 0, + 10, + 7, + 0, + 0, + 16, + 22, + 5, + 6, + 6, + 6, + 19, + 0, + 19, + 16, + 17, + 0, + 18, + 21, + 3, + 10, + 13, + 8, + 8, + 7, + 0, + 8, + 6, + 8, + 0, + 0, + 26, + 21, + 18, + 0, + 8, + 4, + 0, + 0, + 0, + 8, + 10, + 11, + 0, + 0, + 9, + 0, + 5, + 0, + 0, + 12, + 6, + 11, + 7, + 0, + 14, + 8, + 0, + 19, + 13, + 0, + 0, + 12, + 13, + 21, + 26, + 0, + 8, + 14, + 11, + 17, + 0, + 13, + 18, + 20, + 6, + 8, + 6, + 9, + 10, + 0, + 7, + 13, + 19, + 0, + 20, + 21, + 10, + 10, + 8, + 7, + 12, + 11, + 5, + 0, + 10, + 11, + 7, + 8, + 12, + 4, + 0, + 0, + 13, + 9, + 0, + 7, + 0, + 13, + 16, + 12, + 16, + 0, + 14, + 12, + 3, + 8, + 9, + 0, + 1, + 3, + 4, + 3, + 14, + 13, + 5, + 6, + 10, + 19, + 11, + 13, + 0, + 4, + 6, + 5, + 2, + 2, + 3, + 0, + 27, + 19, + 0, + 0, + 7, + 8, + 11, + 7, + 8, + 7, + 11, + 0, + 22, + 24, + 14, + 20, + 8, + 0, + 8, + 0, + 0, + 0, + 9, + 7, + 5, + 9, + 0, + 12, + 14, + 16, + 0, + 0, + 7, + 8, + 11, + 0, + 0, + 13, + 16, + 9, + 25, + 23, + 16, + 25, + 12, + 7, + 0, + 11, + 11, + 11, + 12, + 12, + 0, + 22, + 21, + 21, + 10, + 0, + 11, + 13, + 0, + 6, + 16, + 0, + 10, + 11, + 11, + 0, + 22, + 0, + 20, + 0, + 0, + 18, + 17, + 11, + 13, + 11, + 13, + 16, + 0, + 6, + 6, + 8, + 13, + 0, + 16, + 12, + 12, + 0, + 9, + 14, + 25, + 18, + 21, + 17 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.75, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.0234375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.026041666666666668, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 189, + 177, + 175 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 43, + "fraction": 0.055989583333333336, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.055989583333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10807291666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10807291666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.1640625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.1640625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.23177083333333334, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23177083333333334, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + } + ] + }, + "test_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 54, + 69, + 68, + 66, + 8 + ], + [ + 65, + 68, + 67, + 66, + 25 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 11, + 67, + 66, + 66, + 45 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 69, + 66, + 42 + ], + [ + 4, + 69, + 67, + 66, + 59 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 67, + 66, + 66, + 45 + ], + [ + 12, + 69, + 66, + 66, + 16 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "ood_composite": { + "n": 59, + "unique_relevant_atomic_facts": 51, + "relevant_atomic_fact_coverage_of_graph": 0.19921875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 59, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 41, + 30, + 31 + ], + "within_split_majority_tail": { + "target_token": 60, + "count": 6, + "fraction": 0.1016949152542373, + "distinct_targets": 25 + }, + "train_composite_majority_tail_fraction": 0.03389830508474576, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.23728813559322035, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23728813559322035, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 8, + 67, + 69, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.5423728813559322, + "single_target_group_query_fraction": 0.1016949152542373, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.5423728813559322, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 39, + "empirical_modal_target_fraction": 0.7288135593220338, + "single_target_group_query_fraction": 0.4745762711864407, + "singleton_group_query_fraction": 0.4067796610169492, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 0.5932203389830508, + "multi_query_empirical_modal_target_fraction": 0.5428571428571428, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 13, + 66, + 66, + 66, + 13 + ], + [ + 18, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "unused_composite": { + "n": 609, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 609, + "any_relevant_fact_in_composite_training_n": 609, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 609, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 186, + 172, + 174 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 26, + "fraction": 0.042692939244663386, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03940886699507389, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07717569786535304, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07717569786535304, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 69, + 67, + 66, + 52 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14614121510673234, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14614121510673234, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 67, + 66, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.22660098522167488, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.22660098522167488, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 66, + 10 + ], + [ + 6, + 66, + 66, + 66, + 60 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "4": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 11180, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 512, + "test_full_composite": 1025, + "ood_composite": 53, + "unused_composite": 3358 + }, + "dataset_sha256": "11ec0124d665d8362ddc331d5c39bc251f7cada4bc5263b5524390fbb9319e85", + "warnings": [], + "hops": 4, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 5151, + "all_paths_total": 16384, + "training_fraction_of_id_paths": 0.14909726266744322, + "training_fraction_of_nonreserved_id_paths": 0.1861366941347552, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 560, + 766, + 474, + 184, + 609, + 39, + 576, + 63, + 547, + 821, + 853, + 222, + 688, + 718, + 268, + 448, + 856, + 266, + 593, + 433, + 505, + 736, + 138, + 300, + 982, + 250, + 165, + 817, + 112, + 984, + 545, + 654, + 773, + 700, + 312, + 651, + 154, + 297, + 224, + 639, + 16, + 411, + 440, + 225, + 825, + 972, + 709, + 355, + 903, + 846, + 10, + 353, + 449, + 498, + 782, + 803, + 106, + 85, + 810, + 528, + 58, + 194, + 514, + 488, + 289, + 789, + 424, + 889, + 1014, + 877, + 417, + 4, + 691, + 597, + 81, + 412, + 401, + 635, + 331, + 199, + 115, + 341, + 743, + 447, + 288, + 965, + 950, + 21, + 507, + 399, + 519, + 414, + 953, + 403, + 834, + 619, + 486, + 379, + 347, + 969, + 974, + 952, + 568, + 30, + 337, + 882, + 722, + 955, + 506, + 831, + 359, + 418, + 454, + 105, + 516, + 157, + 109, + 940, + 228, + 95, + 145, + 642, + 543, + 787, + 124, + 243, + 996, + 1007, + 464, + 571, + 721, + 921, + 745, + 340, + 710, + 634, + 253, + 947, + 838, + 986, + 520, + 442, + 841, + 429, + 948, + 126, + 605, + 744, + 922, + 181, + 1004, + 958, + 544, + 192, + 1016, + 75, + 430, + 247, + 238, + 649, + 800, + 600, + 103, + 76, + 352, + 827, + 296, + 606, + 369, + 441, + 842, + 848, + 357, + 406, + 670, + 416, + 293, + 677, + 973, + 910, + 264, + 434, + 196, + 113, + 149, + 515, + 939, + 808, + 131, + 871, + 720, + 478, + 586, + 936, + 906, + 432, + 724, + 822, + 160, + 933, + 62, + 561, + 633, + 824, + 407, + 226, + 33, + 248, + 680, + 804, + 740, + 208, + 167, + 214, + 476, + 233, + 302, + 292, + 220, + 6, + 750, + 189, + 503, + 90, + 91, + 914, + 937, + 93, + 187, + 366, + 951, + 373, + 18, + 695, + 203, + 310, + 625, + 398, + 339, + 241, + 556, + 570, + 812, + 944, + 14, + 562, + 327, + 667, + 303, + 100, + 173, + 623, + 860, + 781, + 283, + 924, + 1000, + 180, + 899, + 767, + 523, + 125, + 316, + 564, + 1, + 536, + 726, + 786, + 930, + 168, + 546, + 360, + 957, + 741, + 935, + 971, + 332, + 481, + 703, + 136, + 445, + 162, + 590, + 111, + 38, + 326, + 190, + 342, + 72, + 541, + 487, + 524, + 278, + 764, + 174, + 646, + 757, + 946, + 270, + 102, + 761, + 141, + 799, + 28, + 919, + 601, + 86, + 183, + 47, + 675, + 885, + 956, + 836, + 218, + 335, + 307, + 317, + 37, + 596, + 120, + 648, + 1003, + 702, + 291, + 96, + 839, + 943, + 807, + 9, + 32, + 828, + 732, + 542, + 36, + 908, + 855, + 279, + 538, + 768, + 754, + 587, + 987, + 142, + 598, + 287, + 678, + 880, + 589, + 71, + 370, + 469, + 473, + 553, + 143, + 427, + 404, + 391, + 286, + 869, + 928, + 621, + 462, + 338, + 133, + 52, + 525, + 857, + 334, + 477, + 41, + 423, + 615, + 459, + 784, + 508, + 826, + 815, + 567, + 79, + 656, + 261, + 329, + 219, + 620, + 415, + 636, + 832, + 756, + 27, + 425, + 663, + 309, + 734, + 867, + 497, + 169, + 659, + 932, + 452, + 193, + 475, + 118, + 495, + 176, + 161, + 275, + 44, + 992, + 466, + 1001, + 989, + 428, + 212, + 668, + 8, + 792, + 381, + 696, + 467, + 911, + 172, + 22, + 153, + 660, + 13, + 613, + 849, + 319, + 74, + 299, + 758, + 276, + 833, + 387, + 19, + 993, + 376, + 368, + 594, + 708, + 684, + 727, + 130, + 693, + 237, + 402, + 595, + 728, + 107, + 114, + 540, + 256, + 345, + 83, + 156, + 669, + 210, + 731, + 150, + 627, + 419, + 1024, + 51, + 491, + 672, + 874, + 762, + 797, + 844, + 585, + 938, + 980, + 901, + 273, + 470, + 554, + 121, + 671, + 60, + 915, + 351, + 909, + 61, + 321, + 479, + 284, + 492, + 674, + 765, + 178, + 875, + 348, + 661, + 234, + 249, + 723, + 1020, + 259, + 629, + 236, + 117, + 305, + 673, + 582, + 422, + 611, + 861, + 483, + 413, + 377, + 97, + 999 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 194, + "any_repeated_entity_fraction": 0.2526041666666667, + "answer_equals_preceding_entity_n": 84, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 184, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 3, + 0, + 6, + 3, + 0, + 3, + 0, + 3, + 4, + 0, + 7, + 10, + 0, + 3, + 0, + 6, + 0, + 5, + 3, + 0, + 6, + 4, + 0, + 0, + 4, + 7, + 2, + 4, + 3, + 2, + 5, + 0, + 4, + 6, + 1, + 0, + 7, + 6, + 3, + 3, + 6, + 6, + 6, + 4, + 0, + 1, + 3, + 3, + 0, + 0, + 5, + 6, + 4, + 0, + 1, + 1, + 0, + 0, + 0, + 4, + 6, + 7, + 0, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 1, + 3, + 4, + 0, + 3, + 1, + 0, + 4, + 3, + 0, + 0, + 0, + 6, + 6, + 10, + 0, + 5, + 6, + 5, + 5, + 0, + 4, + 5, + 5, + 5, + 1, + 5, + 4, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 3, + 3, + 4, + 4, + 4, + 3, + 6, + 1, + 0, + 4, + 7, + 5, + 6, + 2, + 4, + 0, + 0, + 5, + 1, + 0, + 3, + 0, + 4, + 6, + 3, + 1, + 0, + 4, + 5, + 1, + 2, + 7, + 0, + 0, + 3, + 6, + 1, + 3, + 4, + 0, + 0, + 4, + 2, + 4, + 3, + 0, + 2, + 6, + 5, + 4, + 4, + 7, + 0, + 1, + 1, + 0, + 0, + 2, + 2, + 4, + 2, + 4, + 4, + 4, + 0, + 3, + 8, + 1, + 3, + 7, + 0, + 3, + 0, + 0, + 0, + 5, + 5, + 3, + 5, + 0, + 6, + 9, + 11, + 0, + 0, + 2, + 1, + 7, + 0, + 0, + 2, + 2, + 6, + 6, + 3, + 5, + 7, + 3, + 3, + 0, + 5, + 5, + 5, + 7, + 3, + 0, + 2, + 3, + 5, + 8, + 0, + 8, + 7, + 0, + 3, + 7, + 0, + 4, + 3, + 6, + 0, + 4, + 0, + 3, + 0, + 0, + 3, + 7, + 3, + 8, + 3, + 4, + 1, + 0, + 3, + 2, + 2, + 3, + 0, + 4, + 2, + 4, + 0, + 4, + 8, + 8, + 8, + 3, + 5 + ], + "id_count_min": 0, + "id_count_max": 11 + }, + { + "hop": 2, + "id_edges_covered": 173, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 4, + 0, + 9, + 7, + 6, + 2, + 0, + 5, + 0, + 7, + 3, + 0, + 4, + 3, + 0, + 0, + 6, + 7, + 1, + 1, + 0, + 2, + 9, + 0, + 4, + 6, + 4, + 0, + 5, + 7, + 1, + 3, + 3, + 3, + 2, + 3, + 0, + 1, + 2, + 2, + 0, + 0, + 14, + 9, + 6, + 0, + 1, + 0, + 0, + 0, + 0, + 5, + 4, + 2, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 2, + 0, + 5, + 3, + 0, + 13, + 5, + 0, + 0, + 4, + 10, + 9, + 15, + 0, + 3, + 4, + 2, + 2, + 0, + 8, + 5, + 3, + 1, + 2, + 4, + 5, + 3, + 0, + 1, + 5, + 8, + 0, + 8, + 4, + 0, + 1, + 0, + 1, + 6, + 3, + 2, + 0, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 0, + 7, + 5, + 0, + 3, + 0, + 3, + 5, + 3, + 4, + 0, + 2, + 4, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 1, + 0, + 3, + 8, + 3, + 5, + 0, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 8, + 6, + 0, + 0, + 3, + 1, + 4, + 0, + 1, + 1, + 4, + 0, + 9, + 14, + 0, + 10, + 3, + 0, + 3, + 0, + 0, + 0, + 9, + 2, + 1, + 6, + 0, + 2, + 2, + 5, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 4, + 5, + 6, + 12, + 8, + 9, + 9, + 2, + 6, + 0, + 7, + 1, + 5, + 5, + 3, + 0, + 4, + 11, + 12, + 1, + 0, + 2, + 5, + 0, + 1, + 0, + 0, + 5, + 2, + 8, + 0, + 11, + 0, + 5, + 0, + 0, + 8, + 8, + 7, + 6, + 5, + 1, + 2, + 0, + 4, + 3, + 4, + 7, + 0, + 7, + 7, + 0, + 0, + 3, + 3, + 7, + 10, + 9, + 12 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 172, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 4, + 0, + 5, + 2, + 0, + 1, + 0, + 3, + 2, + 0, + 6, + 4, + 3, + 2, + 0, + 9, + 0, + 12, + 6, + 0, + 6, + 3, + 0, + 0, + 7, + 15, + 1, + 0, + 2, + 1, + 7, + 0, + 5, + 5, + 13, + 0, + 8, + 13, + 2, + 3, + 2, + 1, + 1, + 2, + 0, + 1, + 2, + 1, + 0, + 0, + 5, + 7, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 3, + 0, + 8, + 2, + 0, + 10, + 3, + 0, + 0, + 2, + 10, + 11, + 3, + 0, + 5, + 8, + 4, + 4, + 0, + 5, + 4, + 5, + 3, + 0, + 1, + 2, + 0, + 0, + 1, + 4, + 4, + 0, + 9, + 8, + 2, + 1, + 3, + 2, + 2, + 1, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 7, + 5, + 5, + 0, + 5, + 11, + 1, + 4, + 2, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 3, + 2, + 4, + 4, + 4, + 3, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 11, + 12, + 0, + 0, + 4, + 5, + 6, + 0, + 4, + 5, + 5, + 0, + 7, + 12, + 6, + 10, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 5, + 5, + 4, + 0, + 2, + 1, + 5, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 5, + 5, + 5, + 12, + 8, + 7, + 4, + 4, + 7, + 0, + 6, + 4, + 6, + 6, + 3, + 0, + 10, + 6, + 13, + 4, + 0, + 3, + 2, + 0, + 4, + 3, + 0, + 1, + 2, + 2, + 0, + 12, + 0, + 3, + 0, + 0, + 5, + 3, + 2, + 10, + 4, + 6, + 5, + 0, + 1, + 0, + 1, + 6, + 0, + 9, + 4, + 5, + 0, + 2, + 3, + 8, + 7, + 5, + 9 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 4, + "id_edges_covered": 169, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 0, + 2, + 0, + 5, + 9, + 2, + 5, + 0, + 6, + 0, + 4, + 3, + 0, + 0, + 2, + 0, + 0, + 10, + 5, + 0, + 3, + 2, + 0, + 5, + 0, + 6, + 9, + 15, + 0, + 12, + 9, + 1, + 1, + 0, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 6, + 6, + 5, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 1, + 0, + 5, + 6, + 0, + 8, + 8, + 0, + 5, + 6, + 0, + 0, + 6, + 14, + 8, + 5, + 0, + 6, + 2, + 5, + 7, + 0, + 7, + 3, + 8, + 1, + 4, + 1, + 1, + 3, + 0, + 5, + 2, + 6, + 0, + 9, + 8, + 1, + 1, + 1, + 1, + 1, + 4, + 4, + 0, + 1, + 0, + 3, + 1, + 2, + 2, + 0, + 0, + 1, + 4, + 0, + 2, + 0, + 5, + 2, + 4, + 5, + 0, + 6, + 8, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 1, + 2, + 5, + 2, + 6, + 6, + 0, + 0, + 2, + 2, + 0, + 0, + 0, + 0, + 14, + 11, + 0, + 0, + 5, + 5, + 5, + 3, + 2, + 4, + 2, + 0, + 7, + 9, + 7, + 6, + 3, + 0, + 5, + 0, + 0, + 0, + 2, + 5, + 5, + 1, + 0, + 4, + 2, + 1, + 0, + 0, + 6, + 5, + 8, + 0, + 0, + 10, + 2, + 4, + 9, + 10, + 14, + 11, + 7, + 2, + 0, + 5, + 2, + 2, + 2, + 8, + 0, + 8, + 9, + 8, + 2, + 0, + 4, + 4, + 0, + 2, + 2, + 0, + 1, + 1, + 0, + 0, + 9, + 0, + 3, + 0, + 0, + 6, + 7, + 2, + 11, + 5, + 6, + 6, + 0, + 2, + 3, + 0, + 1, + 0, + 6, + 6, + 6, + 0, + 4, + 2, + 5, + 4, + 5, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + } + ] + }, + "test_composite": { + "n": 512, + "any_repeated_entity_n": 116, + "any_repeated_entity_fraction": 0.2265625, + "answer_equals_preceding_entity_n": 54, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 174, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 1, + 2, + 1, + 6, + 0, + 3, + 4, + 0, + 3, + 2, + 5, + 0, + 0, + 4, + 0, + 1, + 2, + 0, + 4, + 2, + 0, + 0, + 3, + 3, + 3, + 0, + 3, + 5, + 4, + 0, + 5, + 2, + 2, + 0, + 2, + 3, + 2, + 3, + 4, + 6, + 3, + 2, + 0, + 5, + 1, + 1, + 0, + 0, + 2, + 5, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 4, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 4, + 1, + 3, + 1, + 0, + 2, + 2, + 0, + 3, + 2, + 0, + 0, + 2, + 6, + 4, + 3, + 0, + 2, + 5, + 2, + 3, + 0, + 4, + 7, + 4, + 1, + 3, + 2, + 3, + 3, + 0, + 1, + 2, + 2, + 0, + 5, + 5, + 5, + 5, + 6, + 0, + 5, + 3, + 1, + 0, + 3, + 5, + 6, + 2, + 3, + 1, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 5, + 4, + 3, + 0, + 5, + 5, + 3, + 5, + 1, + 0, + 0, + 1, + 5, + 1, + 2, + 3, + 2, + 0, + 1, + 5, + 3, + 3, + 0, + 3, + 2, + 1, + 4, + 2, + 4, + 0, + 10, + 3, + 0, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 0, + 0, + 3, + 3, + 4, + 2, + 0, + 1, + 0, + 0, + 0, + 4, + 1, + 0, + 1, + 0, + 4, + 7, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 3, + 3, + 2, + 2, + 3, + 1, + 2, + 0, + 3, + 0, + 7, + 4, + 2, + 3, + 1, + 0, + 4, + 2, + 2, + 3, + 0, + 4, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 3, + 4, + 5, + 4, + 0, + 5, + 0, + 2, + 1, + 1, + 3, + 0, + 4, + 3, + 7, + 0, + 0, + 2, + 1, + 2, + 0, + 2 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 2, + "id_edges_covered": 155, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 2, + 2, + 0, + 4, + 7, + 2, + 2, + 0, + 7, + 0, + 7, + 2, + 0, + 2, + 1, + 0, + 0, + 6, + 3, + 0, + 2, + 0, + 1, + 5, + 0, + 5, + 2, + 3, + 0, + 7, + 13, + 2, + 2, + 2, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 9, + 9, + 3, + 0, + 1, + 2, + 0, + 0, + 0, + 3, + 2, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 3, + 0, + 0, + 5, + 1, + 0, + 6, + 1, + 0, + 0, + 0, + 5, + 7, + 6, + 0, + 0, + 2, + 4, + 1, + 0, + 2, + 3, + 7, + 2, + 4, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 0, + 2, + 7, + 2, + 1, + 2, + 0, + 3, + 0, + 7, + 0, + 2, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 4, + 2, + 0, + 7, + 0, + 2, + 3, + 0, + 5, + 0, + 3, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 1, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 12, + 2, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 1, + 3, + 0, + 1, + 3, + 2, + 7, + 3, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 2, + 1, + 4, + 0, + 0, + 3, + 7, + 2, + 10, + 12, + 3, + 7, + 2, + 0, + 0, + 4, + 4, + 2, + 3, + 1, + 0, + 5, + 2, + 6, + 2, + 0, + 3, + 1, + 0, + 2, + 2, + 0, + 4, + 6, + 3, + 0, + 6, + 0, + 5, + 0, + 0, + 4, + 6, + 4, + 3, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 2, + 0, + 4, + 4, + 4, + 0, + 2, + 5, + 6, + 9, + 3, + 2 + ], + "id_count_min": 0, + "id_count_max": 13 + }, + { + "hop": 3, + "id_edges_covered": 156, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 2, + 3, + 5, + 0, + 2, + 0, + 0, + 4, + 3, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 0, + 0, + 0, + 7, + 9, + 0, + 2, + 0, + 1, + 4, + 0, + 6, + 3, + 8, + 0, + 6, + 9, + 0, + 1, + 2, + 3, + 3, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 7, + 4, + 3, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 5, + 1, + 0, + 4, + 4, + 0, + 0, + 5, + 4, + 3, + 4, + 0, + 5, + 4, + 2, + 4, + 0, + 4, + 2, + 6, + 1, + 1, + 3, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 7, + 4, + 1, + 0, + 0, + 1, + 3, + 2, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 2, + 0, + 0, + 5, + 1, + 0, + 2, + 0, + 3, + 7, + 3, + 6, + 0, + 4, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 6, + 1, + 2, + 4, + 4, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 5, + 3, + 0, + 0, + 2, + 2, + 3, + 2, + 3, + 1, + 5, + 0, + 4, + 9, + 2, + 6, + 6, + 0, + 4, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 5, + 2, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 2, + 2, + 8, + 3, + 5, + 4, + 3, + 5, + 0, + 2, + 3, + 4, + 3, + 3, + 0, + 9, + 6, + 10, + 1, + 0, + 1, + 2, + 0, + 0, + 1, + 0, + 1, + 1, + 2, + 0, + 6, + 0, + 0, + 0, + 0, + 8, + 6, + 6, + 3, + 2, + 2, + 5, + 0, + 0, + 2, + 0, + 3, + 0, + 5, + 2, + 2, + 0, + 1, + 2, + 5, + 6, + 6, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 4, + "id_edges_covered": 164, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 2, + 0, + 3, + 2, + 6, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 4, + 5, + 2, + 1, + 1, + 1, + 2, + 0, + 5, + 3, + 4, + 0, + 4, + 10, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 2, + 1, + 1, + 0, + 0, + 2, + 4, + 4, + 0, + 0, + 2, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 0, + 0, + 0, + 0, + 0, + 4, + 0, + 2, + 0, + 6, + 1, + 0, + 6, + 2, + 0, + 0, + 7, + 4, + 8, + 9, + 0, + 4, + 6, + 1, + 3, + 0, + 4, + 3, + 4, + 3, + 1, + 0, + 1, + 5, + 0, + 3, + 1, + 5, + 0, + 4, + 7, + 1, + 1, + 0, + 2, + 1, + 3, + 1, + 0, + 1, + 2, + 2, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 2, + 5, + 4, + 7, + 0, + 3, + 3, + 2, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 4, + 2, + 2, + 1, + 3, + 5, + 2, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 8, + 0, + 0, + 0, + 2, + 4, + 3, + 2, + 2, + 4, + 0, + 5, + 1, + 9, + 9, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 2, + 0, + 0, + 2, + 3, + 6, + 9, + 4, + 7, + 2, + 6, + 4, + 0, + 5, + 1, + 2, + 1, + 0, + 0, + 7, + 5, + 5, + 0, + 0, + 0, + 0, + 0, + 5, + 1, + 0, + 4, + 3, + 1, + 0, + 2, + 0, + 3, + 0, + 0, + 3, + 2, + 1, + 5, + 4, + 6, + 4, + 0, + 0, + 0, + 2, + 5, + 0, + 3, + 4, + 3, + 0, + 2, + 3, + 6, + 3, + 5, + 1 + ], + "id_count_min": 0, + "id_count_max": 10 + } + ] + }, + "test_full_composite": { + "n": 1025, + "any_repeated_entity_n": 243, + "any_repeated_entity_fraction": 0.2370731707317073, + "answer_equals_preceding_entity_n": 116, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 187, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 5, + 0, + 5, + 0, + 2, + 4, + 2, + 12, + 0, + 6, + 5, + 0, + 8, + 8, + 8, + 3, + 0, + 8, + 0, + 2, + 4, + 0, + 9, + 3, + 0, + 0, + 5, + 5, + 4, + 0, + 5, + 7, + 6, + 0, + 11, + 5, + 3, + 0, + 5, + 6, + 4, + 3, + 7, + 11, + 4, + 5, + 0, + 7, + 3, + 4, + 0, + 0, + 7, + 10, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 6, + 6, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 7, + 1, + 9, + 3, + 0, + 4, + 4, + 0, + 5, + 5, + 0, + 0, + 3, + 8, + 6, + 6, + 0, + 3, + 10, + 7, + 5, + 0, + 6, + 10, + 7, + 2, + 8, + 4, + 6, + 6, + 0, + 5, + 9, + 6, + 0, + 6, + 8, + 7, + 6, + 10, + 0, + 10, + 6, + 5, + 0, + 7, + 8, + 6, + 5, + 5, + 2, + 0, + 0, + 5, + 5, + 0, + 4, + 0, + 5, + 11, + 7, + 12, + 0, + 5, + 14, + 4, + 8, + 6, + 0, + 2, + 5, + 6, + 3, + 2, + 4, + 4, + 0, + 2, + 13, + 3, + 7, + 0, + 6, + 3, + 4, + 9, + 5, + 7, + 0, + 13, + 5, + 0, + 0, + 6, + 0, + 7, + 3, + 3, + 7, + 5, + 0, + 3, + 7, + 4, + 6, + 4, + 0, + 4, + 0, + 0, + 0, + 5, + 4, + 1, + 3, + 0, + 6, + 12, + 5, + 0, + 0, + 4, + 1, + 3, + 0, + 0, + 5, + 9, + 3, + 5, + 6, + 2, + 6, + 1, + 4, + 0, + 9, + 6, + 4, + 5, + 2, + 0, + 7, + 6, + 7, + 6, + 0, + 9, + 4, + 0, + 3, + 6, + 0, + 6, + 6, + 2, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 8, + 6, + 7, + 5, + 1, + 6, + 0, + 2, + 2, + 9, + 4, + 0, + 11, + 4, + 14, + 0, + 0, + 3, + 7, + 5, + 2, + 6 + ], + "id_count_min": 0, + "id_count_max": 14 + }, + { + "hop": 2, + "id_edges_covered": 179, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 3, + 0, + 1, + 2, + 1, + 2, + 0, + 5, + 3, + 0, + 10, + 10, + 5, + 4, + 0, + 13, + 0, + 12, + 2, + 0, + 4, + 2, + 0, + 0, + 11, + 9, + 1, + 2, + 0, + 2, + 10, + 0, + 7, + 5, + 9, + 0, + 9, + 21, + 4, + 3, + 3, + 6, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 12, + 19, + 8, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 4, + 3, + 0, + 0, + 5, + 0, + 0, + 0, + 0, + 3, + 0, + 4, + 2, + 0, + 10, + 2, + 0, + 11, + 3, + 0, + 0, + 4, + 10, + 11, + 10, + 0, + 2, + 6, + 7, + 2, + 0, + 7, + 7, + 12, + 2, + 5, + 2, + 2, + 3, + 0, + 3, + 2, + 2, + 0, + 5, + 13, + 5, + 2, + 4, + 2, + 4, + 3, + 10, + 0, + 5, + 0, + 3, + 3, + 3, + 2, + 0, + 0, + 17, + 4, + 0, + 11, + 0, + 4, + 4, + 3, + 6, + 0, + 8, + 7, + 4, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 4, + 2, + 4, + 5, + 1, + 8, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 20, + 5, + 0, + 0, + 2, + 2, + 5, + 1, + 2, + 2, + 6, + 0, + 8, + 7, + 3, + 12, + 7, + 0, + 7, + 0, + 0, + 0, + 3, + 4, + 3, + 4, + 0, + 7, + 4, + 1, + 0, + 0, + 2, + 4, + 6, + 0, + 0, + 3, + 9, + 3, + 15, + 28, + 5, + 20, + 4, + 1, + 0, + 8, + 6, + 3, + 6, + 3, + 0, + 14, + 7, + 10, + 6, + 0, + 9, + 3, + 0, + 3, + 4, + 0, + 9, + 9, + 5, + 0, + 15, + 0, + 11, + 0, + 0, + 8, + 10, + 9, + 7, + 2, + 3, + 5, + 0, + 5, + 4, + 1, + 7, + 0, + 9, + 4, + 6, + 0, + 2, + 6, + 14, + 12, + 13, + 5 + ], + "id_count_min": 0, + "id_count_max": 28 + }, + { + "hop": 3, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 3, + 0, + 8, + 5, + 4, + 11, + 0, + 5, + 2, + 0, + 9, + 12, + 6, + 3, + 0, + 5, + 0, + 8, + 5, + 0, + 1, + 1, + 0, + 0, + 14, + 13, + 0, + 2, + 2, + 2, + 6, + 0, + 10, + 9, + 14, + 0, + 14, + 17, + 1, + 1, + 2, + 3, + 4, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 13, + 9, + 8, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 5, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 2, + 0, + 8, + 4, + 0, + 10, + 7, + 0, + 0, + 7, + 8, + 6, + 11, + 0, + 8, + 9, + 5, + 7, + 0, + 10, + 5, + 12, + 3, + 2, + 4, + 0, + 6, + 0, + 1, + 3, + 4, + 0, + 10, + 10, + 1, + 0, + 3, + 1, + 3, + 6, + 2, + 0, + 0, + 3, + 2, + 2, + 1, + 3, + 0, + 0, + 8, + 2, + 0, + 3, + 0, + 12, + 13, + 6, + 10, + 0, + 7, + 4, + 2, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 2, + 6, + 1, + 4, + 5, + 5, + 5, + 10, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 14, + 4, + 0, + 0, + 3, + 5, + 7, + 5, + 8, + 2, + 8, + 0, + 11, + 15, + 4, + 11, + 8, + 0, + 9, + 0, + 0, + 0, + 5, + 3, + 1, + 2, + 0, + 1, + 7, + 6, + 0, + 0, + 5, + 2, + 7, + 0, + 0, + 5, + 7, + 5, + 14, + 9, + 11, + 10, + 5, + 10, + 0, + 8, + 6, + 7, + 5, + 4, + 0, + 19, + 14, + 16, + 1, + 0, + 1, + 4, + 0, + 2, + 4, + 0, + 3, + 4, + 3, + 0, + 10, + 0, + 3, + 0, + 0, + 10, + 8, + 10, + 4, + 6, + 6, + 12, + 0, + 0, + 2, + 0, + 6, + 0, + 10, + 2, + 6, + 0, + 1, + 6, + 10, + 11, + 9, + 7 + ], + "id_count_min": 0, + "id_count_max": 19 + }, + { + "hop": 4, + "id_edges_covered": 181, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 1, + 0, + 4, + 0, + 1, + 4, + 0, + 1, + 2, + 0, + 8, + 6, + 10, + 8, + 0, + 10, + 0, + 8, + 1, + 0, + 2, + 4, + 0, + 0, + 7, + 8, + 3, + 1, + 1, + 3, + 5, + 0, + 11, + 7, + 10, + 0, + 11, + 17, + 1, + 1, + 1, + 1, + 1, + 4, + 0, + 5, + 1, + 2, + 0, + 0, + 7, + 11, + 6, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 1, + 2, + 0, + 0, + 6, + 0, + 0, + 0, + 0, + 1, + 6, + 2, + 3, + 0, + 14, + 11, + 0, + 11, + 6, + 0, + 0, + 10, + 7, + 12, + 12, + 0, + 5, + 10, + 6, + 4, + 0, + 9, + 8, + 8, + 5, + 1, + 0, + 1, + 6, + 0, + 5, + 4, + 14, + 0, + 12, + 12, + 1, + 1, + 1, + 2, + 5, + 6, + 2, + 0, + 2, + 4, + 3, + 1, + 3, + 1, + 0, + 0, + 3, + 4, + 0, + 4, + 0, + 5, + 12, + 7, + 14, + 0, + 8, + 5, + 5, + 3, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 4, + 5, + 3, + 4, + 10, + 7, + 3, + 0, + 4, + 1, + 3, + 0, + 0, + 0, + 0, + 9, + 15, + 0, + 0, + 3, + 4, + 5, + 5, + 6, + 4, + 7, + 0, + 8, + 8, + 12, + 14, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 7, + 6, + 0, + 4, + 3, + 2, + 0, + 0, + 9, + 6, + 5, + 0, + 0, + 2, + 4, + 8, + 16, + 10, + 15, + 9, + 10, + 8, + 0, + 9, + 3, + 3, + 2, + 1, + 0, + 14, + 9, + 10, + 2, + 0, + 0, + 2, + 0, + 6, + 5, + 0, + 5, + 3, + 2, + 0, + 5, + 0, + 4, + 0, + 0, + 7, + 5, + 9, + 8, + 7, + 9, + 9, + 0, + 1, + 1, + 2, + 10, + 0, + 4, + 6, + 4, + 0, + 4, + 10, + 9, + 10, + 11, + 10 + ], + "id_count_min": 0, + "id_count_max": 17 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 5, + 0, + 10, + 0, + 14, + 7, + 4, + 6, + 0, + 10, + 12, + 0, + 27, + 30, + 11, + 12, + 0, + 26, + 0, + 28, + 15, + 0, + 16, + 12, + 0, + 0, + 27, + 34, + 4, + 8, + 7, + 5, + 26, + 0, + 19, + 26, + 33, + 0, + 32, + 35, + 7, + 10, + 11, + 10, + 13, + 12, + 0, + 5, + 9, + 6, + 0, + 0, + 30, + 28, + 17, + 0, + 5, + 4, + 0, + 0, + 0, + 13, + 12, + 9, + 0, + 0, + 6, + 0, + 10, + 0, + 0, + 7, + 4, + 11, + 15, + 0, + 24, + 14, + 0, + 32, + 17, + 0, + 0, + 12, + 40, + 34, + 33, + 0, + 19, + 20, + 16, + 18, + 0, + 24, + 17, + 21, + 10, + 7, + 11, + 12, + 10, + 0, + 7, + 13, + 20, + 0, + 30, + 23, + 6, + 7, + 8, + 8, + 12, + 14, + 9, + 0, + 7, + 9, + 10, + 9, + 5, + 11, + 0, + 0, + 15, + 12, + 0, + 10, + 0, + 15, + 20, + 15, + 15, + 0, + 17, + 28, + 2, + 8, + 12, + 0, + 0, + 3, + 6, + 1, + 14, + 14, + 5, + 4, + 16, + 16, + 17, + 17, + 0, + 3, + 10, + 9, + 4, + 4, + 7, + 0, + 34, + 30, + 0, + 0, + 14, + 13, + 19, + 5, + 11, + 14, + 15, + 0, + 26, + 43, + 14, + 29, + 17, + 0, + 12, + 0, + 0, + 0, + 17, + 17, + 14, + 16, + 0, + 14, + 14, + 22, + 0, + 0, + 11, + 8, + 22, + 0, + 0, + 21, + 14, + 21, + 39, + 29, + 35, + 31, + 16, + 18, + 0, + 23, + 12, + 18, + 20, + 17, + 0, + 24, + 29, + 38, + 15, + 0, + 17, + 18, + 0, + 10, + 12, + 0, + 11, + 8, + 16, + 0, + 36, + 0, + 14, + 0, + 0, + 22, + 25, + 14, + 35, + 17, + 17, + 14, + 0, + 10, + 8, + 7, + 17, + 0, + 26, + 19, + 15, + 0, + 13, + 16, + 28, + 29, + 22, + 32 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 184, + 173, + 172, + 169 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 37, + "fraction": 0.048177083333333336, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.048177083333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10286458333333333, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10286458333333333, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 7, + 67, + 67, + 69, + 66, + 59 + ], + [ + 46, + 68, + 66, + 69, + 66, + 44 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.17447916666666666, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.17447916666666666, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 56, + 67, + 69, + 66, + 66, + 43 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.2643229166666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.2643229166666667, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 31, + 68, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 246, + "empirical_modal_target_fraction": 0.421875, + "single_target_group_query_fraction": 0.06380208333333333, + "singleton_group_query_fraction": 0.045572916666666664, + "multi_query_groups": 211, + "multi_query_coverage_fraction": 0.9544270833333334, + "multi_query_empirical_modal_target_fraction": 0.3942701227830832, + "multi_target_groups": 204, + "same_suffix_different_target_example": [ + [ + 28, + 66, + 66, + 66, + 66, + 60 + ], + [ + 39, + 66, + 66, + 66, + 66, + 32 + ] + ] + } + ] + }, + "test_composite": { + "n": 512, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 512, + "any_relevant_fact_in_composite_training_n": 512, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 512, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 174, + 155, + 156, + 164 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 20, + "fraction": 0.0390625, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.0390625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.091796875, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.091796875, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 49, + 66, + 67, + 67, + 66, + 63 + ], + [ + 39, + 68, + 66, + 69, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.15625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.15625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 9, + 67, + 69, + 66, + 66, + 34 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.279296875, + "single_target_group_query_fraction": 0.001953125, + "singleton_group_query_fraction": 0.001953125, + "multi_query_groups": 63, + "multi_query_coverage_fraction": 0.998046875, + "multi_query_empirical_modal_target_fraction": 0.27788649706457924, + "multi_target_groups": 63, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 13, + 67, + 66, + 66, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 217, + "empirical_modal_target_fraction": 0.490234375, + "single_target_group_query_fraction": 0.138671875, + "singleton_group_query_fraction": 0.115234375, + "multi_query_groups": 158, + "multi_query_coverage_fraction": 0.884765625, + "multi_query_empirical_modal_target_fraction": 0.423841059602649, + "multi_target_groups": 152, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 68, + 65 + ], + [ + 12, + 66, + 66, + 66, + 68, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 1025, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 1023, + "any_relevant_fact_in_composite_training_n": 1025, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9995121951219512, + "all_id_queries": 1025, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 187, + 179, + 177, + 181 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 44, + "fraction": 0.042926829268292686, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.042926829268292686, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08195121951219513, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08195121951219513, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 69, + 66, + 25 + ], + [ + 2, + 67, + 68, + 67, + 66, + 57 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14146341463414633, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14146341463414633, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 67, + 66, + 66, + 53 + ], + [ + 4, + 68, + 66, + 66, + 66, + 60 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.24, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.24, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 4, + 68, + 66, + 66, + 66, + 60 + ], + [ + 6, + 66, + 66, + 66, + 66, + 36 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 249, + "empirical_modal_target_fraction": 0.3648780487804878, + "single_target_group_query_fraction": 0.02048780487804878, + "singleton_group_query_fraction": 0.014634146341463415, + "multi_query_groups": 234, + "multi_query_coverage_fraction": 0.9853658536585366, + "multi_query_empirical_modal_target_fraction": 0.35544554455445543, + "multi_target_groups": 231, + "same_suffix_different_target_example": [ + [ + 6, + 66, + 66, + 66, + 66, + 36 + ], + [ + 43, + 66, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "ood_composite": { + "n": 53, + "unique_relevant_atomic_facts": 48, + "relevant_atomic_fact_coverage_of_graph": 0.1875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 53, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 35, + 27, + 24, + 26 + ], + "within_split_majority_tail": { + "target_token": 54, + "count": 7, + "fraction": 0.1320754716981132, + "distinct_targets": 22 + }, + "train_composite_majority_tail_fraction": 0.018867924528301886, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.32075471698113206, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.32075471698113206, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 69, + 68, + 66, + 60 + ], + [ + 7, + 68, + 68, + 69, + 66, + 65 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.6981132075471698, + "single_target_group_query_fraction": 0.18867924528301888, + "singleton_group_query_fraction": 0.05660377358490566, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.9433962264150944, + "multi_query_empirical_modal_target_fraction": 0.68, + "multi_target_groups": 9, + "same_suffix_different_target_example": [ + [ + 8, + 67, + 69, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 32, + "empirical_modal_target_fraction": 0.9056603773584906, + "single_target_group_query_fraction": 0.7169811320754716, + "singleton_group_query_fraction": 0.37735849056603776, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.6226415094339622, + "multi_query_empirical_modal_target_fraction": 0.8484848484848485, + "multi_target_groups": 5, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 47, + "empirical_modal_target_fraction": 0.9622641509433962, + "single_target_group_query_fraction": 0.9056603773584906, + "singleton_group_query_fraction": 0.7924528301886793, + "multi_query_groups": 5, + "multi_query_coverage_fraction": 0.20754716981132076, + "multi_query_empirical_modal_target_fraction": 0.8181818181818182, + "multi_target_groups": 2, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + } + ] + }, + "unused_composite": { + "n": 3358, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 3354, + "any_relevant_fact_in_composite_training_n": 3358, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9997022036926743, + "all_id_queries": 3358, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192, + 185, + 185, + 184 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 143, + "fraction": 0.04258487194758785, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03335318642048839, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.09380583680762358, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.09380583680762358, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 67, + 66, + 57 + ], + [ + 2, + 67, + 66, + 68, + 66, + 50 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14502680166765933, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14502680166765933, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 67, + 66, + 66, + 10 + ], + [ + 3, + 69, + 67, + 66, + 66, + 53 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.197736748064324, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.197736748064324, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 67, + 66, + 66, + 66, + 44 + ], + [ + 5, + 66, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 256, + "empirical_modal_target_fraction": 0.25431804645622397, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 256, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25431804645622397, + "multi_target_groups": 256, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 66, + 5 + ], + [ + 7, + 66, + 66, + 66, + 66, + 45 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + } + }, + "same_atomic_and_id_mask_all_lengths": true, + "source_entity_offset": 2, + "entity_offset": 3, + "source_token_shift": 1, + "separator_token": 71, + "vocab_size": 72, + "evaluation_pools": "Complete test_full_composite and ood_composite", + "composition_supervision": "Terminal entity only; no intermediate entity", + "training_objective": "All nonpadding next tokens including EOS", + "holdout": "Complete queries held out within each length; not subpaths across lengths", + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "independent_audit": { + "passed": true, + "counts": { + "atomic": 256, + "train_2": 444, + "familiar_2": 124, + "strict_2": 64, + "train_3": 768, + "familiar_3": 329, + "strict_3": 59, + "train_4": 768, + "familiar_4": 1025, + "strict_4": 53 + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "truth_edges_independently_traversed": true, + "complete_query_overlap": 0, + "all_strict_facts_absent_from_composition_training": true, + "cross_length_subpath_holdout": false + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/audit-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/audit-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..ccdfa5fa64ff3c33529d15dff359f45e5b0cbd6f --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/audit-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "audit", + "gpu": 1, + "returncode": 0, + "seconds": 3.8478133901953697 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/audit-process.log b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/audit-process.log new file mode 100644 index 0000000000000000000000000000000000000000..eb545a007827a45814fe99b4edf0aa1a80669ad9 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/audit-process.log @@ -0,0 +1 @@ +{"passed": true, "dataset_rebuilt_and_archived_exact": true, "initial_model_exact": true, "checkpoint_nodes": [0, 8000, 32000, 64000], "endpoint_tokens_exact": true, "all_nodes_exposure_counters_exact": true, "stream_state_continuation_exact": true, "max_nll_difference": 0.0, "nll_rtol": 1e-05, "nll_atol": 1e-05, "utc": "2026-10-01T22:55:06.590633+00:00"} diff --git a/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/audit.json b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/audit.json new file mode 100644 index 0000000000000000000000000000000000000000..7af0f2fdd88bf1d82b4f09914f467775fd6dc46e --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/audit.json @@ -0,0 +1,18 @@ +{ + "passed": true, + "dataset_rebuilt_and_archived_exact": true, + "initial_model_exact": true, + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "endpoint_tokens_exact": true, + "all_nodes_exposure_counters_exact": true, + "stream_state_continuation_exact": true, + "max_nll_difference": 0.0, + "nll_rtol": 1e-05, + "nll_atol": 1e-05, + "utc": "2026-10-01T22:55:06.590633+00:00" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/complete.json b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..b49b510271182d1830532b6145028d46bf34f969 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/complete.json @@ -0,0 +1,204 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 2, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "initial_model_sha256": "1d6ba35ca149ba72b6887ac6b7d757c997842207e43d0f400982621ddc26fbda", + "checkpoint_sha256": "13057a82808f11ca56aad2827e335cdc363974ee8f92fdc1f0ef28d34f8a558d", + "finished_utc": "2026-10-01T22:55:02.614238+00:00", + "parameters": 407168, + "strata_counts": { + "atomic": 256, + "train_2": 444, + "train_3": 768, + "train_4": 768 + }, + "endpoint": { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 2.151089211110957e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 2.4357745132874697e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3870967741935484, + "answer_accuracy": 0.3870967741935484, + "answer_nll": 3.700329303741455, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3870967741935484, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 10.91378402709961, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 3.686231138999574e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.41033434650455924, + "answer_accuracy": 0.41033434650455924, + "answer_nll": 3.8325417041778564, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.41033434650455924, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 11.070752143859863, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 3.678488792502321e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.22731707317073171, + "answer_accuracy": 0.22731707317073171, + "answer_nll": 6.308154582977295, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.22731707317073171, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.24044418334961, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1727319955825806, + "training_seconds": 41.3621528185904, + "estimated_training_flops": 159853314048000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + }, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000, + "estimated_training_flops": 159853314048000, + "training_seconds": 41.3621528185904, + "process_seconds": 46.28323291242123, + "environment": { + "torch": "2.6.0+cu126", + "numpy": "1.23.5", + "cuda": "12.6", + "gpu": "NVIDIA L20X", + "tf32": true + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/input-spec.json b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/input-spec.json new file mode 100644 index 0000000000000000000000000000000000000000..943b92dcdd839be604a582abad36f5326604215b --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/input-spec.json @@ -0,0 +1,65 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 2, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/learning.json b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..f4046b63060a4652e2deb8054dda340fbef01912 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/learning.json @@ -0,0 +1,1162 @@ +[ + { + "step": 0, + "lr": 0.0, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.3396453857421875 + }, + "train_2": { + "n": 444, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.326799392700195, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.307901382446289, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.352950096130371, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.3367228507995605, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.328515529632568, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.370363712310791, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.338561534881592, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.327291965484619, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.380069732666016, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": null, + "training_seconds": 0.0, + "estimated_training_flops": 0, + "supervised_tokens": 0, + "padded_input_tokens": 0 + }, + { + "step": 256, + "lr": 0.0009999982891312849, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.1796875, + "answer_accuracy": 0.1796875, + "answer_nll": 3.1881327629089355 + }, + "train_2": { + "n": 444, + "accuracy": 0.13288288288288289, + "answer_accuracy": 0.13288288288288289, + "answer_nll": 3.2239365577697754, + "atomic_correct_coverage": 0.08783783783783784, + "conditional_accuracy": 0.6410256410256411, + "autonomous_two_calls": 0.14864864864864866, + "autonomous_path_accuracy": 0.08783783783783784, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.11290322580645161, + "answer_accuracy": 0.11290322580645161, + "answer_nll": 3.2930357456207275, + "atomic_correct_coverage": 0.0967741935483871, + "conditional_accuracy": 0.5, + "autonomous_two_calls": 0.1774193548387097, + "autonomous_path_accuracy": 0.0967741935483871, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 4.6093058586120605, + "atomic_correct_coverage": 0.015625, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.03125, + "autonomous_path_accuracy": 0.015625, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.12239583333333333, + "answer_accuracy": 0.12239583333333333, + "answer_nll": 3.2837915420532227, + "atomic_correct_coverage": 0.041666666666666664, + "conditional_accuracy": 0.59375, + "autonomous_two_calls": 0.12109375, + "autonomous_path_accuracy": 0.041666666666666664, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.10638297872340426, + "answer_accuracy": 0.10638297872340426, + "answer_nll": 3.3593156337738037, + "atomic_correct_coverage": 0.05167173252279635, + "conditional_accuracy": 0.4117647058823529, + "autonomous_two_calls": 0.11854103343465046, + "autonomous_path_accuracy": 0.05167173252279635, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 4.965510845184326, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.12109375, + "answer_accuracy": 0.12109375, + "answer_nll": 3.3112704753875732, + "atomic_correct_coverage": 0.022135416666666668, + "conditional_accuracy": 0.5882352941176471, + "autonomous_two_calls": 0.09375, + "autonomous_path_accuracy": 0.022135416666666668, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.09658536585365854, + "answer_accuracy": 0.09658536585365854, + "answer_nll": 3.432162284851074, + "atomic_correct_coverage": 0.010731707317073172, + "conditional_accuracy": 0.7272727272727273, + "autonomous_two_calls": 0.08487804878048781, + "autonomous_path_accuracy": 0.010731707317073172, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 5.096226692199707, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": 1.887617588043213, + "training_seconds": 0.16611060872673988, + "estimated_training_flops": 639413256192, + "supervised_tokens": 212992, + "padded_input_tokens": 262144 + }, + { + "step": 512, + "lr": 0.0009999468942493638, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.8671875, + "answer_accuracy": 0.8671875, + "answer_nll": 0.9292136430740356 + }, + "train_2": { + "n": 444, + "accuracy": 0.6126126126126126, + "answer_accuracy": 0.6126126126126126, + "answer_nll": 1.4749919176101685, + "atomic_correct_coverage": 0.7927927927927928, + "conditional_accuracy": 0.65625, + "autonomous_two_calls": 0.795045045045045, + "autonomous_path_accuracy": 0.7927927927927928, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.20967741935483872, + "answer_accuracy": 0.20967741935483872, + "answer_nll": 2.758226156234741, + "atomic_correct_coverage": 0.8467741935483871, + "conditional_accuracy": 0.23809523809523808, + "autonomous_two_calls": 0.8467741935483871, + "autonomous_path_accuracy": 0.8467741935483871, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 5.133186340332031, + "atomic_correct_coverage": 0.53125, + "conditional_accuracy": 0.029411764705882353, + "autonomous_two_calls": 0.546875, + "autonomous_path_accuracy": 0.53125, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.3671875, + "answer_accuracy": 0.3671875, + "answer_nll": 2.1791932582855225, + "atomic_correct_coverage": 0.734375, + "conditional_accuracy": 0.4166666666666667, + "autonomous_two_calls": 0.7395833333333334, + "autonomous_path_accuracy": 0.734375, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.14893617021276595, + "answer_accuracy": 0.14893617021276595, + "answer_nll": 2.9802072048187256, + "atomic_correct_coverage": 0.7659574468085106, + "conditional_accuracy": 0.15873015873015872, + "autonomous_two_calls": 0.7720364741641338, + "autonomous_path_accuracy": 0.7659574468085106, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 5.485337734222412, + "atomic_correct_coverage": 0.3559322033898305, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.4067796610169492, + "autonomous_path_accuracy": 0.3559322033898305, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.2955729166666667, + "answer_accuracy": 0.2955729166666667, + "answer_nll": 2.4631967544555664, + "atomic_correct_coverage": 0.6497395833333334, + "conditional_accuracy": 0.3286573146292585, + "autonomous_two_calls": 0.6575520833333334, + "autonomous_path_accuracy": 0.6497395833333334, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.13170731707317074, + "answer_accuracy": 0.13170731707317074, + "answer_nll": 3.28483247756958, + "atomic_correct_coverage": 0.6517073170731708, + "conditional_accuracy": 0.15568862275449102, + "autonomous_two_calls": 0.6604878048780488, + "autonomous_path_accuracy": 0.6517073170731708, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 5.571074962615967, + "atomic_correct_coverage": 0.1509433962264151, + "conditional_accuracy": 0.125, + "autonomous_two_calls": 0.16981132075471697, + "autonomous_path_accuracy": 0.1509433962264151, + "hop_count": 4 + } + }, + "loss": 1.622312307357788, + "training_seconds": 0.33205771818757057, + "estimated_training_flops": 1278826512384, + "supervised_tokens": 425984, + "padded_input_tokens": 524288 + }, + { + "step": 1000, + "lr": 0.0009996508880478938, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.99609375, + "answer_accuracy": 0.99609375, + "answer_nll": 0.04533320665359497 + }, + "train_2": { + "n": 444, + "accuracy": 0.9954954954954955, + "answer_accuracy": 0.9954954954954955, + "answer_nll": 0.07136651873588562, + "atomic_correct_coverage": 0.9887387387387387, + "conditional_accuracy": 0.9954441913439636, + "autonomous_two_calls": 0.9887387387387387, + "autonomous_path_accuracy": 0.9887387387387387, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.2661290322580645, + "answer_accuracy": 0.2661290322580645, + "answer_nll": 2.716020107269287, + "atomic_correct_coverage": 0.9919354838709677, + "conditional_accuracy": 0.2682926829268293, + "autonomous_two_calls": 0.9919354838709677, + "autonomous_path_accuracy": 0.9919354838709677, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 6.5745391845703125, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9830729166666666, + "answer_accuracy": 0.9830729166666666, + "answer_nll": 0.15529632568359375, + "atomic_correct_coverage": 0.9895833333333334, + "conditional_accuracy": 0.9828947368421053, + "autonomous_two_calls": 0.9895833333333334, + "autonomous_path_accuracy": 0.9895833333333334, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3465045592705167, + "answer_accuracy": 0.3465045592705167, + "answer_nll": 3.0650041103363037, + "atomic_correct_coverage": 0.9756838905775076, + "conditional_accuracy": 0.34579439252336447, + "autonomous_two_calls": 0.9756838905775076, + "autonomous_path_accuracy": 0.9756838905775076, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 6.930920124053955, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9622395833333334, + "answer_accuracy": 0.9622395833333334, + "answer_nll": 0.23761795461177826, + "atomic_correct_coverage": 0.9778645833333334, + "conditional_accuracy": 0.9613848202396804, + "autonomous_two_calls": 0.98046875, + "autonomous_path_accuracy": 0.9778645833333334, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.1746341463414634, + "answer_accuracy": 0.1746341463414634, + "answer_nll": 4.332829475402832, + "atomic_correct_coverage": 0.9785365853658536, + "conditional_accuracy": 0.1744765702891326, + "autonomous_two_calls": 0.9814634146341463, + "autonomous_path_accuracy": 0.9785365853658536, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 6.812953948974609, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.3245609998703003, + "training_seconds": 0.6485989280045033, + "estimated_training_flops": 2497708032000, + "supervised_tokens": 832000, + "padded_input_tokens": 1024000 + }, + { + "step": 2000, + "lr": 0.000998233549067816, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.009820581413805485 + }, + "train_2": { + "n": 444, + "accuracy": 0.9977477477477478, + "answer_accuracy": 0.9977477477477478, + "answer_nll": 0.01654168590903282, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9977477477477478, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3790322580645161, + "answer_accuracy": 0.3790322580645161, + "answer_nll": 2.9203667640686035, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3790322580645161, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 7.734775543212891, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9986979166666666, + "answer_accuracy": 0.9986979166666666, + "answer_nll": 0.033731888979673386, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9986979166666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3465045592705167, + "answer_accuracy": 0.3465045592705167, + "answer_nll": 3.28592586517334, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3465045592705167, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 8.404011726379395, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9921875, + "answer_accuracy": 0.9921875, + "answer_nll": 0.056565675884485245, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9921875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.19414634146341464, + "answer_accuracy": 0.19414634146341464, + "answer_nll": 5.150993824005127, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.19414634146341464, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 8.119205474853516, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03773584905660377, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.2185488939285278, + "training_seconds": 1.295404341071844, + "estimated_training_flops": 4995416064000, + "supervised_tokens": 1664000, + "padded_input_tokens": 2048000 + }, + { + "step": 4000, + "lr": 0.0009921451014991594, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0009351986227557063 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0010630678152665496, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3951612903225806, + "answer_accuracy": 0.3951612903225806, + "answer_nll": 2.920006036758423, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3951612903225806, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0625, + "answer_accuracy": 0.0625, + "answer_nll": 8.693233489990234, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0016775164986029267, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3860182370820669, + "answer_accuracy": 0.3860182370820669, + "answer_nll": 3.402132272720337, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3860182370820669, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 9.08261775970459, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.001554984599351883, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.1951219512195122, + "answer_accuracy": 0.1951219512195122, + "answer_nll": 5.4838457107543945, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.1951219512195122, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 9.733278274536133, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1864310503005981, + "training_seconds": 2.58870792016387, + "estimated_training_flops": 9990832128000, + "supervised_tokens": 3328000, + "padded_input_tokens": 4096000 + }, + { + "step": 8000, + "lr": 0.0009672142859549292, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0003916011773981154 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00043484719935804605, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.4032258064516129, + "answer_accuracy": 0.4032258064516129, + "answer_nll": 3.128295660018921, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.4032258064516129, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.078125, + "answer_accuracy": 0.078125, + "answer_nll": 9.154705047607422, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.078125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0007381623145192862, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3799392097264438, + "answer_accuracy": 0.3799392097264438, + "answer_nll": 3.49904727935791, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3799392097264438, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 9.684517860412598, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0007337417919188738, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2126829268292683, + "answer_accuracy": 0.2126829268292683, + "answer_nll": 5.611420154571533, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2126829268292683, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 9.866409301757812, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1816394329071045, + "training_seconds": 5.17214784771204, + "estimated_training_flops": 19981664256000, + "supervised_tokens": 6656000, + "padded_input_tokens": 8192000 + }, + { + "step": 16000, + "lr": 0.0008705396215758866, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00019573891768231988 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0002533068764023483, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3629032258064516, + "answer_accuracy": 0.3629032258064516, + "answer_nll": 3.5289313793182373, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3629032258064516, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0625, + "answer_accuracy": 0.0625, + "answer_nll": 8.98580265045166, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0003905433404725045, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.425531914893617, + "answer_accuracy": 0.425531914893617, + "answer_nll": 3.765085220336914, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.425531914893617, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 10.585415840148926, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00039460475090891123, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.20780487804878048, + "answer_accuracy": 0.20780487804878048, + "answer_nll": 6.022488594055176, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.20780487804878048, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.346224784851074, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1786839962005615, + "training_seconds": 10.337951172143221, + "estimated_training_flops": 39963328512000, + "supervised_tokens": 13312000, + "padded_input_tokens": 16384000 + }, + { + "step": 32000, + "lr": 0.0005522158479326845, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.000128210085676983 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00015502481255680323, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3548387096774194, + "answer_accuracy": 0.3548387096774194, + "answer_nll": 3.6495862007141113, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3548387096774194, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 10.195695877075195, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0002773787418846041, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3708206686930091, + "answer_accuracy": 0.3708206686930091, + "answer_nll": 3.930478572845459, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3708206686930091, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.05084745762711865, + "answer_accuracy": 0.05084745762711865, + "answer_nll": 11.208965301513672, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.05084745762711865, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00027442199643701315, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.21951219512195122, + "answer_accuracy": 0.21951219512195122, + "answer_nll": 6.235655307769775, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.21951219512195122, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 10.985115051269531, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.173978567123413, + "training_seconds": 20.680289693176746, + "estimated_training_flops": 79926657024000, + "supervised_tokens": 26624000, + "padded_input_tokens": 32768000 + }, + { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 2.151089211110957e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 2.4357745132874697e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3870967741935484, + "answer_accuracy": 0.3870967741935484, + "answer_nll": 3.700329303741455, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3870967741935484, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 10.91378402709961, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 3.686231138999574e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.41033434650455924, + "answer_accuracy": 0.41033434650455924, + "answer_nll": 3.8325417041778564, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.41033434650455924, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 11.070752143859863, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 3.678488792502321e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.22731707317073171, + "answer_accuracy": 0.22731707317073171, + "answer_nll": 6.308154582977295, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.22731707317073171, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.24044418334961, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1727319955825806, + "training_seconds": 41.3621528185904, + "estimated_training_flops": 159853314048000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + } +] diff --git a/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/spec.json b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/spec.json new file mode 100644 index 0000000000000000000000000000000000000000..cc40338a1220030d63a8e022b51ae0b9e0ccbffa --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/spec.json @@ -0,0 +1,66 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 2, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/status.json b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/status.json new file mode 100644 index 0000000000000000000000000000000000000000..d332dc2b8bde7c33219e9f3a7045f6466b684b92 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/status.json @@ -0,0 +1,4 @@ +{ + "step": 64000, + "budget": 64000 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/train-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/train-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..58dc6cb6d7e6a0763246ad4e87aab05b4db3d774 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/train-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "train", + "gpu": 1, + "returncode": 0, + "seconds": 55.71368968114257 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/train-process.log b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/train-process.log new file mode 100644 index 0000000000000000000000000000000000000000..54dfeee046a941ca1aa08c23844f52b7a932450c --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/train-process.log @@ -0,0 +1,10 @@ +{"run": "w751011-i752011-d128-l2-r1-s64000", "step": 0, "atomic": 0.0, "familiar": {"2": 0.0, "3": 0.0, "4": 0.0}} +{"run": "w751011-i752011-d128-l2-r1-s64000", "step": 256, "atomic": 0.1796875, "familiar": {"2": 0.11290322580645161, "3": 0.10638297872340426, "4": 0.09658536585365854}} +{"run": "w751011-i752011-d128-l2-r1-s64000", "step": 512, "atomic": 0.8671875, "familiar": {"2": 0.20967741935483872, "3": 0.14893617021276595, "4": 0.13170731707317074}} +{"run": "w751011-i752011-d128-l2-r1-s64000", "step": 1000, "atomic": 0.99609375, "familiar": {"2": 0.2661290322580645, "3": 0.3465045592705167, "4": 0.1746341463414634}} +{"run": "w751011-i752011-d128-l2-r1-s64000", "step": 2000, "atomic": 1.0, "familiar": {"2": 0.3790322580645161, "3": 0.3465045592705167, "4": 0.19414634146341464}} +{"run": "w751011-i752011-d128-l2-r1-s64000", "step": 4000, "atomic": 1.0, "familiar": {"2": 0.3951612903225806, "3": 0.3860182370820669, "4": 0.1951219512195122}} +{"run": "w751011-i752011-d128-l2-r1-s64000", "step": 8000, "atomic": 1.0, "familiar": {"2": 0.4032258064516129, "3": 0.3799392097264438, "4": 0.2126829268292683}} +{"run": "w751011-i752011-d128-l2-r1-s64000", "step": 16000, "atomic": 1.0, "familiar": {"2": 0.3629032258064516, "3": 0.425531914893617, "4": 0.20780487804878048}} +{"run": "w751011-i752011-d128-l2-r1-s64000", "step": 32000, "atomic": 1.0, "familiar": {"2": 0.3548387096774194, "3": 0.3708206686930091, "4": 0.21951219512195122}} +{"run": "w751011-i752011-d128-l2-r1-s64000", "step": 64000, "atomic": 1.0, "familiar": {"2": 0.3870967741935484, "3": 0.41033434650455924, "4": 0.22731707317073171}} diff --git a/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/world-metadata.json b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/world-metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0d160c9e2f6a49b4d5ec9ef5ade290343346beb5 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l2-r1-s64000/world-metadata.json @@ -0,0 +1,11519 @@ +{ + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "id_mask": [ + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + false, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + true, + true, + false, + false, + false, + true, + true, + true, + false, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + false, + true, + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true + ], + "source_worlds": { + "2": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": true, + "phi_actual": 2.3125, + "mixed_composite_excluded": 392, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 444, + "test_composite": 124, + "test_full_composite": 124, + "ood_composite": 64, + "unused_composite": 0 + }, + "dataset_sha256": "59e810faf8478e02f02ffd785bce119413d62608e48c5d41a4c24032dda4abc2", + "warnings": [ + "Training request capped at eligible pool" + ], + "hops": 2, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 568, + "all_paths_total": 1024, + "training_fraction_of_id_paths": 0.7816901408450704, + "training_fraction_of_nonreserved_id_paths": 1.0, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 29, + 49, + 14, + 32, + 62, + 86, + 66, + 5, + 8, + 83, + 50, + 88, + 116, + 23, + 87, + 80, + 100, + 9, + 117, + 81, + 79, + 54, + 91, + 111, + 19, + 4, + 68, + 2, + 113, + 40, + 65, + 27, + 38, + 0, + 41, + 21, + 1, + 78, + 82, + 101, + 15, + 20, + 59, + 35, + 99, + 53, + 84, + 123, + 114, + 56, + 108, + 72, + 55, + 104, + 92, + 22, + 89, + 43, + 18, + 11, + 74, + 13, + 52, + 60, + 25, + 109, + 48, + 57, + 71, + 115, + 30, + 110, + 61, + 119, + 44, + 95, + 106, + 47, + 121, + 24, + 69, + 118, + 98, + 39, + 34, + 112, + 26, + 102, + 36, + 75, + 33, + 105, + 96, + 51, + 94, + 58, + 90, + 12, + 10, + 97, + 76, + 107, + 93, + 42, + 6, + 17, + 46, + 122, + 64, + 67, + 73, + 85, + 77, + 28, + 7, + 45, + 3, + 120, + 63, + 70, + 37, + 16, + 31, + 103 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 444, + "any_repeated_entity_n": 45, + "any_repeated_entity_fraction": 0.10135135135135136, + "answer_equals_preceding_entity_n": 33, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 185, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 0, + 4, + 2, + 0, + 1, + 0, + 2, + 0, + 3, + 2, + 0, + 1, + 2, + 0, + 0, + 2, + 3, + 3, + 2, + 1, + 3, + 3, + 0, + 3, + 2, + 2, + 0, + 2, + 3, + 1, + 2, + 4, + 3, + 3, + 2, + 0, + 0, + 1, + 3, + 0, + 0, + 4, + 4, + 1, + 0, + 2, + 2, + 0, + 0, + 0, + 1, + 4, + 3, + 0, + 0, + 1, + 0, + 3, + 0, + 0, + 4, + 2, + 2, + 2, + 0, + 2, + 2, + 0, + 2, + 3, + 0, + 0, + 2, + 3, + 3, + 4, + 0, + 3, + 4, + 2, + 3, + 0, + 2, + 2, + 0, + 3, + 1, + 3, + 3, + 3, + 0, + 2, + 3, + 1, + 0, + 3, + 2, + 3, + 3, + 3, + 1, + 2, + 2, + 2, + 0, + 3, + 2, + 4, + 2, + 2, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 3, + 3, + 0, + 3, + 3, + 2, + 3, + 3, + 0, + 1, + 3, + 3, + 1, + 2, + 3, + 1, + 1, + 1, + 4, + 3, + 3, + 0, + 2, + 3, + 2, + 3, + 1, + 3, + 0, + 3, + 2, + 0, + 0, + 2, + 2, + 4, + 1, + 3, + 3, + 3, + 0, + 2, + 2, + 2, + 2, + 2, + 0, + 3, + 0, + 0, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 0, + 2, + 0, + 3, + 2, + 2, + 4, + 2, + 0, + 4, + 2, + 3, + 4, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 4, + 2, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 2, + 2, + 3, + 1, + 2, + 2, + 2, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 2, + 1, + 0, + 1, + 3, + 4, + 2, + 2, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 182, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 0, + 3, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 0, + 5, + 3, + 0, + 1, + 1, + 1, + 3, + 0, + 4, + 4, + 4, + 0, + 5, + 4, + 1, + 2, + 1, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 3, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 5, + 4, + 0, + 1, + 2, + 0, + 0, + 4, + 6, + 5, + 5, + 0, + 2, + 2, + 2, + 1, + 0, + 2, + 3, + 3, + 2, + 2, + 2, + 2, + 2, + 0, + 2, + 2, + 4, + 0, + 4, + 3, + 1, + 1, + 1, + 1, + 2, + 2, + 1, + 0, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 0, + 2, + 3, + 0, + 4, + 0, + 1, + 1, + 2, + 3, + 0, + 3, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 2, + 1, + 3, + 3, + 3, + 2, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 2, + 2, + 2, + 2, + 2, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 3, + 2, + 0, + 3, + 2, + 2, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 2, + 3, + 1, + 5, + 6, + 7, + 6, + 3, + 2, + 0, + 3, + 2, + 3, + 2, + 3, + 0, + 4, + 3, + 3, + 1, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 1, + 2, + 2, + 0, + 5, + 0, + 6, + 0, + 0, + 4, + 4, + 3, + 1, + 3, + 2, + 2, + 0, + 2, + 3, + 2, + 4, + 0, + 3, + 3, + 2, + 0, + 2, + 3, + 4, + 4, + 4, + 3 + ], + "id_count_min": 0, + "id_count_max": 7 + } + ] + }, + "test_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + }, + "test_full_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 3, + 0, + 4, + 0, + 4, + 3, + 2, + 3, + 0, + 3, + 4, + 0, + 8, + 5, + 4, + 4, + 0, + 5, + 0, + 5, + 3, + 0, + 3, + 4, + 0, + 0, + 7, + 6, + 3, + 3, + 2, + 4, + 6, + 0, + 7, + 6, + 6, + 0, + 7, + 7, + 2, + 4, + 5, + 4, + 4, + 4, + 0, + 0, + 2, + 4, + 0, + 0, + 8, + 9, + 6, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 6, + 5, + 0, + 0, + 4, + 0, + 4, + 0, + 0, + 5, + 4, + 4, + 3, + 0, + 7, + 6, + 0, + 3, + 5, + 0, + 0, + 6, + 9, + 8, + 9, + 0, + 5, + 6, + 4, + 4, + 0, + 4, + 5, + 3, + 5, + 3, + 5, + 5, + 5, + 0, + 4, + 5, + 5, + 0, + 7, + 5, + 4, + 4, + 4, + 2, + 4, + 4, + 3, + 0, + 4, + 3, + 5, + 2, + 4, + 4, + 0, + 0, + 4, + 3, + 0, + 7, + 0, + 3, + 3, + 5, + 6, + 0, + 6, + 4, + 3, + 4, + 4, + 0, + 1, + 3, + 3, + 1, + 4, + 5, + 3, + 2, + 4, + 7, + 6, + 5, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 7, + 5, + 0, + 0, + 4, + 4, + 6, + 3, + 5, + 4, + 5, + 0, + 6, + 5, + 6, + 5, + 5, + 0, + 6, + 0, + 0, + 0, + 6, + 3, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 0, + 4, + 3, + 4, + 0, + 0, + 5, + 5, + 3, + 7, + 10, + 9, + 8, + 3, + 4, + 0, + 6, + 4, + 5, + 6, + 5, + 0, + 8, + 5, + 6, + 5, + 0, + 6, + 4, + 0, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 9, + 0, + 8, + 0, + 0, + 6, + 6, + 6, + 2, + 5, + 4, + 4, + 0, + 2, + 3, + 4, + 6, + 0, + 5, + 5, + 3, + 0, + 3, + 6, + 8, + 6, + 6, + 5 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 444, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 444, + "any_relevant_fact_in_composite_training_n": 444, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 444, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 185, + 182 + ], + "within_split_majority_tail": { + "target_token": 8, + "count": 16, + "fraction": 0.036036036036036036, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.036036036036036036, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08783783783783784, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08783783783783784, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 36, + 67, + 66, + 43 + ], + [ + 47, + 69, + 66, + 56 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.13063063063063063, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.13063063063063063, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 54, + 66, + 66, + 43 + ], + [ + 11, + 66, + 66, + 22 + ] + ] + } + ] + }, + "test_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 15, + 68, + 66, + 34 + ], + [ + 18, + 68, + 66, + 22 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 35, + 66, + 66, + 53 + ], + [ + 55, + 66, + 66, + 60 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 66, + 53 + ], + [ + 5, + 69, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 53 + ], + [ + 25, + 66, + 66, + 16 + ] + ] + } + ] + }, + "ood_composite": { + "n": 64, + "unique_relevant_atomic_facts": 53, + "relevant_atomic_fact_coverage_of_graph": 0.20703125, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 44, + 39 + ], + "within_split_majority_tail": { + "target_token": 58, + "count": 5, + "fraction": 0.078125, + "distinct_targets": 30 + }, + "train_composite_majority_tail_fraction": 0.0, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.25, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 6, + 67, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.328125, + "single_target_group_query_fraction": 0.03125, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.328125, + "multi_target_groups": 14, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 13, + 66, + 66, + 13 + ] + ] + } + ] + }, + "unused_composite": { + "n": 0, + "unique_relevant_atomic_facts": 0, + "relevant_atomic_fact_coverage_of_graph": 0.0, + "all_relevant_facts_in_atomic_training_fraction": null, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": null, + "all_id_queries": 0, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 0, + 0 + ], + "within_split_majority_tail": { + "target_token": null, + "count": 0, + "fraction": null, + "distinct_targets": 0 + }, + "train_composite_majority_tail_fraction": null, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + }, + { + "suffix_relation_count": 2, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "3": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 2331, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 329, + "test_full_composite": 329, + "ood_composite": 59, + "unused_composite": 609 + }, + "dataset_sha256": "874230d99d7b1184953935d1476d34c3d69968bcc196b499299cf4c63dc75d6f", + "warnings": [], + "hops": 3, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 1706, + "all_paths_total": 4096, + "training_fraction_of_id_paths": 0.4501758499413834, + "training_fraction_of_nonreserved_id_paths": 0.5577342047930284, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 177, + 263, + 289, + 328, + 73, + 17, + 112, + 159, + 45, + 110, + 16, + 286, + 225, + 25, + 95, + 24, + 49, + 66, + 230, + 201, + 19, + 7, + 172, + 323, + 321, + 152, + 181, + 58, + 313, + 169, + 218, + 231, + 221, + 121, + 285, + 243, + 150, + 256, + 292, + 141, + 105, + 51, + 34, + 37, + 102, + 266, + 196, + 139, + 106, + 250, + 65, + 28, + 195, + 188, + 113, + 52, + 228, + 173, + 246, + 99, + 125, + 167, + 175, + 244, + 61, + 47, + 178, + 257, + 50, + 2, + 301, + 252, + 55, + 202, + 165, + 41, + 148, + 140, + 309, + 239, + 213, + 238, + 128, + 318, + 97, + 86, + 242, + 311, + 88, + 197, + 248, + 96, + 293, + 273, + 155, + 281, + 90, + 214, + 87, + 278, + 270, + 21, + 237, + 35, + 71, + 44, + 157, + 315, + 156, + 174, + 222, + 4, + 134, + 249, + 32, + 119, + 260, + 130, + 232, + 259, + 192, + 183, + 291, + 185, + 264, + 79, + 75, + 104, + 13, + 296, + 26, + 133, + 101, + 272, + 304, + 205, + 319, + 254, + 11, + 162, + 48, + 93, + 306, + 190, + 290, + 27, + 262, + 168, + 116, + 200, + 109, + 277, + 118, + 29, + 279, + 268, + 314, + 111, + 245, + 288, + 298, + 186, + 81, + 226, + 12, + 324, + 227, + 171, + 18, + 326, + 233, + 179, + 15, + 307, + 170, + 144, + 275, + 43, + 287, + 320, + 103, + 36, + 215, + 302, + 164, + 153, + 120, + 59, + 1, + 94, + 209, + 189, + 180, + 76, + 77, + 123, + 98, + 83, + 108, + 224, + 40, + 67, + 129, + 229, + 54, + 269, + 149, + 265, + 297, + 22, + 92, + 303, + 126, + 282, + 223, + 42, + 191, + 216, + 100, + 135, + 184, + 14, + 72, + 163, + 253, + 131, + 207, + 3, + 255, + 82, + 166, + 312, + 241, + 295, + 251, + 204, + 84, + 57, + 274, + 78, + 299, + 8, + 276, + 10, + 217, + 212, + 176, + 267, + 74, + 107, + 147, + 327, + 91, + 33, + 305, + 151, + 38, + 199, + 325, + 0, + 182, + 122, + 9, + 300, + 235, + 160, + 85, + 317, + 187, + 208, + 56, + 219, + 161, + 70, + 80, + 308, + 31, + 124, + 194, + 316, + 220, + 145, + 154, + 115, + 258, + 271, + 210, + 198, + 310, + 60, + 68, + 234, + 114, + 247, + 62, + 64, + 322, + 283, + 23, + 284, + 203, + 261, + 136, + 294, + 89, + 30, + 211, + 63, + 6, + 20, + 158, + 146, + 53, + 5, + 143, + 117, + 137, + 132, + 138, + 193, + 127, + 280, + 236, + 69, + 39, + 206, + 142, + 46, + 240 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 117, + "any_repeated_entity_fraction": 0.15234375, + "answer_equals_preceding_entity_n": 63, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 189, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 5, + 0, + 7, + 2, + 2, + 6, + 0, + 5, + 3, + 0, + 7, + 5, + 5, + 2, + 0, + 5, + 0, + 6, + 6, + 0, + 7, + 2, + 0, + 0, + 2, + 4, + 3, + 5, + 3, + 4, + 4, + 0, + 6, + 5, + 3, + 0, + 3, + 7, + 0, + 4, + 7, + 4, + 3, + 4, + 0, + 4, + 4, + 6, + 0, + 0, + 5, + 5, + 5, + 0, + 3, + 2, + 0, + 0, + 0, + 4, + 6, + 5, + 0, + 0, + 3, + 0, + 3, + 0, + 0, + 9, + 2, + 6, + 3, + 0, + 2, + 1, + 0, + 3, + 4, + 0, + 0, + 4, + 3, + 4, + 7, + 0, + 4, + 6, + 3, + 7, + 0, + 1, + 3, + 7, + 3, + 3, + 2, + 5, + 7, + 0, + 2, + 8, + 4, + 0, + 6, + 5, + 7, + 7, + 5, + 3, + 3, + 4, + 0, + 0, + 4, + 8, + 4, + 6, + 5, + 3, + 0, + 0, + 5, + 3, + 0, + 2, + 0, + 5, + 5, + 3, + 4, + 0, + 3, + 4, + 1, + 3, + 7, + 0, + 1, + 3, + 4, + 3, + 4, + 5, + 2, + 2, + 4, + 6, + 5, + 3, + 0, + 3, + 4, + 4, + 2, + 2, + 3, + 0, + 4, + 3, + 0, + 0, + 2, + 3, + 5, + 3, + 3, + 4, + 5, + 0, + 4, + 7, + 1, + 4, + 1, + 0, + 2, + 0, + 0, + 0, + 3, + 3, + 2, + 4, + 0, + 5, + 4, + 5, + 0, + 0, + 1, + 1, + 4, + 0, + 0, + 2, + 5, + 3, + 1, + 4, + 1, + 4, + 3, + 0, + 0, + 6, + 3, + 5, + 7, + 3, + 0, + 5, + 2, + 6, + 5, + 0, + 5, + 7, + 0, + 3, + 6, + 0, + 6, + 6, + 5, + 0, + 3, + 0, + 6, + 0, + 0, + 4, + 2, + 4, + 4, + 5, + 2, + 4, + 0, + 1, + 4, + 3, + 4, + 0, + 6, + 2, + 6, + 0, + 4, + 5, + 5, + 5, + 7, + 4 + ], + "id_count_min": 0, + "id_count_max": 9 + }, + { + "hop": 2, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 4, + 0, + 1, + 2, + 0, + 1, + 0, + 6, + 4, + 0, + 8, + 10, + 4, + 3, + 0, + 8, + 0, + 8, + 3, + 0, + 1, + 3, + 0, + 0, + 7, + 11, + 2, + 1, + 1, + 1, + 10, + 0, + 8, + 6, + 5, + 0, + 7, + 7, + 0, + 3, + 3, + 2, + 3, + 2, + 0, + 2, + 1, + 2, + 0, + 0, + 12, + 11, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 4, + 0, + 0, + 4, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 2, + 0, + 6, + 4, + 0, + 11, + 6, + 0, + 0, + 4, + 5, + 7, + 13, + 0, + 1, + 4, + 3, + 3, + 0, + 7, + 6, + 8, + 2, + 3, + 2, + 4, + 2, + 0, + 4, + 1, + 5, + 0, + 6, + 9, + 2, + 1, + 1, + 2, + 7, + 3, + 1, + 0, + 2, + 2, + 1, + 1, + 5, + 1, + 0, + 0, + 5, + 5, + 0, + 3, + 0, + 1, + 4, + 1, + 3, + 0, + 5, + 4, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 0, + 0, + 3, + 7, + 5, + 6, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 2, + 2, + 2, + 1, + 0, + 3, + 0, + 8, + 9, + 6, + 8, + 3, + 0, + 2, + 0, + 0, + 0, + 4, + 3, + 1, + 3, + 0, + 3, + 5, + 6, + 0, + 0, + 3, + 2, + 4, + 0, + 0, + 6, + 6, + 3, + 10, + 14, + 7, + 15, + 3, + 2, + 0, + 1, + 3, + 4, + 4, + 4, + 0, + 11, + 7, + 8, + 5, + 0, + 5, + 5, + 0, + 1, + 4, + 0, + 2, + 2, + 4, + 0, + 10, + 0, + 9, + 0, + 0, + 9, + 8, + 5, + 3, + 0, + 3, + 4, + 0, + 5, + 1, + 3, + 3, + 0, + 7, + 2, + 5, + 0, + 1, + 5, + 9, + 6, + 6, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 175, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 6, + 5, + 2, + 1, + 0, + 2, + 2, + 0, + 7, + 7, + 5, + 7, + 0, + 7, + 0, + 9, + 3, + 0, + 2, + 2, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 1, + 5, + 0, + 5, + 5, + 9, + 0, + 8, + 7, + 3, + 3, + 3, + 2, + 2, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 9, + 5, + 8, + 0, + 4, + 2, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 4, + 3, + 2, + 0, + 6, + 3, + 0, + 5, + 3, + 0, + 0, + 4, + 5, + 10, + 6, + 0, + 3, + 4, + 5, + 7, + 0, + 5, + 9, + 5, + 1, + 2, + 2, + 0, + 1, + 0, + 1, + 4, + 10, + 0, + 8, + 7, + 1, + 2, + 2, + 2, + 2, + 4, + 4, + 0, + 4, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 3, + 1, + 0, + 2, + 0, + 7, + 7, + 8, + 9, + 0, + 6, + 4, + 1, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 3, + 4, + 3, + 6, + 1, + 4, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 16, + 9, + 0, + 0, + 3, + 3, + 4, + 2, + 4, + 3, + 3, + 0, + 10, + 8, + 7, + 8, + 4, + 0, + 4, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 0, + 4, + 5, + 5, + 0, + 0, + 3, + 5, + 3, + 0, + 0, + 5, + 5, + 3, + 14, + 5, + 8, + 6, + 6, + 5, + 0, + 4, + 5, + 2, + 1, + 5, + 0, + 6, + 12, + 7, + 0, + 0, + 1, + 1, + 0, + 2, + 6, + 0, + 2, + 3, + 2, + 0, + 9, + 0, + 5, + 0, + 0, + 5, + 7, + 2, + 6, + 6, + 8, + 8, + 0, + 0, + 1, + 2, + 6, + 0, + 3, + 8, + 1, + 0, + 4, + 4, + 11, + 7, + 8, + 7 + ], + "id_count_min": 0, + "id_count_max": 16 + } + ] + }, + "test_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + }, + "test_full_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 192, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 6, + 0, + 12, + 0, + 14, + 9, + 4, + 8, + 0, + 13, + 9, + 0, + 22, + 22, + 14, + 12, + 0, + 20, + 0, + 23, + 12, + 0, + 10, + 7, + 0, + 0, + 16, + 22, + 5, + 6, + 6, + 6, + 19, + 0, + 19, + 16, + 17, + 0, + 18, + 21, + 3, + 10, + 13, + 8, + 8, + 7, + 0, + 8, + 6, + 8, + 0, + 0, + 26, + 21, + 18, + 0, + 8, + 4, + 0, + 0, + 0, + 8, + 10, + 11, + 0, + 0, + 9, + 0, + 5, + 0, + 0, + 12, + 6, + 11, + 7, + 0, + 14, + 8, + 0, + 19, + 13, + 0, + 0, + 12, + 13, + 21, + 26, + 0, + 8, + 14, + 11, + 17, + 0, + 13, + 18, + 20, + 6, + 8, + 6, + 9, + 10, + 0, + 7, + 13, + 19, + 0, + 20, + 21, + 10, + 10, + 8, + 7, + 12, + 11, + 5, + 0, + 10, + 11, + 7, + 8, + 12, + 4, + 0, + 0, + 13, + 9, + 0, + 7, + 0, + 13, + 16, + 12, + 16, + 0, + 14, + 12, + 3, + 8, + 9, + 0, + 1, + 3, + 4, + 3, + 14, + 13, + 5, + 6, + 10, + 19, + 11, + 13, + 0, + 4, + 6, + 5, + 2, + 2, + 3, + 0, + 27, + 19, + 0, + 0, + 7, + 8, + 11, + 7, + 8, + 7, + 11, + 0, + 22, + 24, + 14, + 20, + 8, + 0, + 8, + 0, + 0, + 0, + 9, + 7, + 5, + 9, + 0, + 12, + 14, + 16, + 0, + 0, + 7, + 8, + 11, + 0, + 0, + 13, + 16, + 9, + 25, + 23, + 16, + 25, + 12, + 7, + 0, + 11, + 11, + 11, + 12, + 12, + 0, + 22, + 21, + 21, + 10, + 0, + 11, + 13, + 0, + 6, + 16, + 0, + 10, + 11, + 11, + 0, + 22, + 0, + 20, + 0, + 0, + 18, + 17, + 11, + 13, + 11, + 13, + 16, + 0, + 6, + 6, + 8, + 13, + 0, + 16, + 12, + 12, + 0, + 9, + 14, + 25, + 18, + 21, + 17 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.75, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.0234375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.026041666666666668, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 189, + 177, + 175 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 43, + "fraction": 0.055989583333333336, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.055989583333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10807291666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10807291666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.1640625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.1640625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.23177083333333334, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23177083333333334, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + } + ] + }, + "test_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 54, + 69, + 68, + 66, + 8 + ], + [ + 65, + 68, + 67, + 66, + 25 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 11, + 67, + 66, + 66, + 45 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 69, + 66, + 42 + ], + [ + 4, + 69, + 67, + 66, + 59 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 67, + 66, + 66, + 45 + ], + [ + 12, + 69, + 66, + 66, + 16 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "ood_composite": { + "n": 59, + "unique_relevant_atomic_facts": 51, + "relevant_atomic_fact_coverage_of_graph": 0.19921875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 59, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 41, + 30, + 31 + ], + "within_split_majority_tail": { + "target_token": 60, + "count": 6, + "fraction": 0.1016949152542373, + "distinct_targets": 25 + }, + "train_composite_majority_tail_fraction": 0.03389830508474576, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.23728813559322035, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23728813559322035, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 8, + 67, + 69, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.5423728813559322, + "single_target_group_query_fraction": 0.1016949152542373, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.5423728813559322, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 39, + "empirical_modal_target_fraction": 0.7288135593220338, + "single_target_group_query_fraction": 0.4745762711864407, + "singleton_group_query_fraction": 0.4067796610169492, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 0.5932203389830508, + "multi_query_empirical_modal_target_fraction": 0.5428571428571428, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 13, + 66, + 66, + 66, + 13 + ], + [ + 18, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "unused_composite": { + "n": 609, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 609, + "any_relevant_fact_in_composite_training_n": 609, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 609, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 186, + 172, + 174 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 26, + "fraction": 0.042692939244663386, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03940886699507389, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07717569786535304, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07717569786535304, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 69, + 67, + 66, + 52 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14614121510673234, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14614121510673234, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 67, + 66, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.22660098522167488, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.22660098522167488, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 66, + 10 + ], + [ + 6, + 66, + 66, + 66, + 60 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "4": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 11180, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 512, + "test_full_composite": 1025, + "ood_composite": 53, + "unused_composite": 3358 + }, + "dataset_sha256": "11ec0124d665d8362ddc331d5c39bc251f7cada4bc5263b5524390fbb9319e85", + "warnings": [], + "hops": 4, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 5151, + "all_paths_total": 16384, + "training_fraction_of_id_paths": 0.14909726266744322, + "training_fraction_of_nonreserved_id_paths": 0.1861366941347552, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 560, + 766, + 474, + 184, + 609, + 39, + 576, + 63, + 547, + 821, + 853, + 222, + 688, + 718, + 268, + 448, + 856, + 266, + 593, + 433, + 505, + 736, + 138, + 300, + 982, + 250, + 165, + 817, + 112, + 984, + 545, + 654, + 773, + 700, + 312, + 651, + 154, + 297, + 224, + 639, + 16, + 411, + 440, + 225, + 825, + 972, + 709, + 355, + 903, + 846, + 10, + 353, + 449, + 498, + 782, + 803, + 106, + 85, + 810, + 528, + 58, + 194, + 514, + 488, + 289, + 789, + 424, + 889, + 1014, + 877, + 417, + 4, + 691, + 597, + 81, + 412, + 401, + 635, + 331, + 199, + 115, + 341, + 743, + 447, + 288, + 965, + 950, + 21, + 507, + 399, + 519, + 414, + 953, + 403, + 834, + 619, + 486, + 379, + 347, + 969, + 974, + 952, + 568, + 30, + 337, + 882, + 722, + 955, + 506, + 831, + 359, + 418, + 454, + 105, + 516, + 157, + 109, + 940, + 228, + 95, + 145, + 642, + 543, + 787, + 124, + 243, + 996, + 1007, + 464, + 571, + 721, + 921, + 745, + 340, + 710, + 634, + 253, + 947, + 838, + 986, + 520, + 442, + 841, + 429, + 948, + 126, + 605, + 744, + 922, + 181, + 1004, + 958, + 544, + 192, + 1016, + 75, + 430, + 247, + 238, + 649, + 800, + 600, + 103, + 76, + 352, + 827, + 296, + 606, + 369, + 441, + 842, + 848, + 357, + 406, + 670, + 416, + 293, + 677, + 973, + 910, + 264, + 434, + 196, + 113, + 149, + 515, + 939, + 808, + 131, + 871, + 720, + 478, + 586, + 936, + 906, + 432, + 724, + 822, + 160, + 933, + 62, + 561, + 633, + 824, + 407, + 226, + 33, + 248, + 680, + 804, + 740, + 208, + 167, + 214, + 476, + 233, + 302, + 292, + 220, + 6, + 750, + 189, + 503, + 90, + 91, + 914, + 937, + 93, + 187, + 366, + 951, + 373, + 18, + 695, + 203, + 310, + 625, + 398, + 339, + 241, + 556, + 570, + 812, + 944, + 14, + 562, + 327, + 667, + 303, + 100, + 173, + 623, + 860, + 781, + 283, + 924, + 1000, + 180, + 899, + 767, + 523, + 125, + 316, + 564, + 1, + 536, + 726, + 786, + 930, + 168, + 546, + 360, + 957, + 741, + 935, + 971, + 332, + 481, + 703, + 136, + 445, + 162, + 590, + 111, + 38, + 326, + 190, + 342, + 72, + 541, + 487, + 524, + 278, + 764, + 174, + 646, + 757, + 946, + 270, + 102, + 761, + 141, + 799, + 28, + 919, + 601, + 86, + 183, + 47, + 675, + 885, + 956, + 836, + 218, + 335, + 307, + 317, + 37, + 596, + 120, + 648, + 1003, + 702, + 291, + 96, + 839, + 943, + 807, + 9, + 32, + 828, + 732, + 542, + 36, + 908, + 855, + 279, + 538, + 768, + 754, + 587, + 987, + 142, + 598, + 287, + 678, + 880, + 589, + 71, + 370, + 469, + 473, + 553, + 143, + 427, + 404, + 391, + 286, + 869, + 928, + 621, + 462, + 338, + 133, + 52, + 525, + 857, + 334, + 477, + 41, + 423, + 615, + 459, + 784, + 508, + 826, + 815, + 567, + 79, + 656, + 261, + 329, + 219, + 620, + 415, + 636, + 832, + 756, + 27, + 425, + 663, + 309, + 734, + 867, + 497, + 169, + 659, + 932, + 452, + 193, + 475, + 118, + 495, + 176, + 161, + 275, + 44, + 992, + 466, + 1001, + 989, + 428, + 212, + 668, + 8, + 792, + 381, + 696, + 467, + 911, + 172, + 22, + 153, + 660, + 13, + 613, + 849, + 319, + 74, + 299, + 758, + 276, + 833, + 387, + 19, + 993, + 376, + 368, + 594, + 708, + 684, + 727, + 130, + 693, + 237, + 402, + 595, + 728, + 107, + 114, + 540, + 256, + 345, + 83, + 156, + 669, + 210, + 731, + 150, + 627, + 419, + 1024, + 51, + 491, + 672, + 874, + 762, + 797, + 844, + 585, + 938, + 980, + 901, + 273, + 470, + 554, + 121, + 671, + 60, + 915, + 351, + 909, + 61, + 321, + 479, + 284, + 492, + 674, + 765, + 178, + 875, + 348, + 661, + 234, + 249, + 723, + 1020, + 259, + 629, + 236, + 117, + 305, + 673, + 582, + 422, + 611, + 861, + 483, + 413, + 377, + 97, + 999 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 194, + "any_repeated_entity_fraction": 0.2526041666666667, + "answer_equals_preceding_entity_n": 84, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 184, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 3, + 0, + 6, + 3, + 0, + 3, + 0, + 3, + 4, + 0, + 7, + 10, + 0, + 3, + 0, + 6, + 0, + 5, + 3, + 0, + 6, + 4, + 0, + 0, + 4, + 7, + 2, + 4, + 3, + 2, + 5, + 0, + 4, + 6, + 1, + 0, + 7, + 6, + 3, + 3, + 6, + 6, + 6, + 4, + 0, + 1, + 3, + 3, + 0, + 0, + 5, + 6, + 4, + 0, + 1, + 1, + 0, + 0, + 0, + 4, + 6, + 7, + 0, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 1, + 3, + 4, + 0, + 3, + 1, + 0, + 4, + 3, + 0, + 0, + 0, + 6, + 6, + 10, + 0, + 5, + 6, + 5, + 5, + 0, + 4, + 5, + 5, + 5, + 1, + 5, + 4, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 3, + 3, + 4, + 4, + 4, + 3, + 6, + 1, + 0, + 4, + 7, + 5, + 6, + 2, + 4, + 0, + 0, + 5, + 1, + 0, + 3, + 0, + 4, + 6, + 3, + 1, + 0, + 4, + 5, + 1, + 2, + 7, + 0, + 0, + 3, + 6, + 1, + 3, + 4, + 0, + 0, + 4, + 2, + 4, + 3, + 0, + 2, + 6, + 5, + 4, + 4, + 7, + 0, + 1, + 1, + 0, + 0, + 2, + 2, + 4, + 2, + 4, + 4, + 4, + 0, + 3, + 8, + 1, + 3, + 7, + 0, + 3, + 0, + 0, + 0, + 5, + 5, + 3, + 5, + 0, + 6, + 9, + 11, + 0, + 0, + 2, + 1, + 7, + 0, + 0, + 2, + 2, + 6, + 6, + 3, + 5, + 7, + 3, + 3, + 0, + 5, + 5, + 5, + 7, + 3, + 0, + 2, + 3, + 5, + 8, + 0, + 8, + 7, + 0, + 3, + 7, + 0, + 4, + 3, + 6, + 0, + 4, + 0, + 3, + 0, + 0, + 3, + 7, + 3, + 8, + 3, + 4, + 1, + 0, + 3, + 2, + 2, + 3, + 0, + 4, + 2, + 4, + 0, + 4, + 8, + 8, + 8, + 3, + 5 + ], + "id_count_min": 0, + "id_count_max": 11 + }, + { + "hop": 2, + "id_edges_covered": 173, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 4, + 0, + 9, + 7, + 6, + 2, + 0, + 5, + 0, + 7, + 3, + 0, + 4, + 3, + 0, + 0, + 6, + 7, + 1, + 1, + 0, + 2, + 9, + 0, + 4, + 6, + 4, + 0, + 5, + 7, + 1, + 3, + 3, + 3, + 2, + 3, + 0, + 1, + 2, + 2, + 0, + 0, + 14, + 9, + 6, + 0, + 1, + 0, + 0, + 0, + 0, + 5, + 4, + 2, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 2, + 0, + 5, + 3, + 0, + 13, + 5, + 0, + 0, + 4, + 10, + 9, + 15, + 0, + 3, + 4, + 2, + 2, + 0, + 8, + 5, + 3, + 1, + 2, + 4, + 5, + 3, + 0, + 1, + 5, + 8, + 0, + 8, + 4, + 0, + 1, + 0, + 1, + 6, + 3, + 2, + 0, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 0, + 7, + 5, + 0, + 3, + 0, + 3, + 5, + 3, + 4, + 0, + 2, + 4, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 1, + 0, + 3, + 8, + 3, + 5, + 0, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 8, + 6, + 0, + 0, + 3, + 1, + 4, + 0, + 1, + 1, + 4, + 0, + 9, + 14, + 0, + 10, + 3, + 0, + 3, + 0, + 0, + 0, + 9, + 2, + 1, + 6, + 0, + 2, + 2, + 5, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 4, + 5, + 6, + 12, + 8, + 9, + 9, + 2, + 6, + 0, + 7, + 1, + 5, + 5, + 3, + 0, + 4, + 11, + 12, + 1, + 0, + 2, + 5, + 0, + 1, + 0, + 0, + 5, + 2, + 8, + 0, + 11, + 0, + 5, + 0, + 0, + 8, + 8, + 7, + 6, + 5, + 1, + 2, + 0, + 4, + 3, + 4, + 7, + 0, + 7, + 7, + 0, + 0, + 3, + 3, + 7, + 10, + 9, + 12 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 172, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 4, + 0, + 5, + 2, + 0, + 1, + 0, + 3, + 2, + 0, + 6, + 4, + 3, + 2, + 0, + 9, + 0, + 12, + 6, + 0, + 6, + 3, + 0, + 0, + 7, + 15, + 1, + 0, + 2, + 1, + 7, + 0, + 5, + 5, + 13, + 0, + 8, + 13, + 2, + 3, + 2, + 1, + 1, + 2, + 0, + 1, + 2, + 1, + 0, + 0, + 5, + 7, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 3, + 0, + 8, + 2, + 0, + 10, + 3, + 0, + 0, + 2, + 10, + 11, + 3, + 0, + 5, + 8, + 4, + 4, + 0, + 5, + 4, + 5, + 3, + 0, + 1, + 2, + 0, + 0, + 1, + 4, + 4, + 0, + 9, + 8, + 2, + 1, + 3, + 2, + 2, + 1, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 7, + 5, + 5, + 0, + 5, + 11, + 1, + 4, + 2, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 3, + 2, + 4, + 4, + 4, + 3, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 11, + 12, + 0, + 0, + 4, + 5, + 6, + 0, + 4, + 5, + 5, + 0, + 7, + 12, + 6, + 10, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 5, + 5, + 4, + 0, + 2, + 1, + 5, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 5, + 5, + 5, + 12, + 8, + 7, + 4, + 4, + 7, + 0, + 6, + 4, + 6, + 6, + 3, + 0, + 10, + 6, + 13, + 4, + 0, + 3, + 2, + 0, + 4, + 3, + 0, + 1, + 2, + 2, + 0, + 12, + 0, + 3, + 0, + 0, + 5, + 3, + 2, + 10, + 4, + 6, + 5, + 0, + 1, + 0, + 1, + 6, + 0, + 9, + 4, + 5, + 0, + 2, + 3, + 8, + 7, + 5, + 9 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 4, + "id_edges_covered": 169, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 0, + 2, + 0, + 5, + 9, + 2, + 5, + 0, + 6, + 0, + 4, + 3, + 0, + 0, + 2, + 0, + 0, + 10, + 5, + 0, + 3, + 2, + 0, + 5, + 0, + 6, + 9, + 15, + 0, + 12, + 9, + 1, + 1, + 0, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 6, + 6, + 5, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 1, + 0, + 5, + 6, + 0, + 8, + 8, + 0, + 5, + 6, + 0, + 0, + 6, + 14, + 8, + 5, + 0, + 6, + 2, + 5, + 7, + 0, + 7, + 3, + 8, + 1, + 4, + 1, + 1, + 3, + 0, + 5, + 2, + 6, + 0, + 9, + 8, + 1, + 1, + 1, + 1, + 1, + 4, + 4, + 0, + 1, + 0, + 3, + 1, + 2, + 2, + 0, + 0, + 1, + 4, + 0, + 2, + 0, + 5, + 2, + 4, + 5, + 0, + 6, + 8, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 1, + 2, + 5, + 2, + 6, + 6, + 0, + 0, + 2, + 2, + 0, + 0, + 0, + 0, + 14, + 11, + 0, + 0, + 5, + 5, + 5, + 3, + 2, + 4, + 2, + 0, + 7, + 9, + 7, + 6, + 3, + 0, + 5, + 0, + 0, + 0, + 2, + 5, + 5, + 1, + 0, + 4, + 2, + 1, + 0, + 0, + 6, + 5, + 8, + 0, + 0, + 10, + 2, + 4, + 9, + 10, + 14, + 11, + 7, + 2, + 0, + 5, + 2, + 2, + 2, + 8, + 0, + 8, + 9, + 8, + 2, + 0, + 4, + 4, + 0, + 2, + 2, + 0, + 1, + 1, + 0, + 0, + 9, + 0, + 3, + 0, + 0, + 6, + 7, + 2, + 11, + 5, + 6, + 6, + 0, + 2, + 3, + 0, + 1, + 0, + 6, + 6, + 6, + 0, + 4, + 2, + 5, + 4, + 5, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + } + ] + }, + "test_composite": { + "n": 512, + "any_repeated_entity_n": 116, + "any_repeated_entity_fraction": 0.2265625, + "answer_equals_preceding_entity_n": 54, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 174, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 1, + 2, + 1, + 6, + 0, + 3, + 4, + 0, + 3, + 2, + 5, + 0, + 0, + 4, + 0, + 1, + 2, + 0, + 4, + 2, + 0, + 0, + 3, + 3, + 3, + 0, + 3, + 5, + 4, + 0, + 5, + 2, + 2, + 0, + 2, + 3, + 2, + 3, + 4, + 6, + 3, + 2, + 0, + 5, + 1, + 1, + 0, + 0, + 2, + 5, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 4, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 4, + 1, + 3, + 1, + 0, + 2, + 2, + 0, + 3, + 2, + 0, + 0, + 2, + 6, + 4, + 3, + 0, + 2, + 5, + 2, + 3, + 0, + 4, + 7, + 4, + 1, + 3, + 2, + 3, + 3, + 0, + 1, + 2, + 2, + 0, + 5, + 5, + 5, + 5, + 6, + 0, + 5, + 3, + 1, + 0, + 3, + 5, + 6, + 2, + 3, + 1, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 5, + 4, + 3, + 0, + 5, + 5, + 3, + 5, + 1, + 0, + 0, + 1, + 5, + 1, + 2, + 3, + 2, + 0, + 1, + 5, + 3, + 3, + 0, + 3, + 2, + 1, + 4, + 2, + 4, + 0, + 10, + 3, + 0, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 0, + 0, + 3, + 3, + 4, + 2, + 0, + 1, + 0, + 0, + 0, + 4, + 1, + 0, + 1, + 0, + 4, + 7, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 3, + 3, + 2, + 2, + 3, + 1, + 2, + 0, + 3, + 0, + 7, + 4, + 2, + 3, + 1, + 0, + 4, + 2, + 2, + 3, + 0, + 4, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 3, + 4, + 5, + 4, + 0, + 5, + 0, + 2, + 1, + 1, + 3, + 0, + 4, + 3, + 7, + 0, + 0, + 2, + 1, + 2, + 0, + 2 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 2, + "id_edges_covered": 155, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 2, + 2, + 0, + 4, + 7, + 2, + 2, + 0, + 7, + 0, + 7, + 2, + 0, + 2, + 1, + 0, + 0, + 6, + 3, + 0, + 2, + 0, + 1, + 5, + 0, + 5, + 2, + 3, + 0, + 7, + 13, + 2, + 2, + 2, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 9, + 9, + 3, + 0, + 1, + 2, + 0, + 0, + 0, + 3, + 2, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 3, + 0, + 0, + 5, + 1, + 0, + 6, + 1, + 0, + 0, + 0, + 5, + 7, + 6, + 0, + 0, + 2, + 4, + 1, + 0, + 2, + 3, + 7, + 2, + 4, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 0, + 2, + 7, + 2, + 1, + 2, + 0, + 3, + 0, + 7, + 0, + 2, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 4, + 2, + 0, + 7, + 0, + 2, + 3, + 0, + 5, + 0, + 3, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 1, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 12, + 2, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 1, + 3, + 0, + 1, + 3, + 2, + 7, + 3, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 2, + 1, + 4, + 0, + 0, + 3, + 7, + 2, + 10, + 12, + 3, + 7, + 2, + 0, + 0, + 4, + 4, + 2, + 3, + 1, + 0, + 5, + 2, + 6, + 2, + 0, + 3, + 1, + 0, + 2, + 2, + 0, + 4, + 6, + 3, + 0, + 6, + 0, + 5, + 0, + 0, + 4, + 6, + 4, + 3, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 2, + 0, + 4, + 4, + 4, + 0, + 2, + 5, + 6, + 9, + 3, + 2 + ], + "id_count_min": 0, + "id_count_max": 13 + }, + { + "hop": 3, + "id_edges_covered": 156, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 2, + 3, + 5, + 0, + 2, + 0, + 0, + 4, + 3, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 0, + 0, + 0, + 7, + 9, + 0, + 2, + 0, + 1, + 4, + 0, + 6, + 3, + 8, + 0, + 6, + 9, + 0, + 1, + 2, + 3, + 3, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 7, + 4, + 3, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 5, + 1, + 0, + 4, + 4, + 0, + 0, + 5, + 4, + 3, + 4, + 0, + 5, + 4, + 2, + 4, + 0, + 4, + 2, + 6, + 1, + 1, + 3, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 7, + 4, + 1, + 0, + 0, + 1, + 3, + 2, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 2, + 0, + 0, + 5, + 1, + 0, + 2, + 0, + 3, + 7, + 3, + 6, + 0, + 4, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 6, + 1, + 2, + 4, + 4, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 5, + 3, + 0, + 0, + 2, + 2, + 3, + 2, + 3, + 1, + 5, + 0, + 4, + 9, + 2, + 6, + 6, + 0, + 4, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 5, + 2, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 2, + 2, + 8, + 3, + 5, + 4, + 3, + 5, + 0, + 2, + 3, + 4, + 3, + 3, + 0, + 9, + 6, + 10, + 1, + 0, + 1, + 2, + 0, + 0, + 1, + 0, + 1, + 1, + 2, + 0, + 6, + 0, + 0, + 0, + 0, + 8, + 6, + 6, + 3, + 2, + 2, + 5, + 0, + 0, + 2, + 0, + 3, + 0, + 5, + 2, + 2, + 0, + 1, + 2, + 5, + 6, + 6, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 4, + "id_edges_covered": 164, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 2, + 0, + 3, + 2, + 6, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 4, + 5, + 2, + 1, + 1, + 1, + 2, + 0, + 5, + 3, + 4, + 0, + 4, + 10, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 2, + 1, + 1, + 0, + 0, + 2, + 4, + 4, + 0, + 0, + 2, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 0, + 0, + 0, + 0, + 0, + 4, + 0, + 2, + 0, + 6, + 1, + 0, + 6, + 2, + 0, + 0, + 7, + 4, + 8, + 9, + 0, + 4, + 6, + 1, + 3, + 0, + 4, + 3, + 4, + 3, + 1, + 0, + 1, + 5, + 0, + 3, + 1, + 5, + 0, + 4, + 7, + 1, + 1, + 0, + 2, + 1, + 3, + 1, + 0, + 1, + 2, + 2, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 2, + 5, + 4, + 7, + 0, + 3, + 3, + 2, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 4, + 2, + 2, + 1, + 3, + 5, + 2, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 8, + 0, + 0, + 0, + 2, + 4, + 3, + 2, + 2, + 4, + 0, + 5, + 1, + 9, + 9, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 2, + 0, + 0, + 2, + 3, + 6, + 9, + 4, + 7, + 2, + 6, + 4, + 0, + 5, + 1, + 2, + 1, + 0, + 0, + 7, + 5, + 5, + 0, + 0, + 0, + 0, + 0, + 5, + 1, + 0, + 4, + 3, + 1, + 0, + 2, + 0, + 3, + 0, + 0, + 3, + 2, + 1, + 5, + 4, + 6, + 4, + 0, + 0, + 0, + 2, + 5, + 0, + 3, + 4, + 3, + 0, + 2, + 3, + 6, + 3, + 5, + 1 + ], + "id_count_min": 0, + "id_count_max": 10 + } + ] + }, + "test_full_composite": { + "n": 1025, + "any_repeated_entity_n": 243, + "any_repeated_entity_fraction": 0.2370731707317073, + "answer_equals_preceding_entity_n": 116, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 187, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 5, + 0, + 5, + 0, + 2, + 4, + 2, + 12, + 0, + 6, + 5, + 0, + 8, + 8, + 8, + 3, + 0, + 8, + 0, + 2, + 4, + 0, + 9, + 3, + 0, + 0, + 5, + 5, + 4, + 0, + 5, + 7, + 6, + 0, + 11, + 5, + 3, + 0, + 5, + 6, + 4, + 3, + 7, + 11, + 4, + 5, + 0, + 7, + 3, + 4, + 0, + 0, + 7, + 10, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 6, + 6, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 7, + 1, + 9, + 3, + 0, + 4, + 4, + 0, + 5, + 5, + 0, + 0, + 3, + 8, + 6, + 6, + 0, + 3, + 10, + 7, + 5, + 0, + 6, + 10, + 7, + 2, + 8, + 4, + 6, + 6, + 0, + 5, + 9, + 6, + 0, + 6, + 8, + 7, + 6, + 10, + 0, + 10, + 6, + 5, + 0, + 7, + 8, + 6, + 5, + 5, + 2, + 0, + 0, + 5, + 5, + 0, + 4, + 0, + 5, + 11, + 7, + 12, + 0, + 5, + 14, + 4, + 8, + 6, + 0, + 2, + 5, + 6, + 3, + 2, + 4, + 4, + 0, + 2, + 13, + 3, + 7, + 0, + 6, + 3, + 4, + 9, + 5, + 7, + 0, + 13, + 5, + 0, + 0, + 6, + 0, + 7, + 3, + 3, + 7, + 5, + 0, + 3, + 7, + 4, + 6, + 4, + 0, + 4, + 0, + 0, + 0, + 5, + 4, + 1, + 3, + 0, + 6, + 12, + 5, + 0, + 0, + 4, + 1, + 3, + 0, + 0, + 5, + 9, + 3, + 5, + 6, + 2, + 6, + 1, + 4, + 0, + 9, + 6, + 4, + 5, + 2, + 0, + 7, + 6, + 7, + 6, + 0, + 9, + 4, + 0, + 3, + 6, + 0, + 6, + 6, + 2, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 8, + 6, + 7, + 5, + 1, + 6, + 0, + 2, + 2, + 9, + 4, + 0, + 11, + 4, + 14, + 0, + 0, + 3, + 7, + 5, + 2, + 6 + ], + "id_count_min": 0, + "id_count_max": 14 + }, + { + "hop": 2, + "id_edges_covered": 179, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 3, + 0, + 1, + 2, + 1, + 2, + 0, + 5, + 3, + 0, + 10, + 10, + 5, + 4, + 0, + 13, + 0, + 12, + 2, + 0, + 4, + 2, + 0, + 0, + 11, + 9, + 1, + 2, + 0, + 2, + 10, + 0, + 7, + 5, + 9, + 0, + 9, + 21, + 4, + 3, + 3, + 6, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 12, + 19, + 8, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 4, + 3, + 0, + 0, + 5, + 0, + 0, + 0, + 0, + 3, + 0, + 4, + 2, + 0, + 10, + 2, + 0, + 11, + 3, + 0, + 0, + 4, + 10, + 11, + 10, + 0, + 2, + 6, + 7, + 2, + 0, + 7, + 7, + 12, + 2, + 5, + 2, + 2, + 3, + 0, + 3, + 2, + 2, + 0, + 5, + 13, + 5, + 2, + 4, + 2, + 4, + 3, + 10, + 0, + 5, + 0, + 3, + 3, + 3, + 2, + 0, + 0, + 17, + 4, + 0, + 11, + 0, + 4, + 4, + 3, + 6, + 0, + 8, + 7, + 4, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 4, + 2, + 4, + 5, + 1, + 8, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 20, + 5, + 0, + 0, + 2, + 2, + 5, + 1, + 2, + 2, + 6, + 0, + 8, + 7, + 3, + 12, + 7, + 0, + 7, + 0, + 0, + 0, + 3, + 4, + 3, + 4, + 0, + 7, + 4, + 1, + 0, + 0, + 2, + 4, + 6, + 0, + 0, + 3, + 9, + 3, + 15, + 28, + 5, + 20, + 4, + 1, + 0, + 8, + 6, + 3, + 6, + 3, + 0, + 14, + 7, + 10, + 6, + 0, + 9, + 3, + 0, + 3, + 4, + 0, + 9, + 9, + 5, + 0, + 15, + 0, + 11, + 0, + 0, + 8, + 10, + 9, + 7, + 2, + 3, + 5, + 0, + 5, + 4, + 1, + 7, + 0, + 9, + 4, + 6, + 0, + 2, + 6, + 14, + 12, + 13, + 5 + ], + "id_count_min": 0, + "id_count_max": 28 + }, + { + "hop": 3, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 3, + 0, + 8, + 5, + 4, + 11, + 0, + 5, + 2, + 0, + 9, + 12, + 6, + 3, + 0, + 5, + 0, + 8, + 5, + 0, + 1, + 1, + 0, + 0, + 14, + 13, + 0, + 2, + 2, + 2, + 6, + 0, + 10, + 9, + 14, + 0, + 14, + 17, + 1, + 1, + 2, + 3, + 4, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 13, + 9, + 8, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 5, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 2, + 0, + 8, + 4, + 0, + 10, + 7, + 0, + 0, + 7, + 8, + 6, + 11, + 0, + 8, + 9, + 5, + 7, + 0, + 10, + 5, + 12, + 3, + 2, + 4, + 0, + 6, + 0, + 1, + 3, + 4, + 0, + 10, + 10, + 1, + 0, + 3, + 1, + 3, + 6, + 2, + 0, + 0, + 3, + 2, + 2, + 1, + 3, + 0, + 0, + 8, + 2, + 0, + 3, + 0, + 12, + 13, + 6, + 10, + 0, + 7, + 4, + 2, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 2, + 6, + 1, + 4, + 5, + 5, + 5, + 10, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 14, + 4, + 0, + 0, + 3, + 5, + 7, + 5, + 8, + 2, + 8, + 0, + 11, + 15, + 4, + 11, + 8, + 0, + 9, + 0, + 0, + 0, + 5, + 3, + 1, + 2, + 0, + 1, + 7, + 6, + 0, + 0, + 5, + 2, + 7, + 0, + 0, + 5, + 7, + 5, + 14, + 9, + 11, + 10, + 5, + 10, + 0, + 8, + 6, + 7, + 5, + 4, + 0, + 19, + 14, + 16, + 1, + 0, + 1, + 4, + 0, + 2, + 4, + 0, + 3, + 4, + 3, + 0, + 10, + 0, + 3, + 0, + 0, + 10, + 8, + 10, + 4, + 6, + 6, + 12, + 0, + 0, + 2, + 0, + 6, + 0, + 10, + 2, + 6, + 0, + 1, + 6, + 10, + 11, + 9, + 7 + ], + "id_count_min": 0, + "id_count_max": 19 + }, + { + "hop": 4, + "id_edges_covered": 181, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 1, + 0, + 4, + 0, + 1, + 4, + 0, + 1, + 2, + 0, + 8, + 6, + 10, + 8, + 0, + 10, + 0, + 8, + 1, + 0, + 2, + 4, + 0, + 0, + 7, + 8, + 3, + 1, + 1, + 3, + 5, + 0, + 11, + 7, + 10, + 0, + 11, + 17, + 1, + 1, + 1, + 1, + 1, + 4, + 0, + 5, + 1, + 2, + 0, + 0, + 7, + 11, + 6, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 1, + 2, + 0, + 0, + 6, + 0, + 0, + 0, + 0, + 1, + 6, + 2, + 3, + 0, + 14, + 11, + 0, + 11, + 6, + 0, + 0, + 10, + 7, + 12, + 12, + 0, + 5, + 10, + 6, + 4, + 0, + 9, + 8, + 8, + 5, + 1, + 0, + 1, + 6, + 0, + 5, + 4, + 14, + 0, + 12, + 12, + 1, + 1, + 1, + 2, + 5, + 6, + 2, + 0, + 2, + 4, + 3, + 1, + 3, + 1, + 0, + 0, + 3, + 4, + 0, + 4, + 0, + 5, + 12, + 7, + 14, + 0, + 8, + 5, + 5, + 3, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 4, + 5, + 3, + 4, + 10, + 7, + 3, + 0, + 4, + 1, + 3, + 0, + 0, + 0, + 0, + 9, + 15, + 0, + 0, + 3, + 4, + 5, + 5, + 6, + 4, + 7, + 0, + 8, + 8, + 12, + 14, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 7, + 6, + 0, + 4, + 3, + 2, + 0, + 0, + 9, + 6, + 5, + 0, + 0, + 2, + 4, + 8, + 16, + 10, + 15, + 9, + 10, + 8, + 0, + 9, + 3, + 3, + 2, + 1, + 0, + 14, + 9, + 10, + 2, + 0, + 0, + 2, + 0, + 6, + 5, + 0, + 5, + 3, + 2, + 0, + 5, + 0, + 4, + 0, + 0, + 7, + 5, + 9, + 8, + 7, + 9, + 9, + 0, + 1, + 1, + 2, + 10, + 0, + 4, + 6, + 4, + 0, + 4, + 10, + 9, + 10, + 11, + 10 + ], + "id_count_min": 0, + "id_count_max": 17 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 5, + 0, + 10, + 0, + 14, + 7, + 4, + 6, + 0, + 10, + 12, + 0, + 27, + 30, + 11, + 12, + 0, + 26, + 0, + 28, + 15, + 0, + 16, + 12, + 0, + 0, + 27, + 34, + 4, + 8, + 7, + 5, + 26, + 0, + 19, + 26, + 33, + 0, + 32, + 35, + 7, + 10, + 11, + 10, + 13, + 12, + 0, + 5, + 9, + 6, + 0, + 0, + 30, + 28, + 17, + 0, + 5, + 4, + 0, + 0, + 0, + 13, + 12, + 9, + 0, + 0, + 6, + 0, + 10, + 0, + 0, + 7, + 4, + 11, + 15, + 0, + 24, + 14, + 0, + 32, + 17, + 0, + 0, + 12, + 40, + 34, + 33, + 0, + 19, + 20, + 16, + 18, + 0, + 24, + 17, + 21, + 10, + 7, + 11, + 12, + 10, + 0, + 7, + 13, + 20, + 0, + 30, + 23, + 6, + 7, + 8, + 8, + 12, + 14, + 9, + 0, + 7, + 9, + 10, + 9, + 5, + 11, + 0, + 0, + 15, + 12, + 0, + 10, + 0, + 15, + 20, + 15, + 15, + 0, + 17, + 28, + 2, + 8, + 12, + 0, + 0, + 3, + 6, + 1, + 14, + 14, + 5, + 4, + 16, + 16, + 17, + 17, + 0, + 3, + 10, + 9, + 4, + 4, + 7, + 0, + 34, + 30, + 0, + 0, + 14, + 13, + 19, + 5, + 11, + 14, + 15, + 0, + 26, + 43, + 14, + 29, + 17, + 0, + 12, + 0, + 0, + 0, + 17, + 17, + 14, + 16, + 0, + 14, + 14, + 22, + 0, + 0, + 11, + 8, + 22, + 0, + 0, + 21, + 14, + 21, + 39, + 29, + 35, + 31, + 16, + 18, + 0, + 23, + 12, + 18, + 20, + 17, + 0, + 24, + 29, + 38, + 15, + 0, + 17, + 18, + 0, + 10, + 12, + 0, + 11, + 8, + 16, + 0, + 36, + 0, + 14, + 0, + 0, + 22, + 25, + 14, + 35, + 17, + 17, + 14, + 0, + 10, + 8, + 7, + 17, + 0, + 26, + 19, + 15, + 0, + 13, + 16, + 28, + 29, + 22, + 32 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 184, + 173, + 172, + 169 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 37, + "fraction": 0.048177083333333336, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.048177083333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10286458333333333, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10286458333333333, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 7, + 67, + 67, + 69, + 66, + 59 + ], + [ + 46, + 68, + 66, + 69, + 66, + 44 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.17447916666666666, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.17447916666666666, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 56, + 67, + 69, + 66, + 66, + 43 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.2643229166666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.2643229166666667, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 31, + 68, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 246, + "empirical_modal_target_fraction": 0.421875, + "single_target_group_query_fraction": 0.06380208333333333, + "singleton_group_query_fraction": 0.045572916666666664, + "multi_query_groups": 211, + "multi_query_coverage_fraction": 0.9544270833333334, + "multi_query_empirical_modal_target_fraction": 0.3942701227830832, + "multi_target_groups": 204, + "same_suffix_different_target_example": [ + [ + 28, + 66, + 66, + 66, + 66, + 60 + ], + [ + 39, + 66, + 66, + 66, + 66, + 32 + ] + ] + } + ] + }, + "test_composite": { + "n": 512, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 512, + "any_relevant_fact_in_composite_training_n": 512, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 512, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 174, + 155, + 156, + 164 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 20, + "fraction": 0.0390625, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.0390625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.091796875, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.091796875, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 49, + 66, + 67, + 67, + 66, + 63 + ], + [ + 39, + 68, + 66, + 69, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.15625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.15625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 9, + 67, + 69, + 66, + 66, + 34 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.279296875, + "single_target_group_query_fraction": 0.001953125, + "singleton_group_query_fraction": 0.001953125, + "multi_query_groups": 63, + "multi_query_coverage_fraction": 0.998046875, + "multi_query_empirical_modal_target_fraction": 0.27788649706457924, + "multi_target_groups": 63, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 13, + 67, + 66, + 66, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 217, + "empirical_modal_target_fraction": 0.490234375, + "single_target_group_query_fraction": 0.138671875, + "singleton_group_query_fraction": 0.115234375, + "multi_query_groups": 158, + "multi_query_coverage_fraction": 0.884765625, + "multi_query_empirical_modal_target_fraction": 0.423841059602649, + "multi_target_groups": 152, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 68, + 65 + ], + [ + 12, + 66, + 66, + 66, + 68, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 1025, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 1023, + "any_relevant_fact_in_composite_training_n": 1025, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9995121951219512, + "all_id_queries": 1025, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 187, + 179, + 177, + 181 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 44, + "fraction": 0.042926829268292686, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.042926829268292686, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08195121951219513, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08195121951219513, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 69, + 66, + 25 + ], + [ + 2, + 67, + 68, + 67, + 66, + 57 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14146341463414633, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14146341463414633, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 67, + 66, + 66, + 53 + ], + [ + 4, + 68, + 66, + 66, + 66, + 60 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.24, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.24, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 4, + 68, + 66, + 66, + 66, + 60 + ], + [ + 6, + 66, + 66, + 66, + 66, + 36 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 249, + "empirical_modal_target_fraction": 0.3648780487804878, + "single_target_group_query_fraction": 0.02048780487804878, + "singleton_group_query_fraction": 0.014634146341463415, + "multi_query_groups": 234, + "multi_query_coverage_fraction": 0.9853658536585366, + "multi_query_empirical_modal_target_fraction": 0.35544554455445543, + "multi_target_groups": 231, + "same_suffix_different_target_example": [ + [ + 6, + 66, + 66, + 66, + 66, + 36 + ], + [ + 43, + 66, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "ood_composite": { + "n": 53, + "unique_relevant_atomic_facts": 48, + "relevant_atomic_fact_coverage_of_graph": 0.1875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 53, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 35, + 27, + 24, + 26 + ], + "within_split_majority_tail": { + "target_token": 54, + "count": 7, + "fraction": 0.1320754716981132, + "distinct_targets": 22 + }, + "train_composite_majority_tail_fraction": 0.018867924528301886, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.32075471698113206, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.32075471698113206, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 69, + 68, + 66, + 60 + ], + [ + 7, + 68, + 68, + 69, + 66, + 65 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.6981132075471698, + "single_target_group_query_fraction": 0.18867924528301888, + "singleton_group_query_fraction": 0.05660377358490566, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.9433962264150944, + "multi_query_empirical_modal_target_fraction": 0.68, + "multi_target_groups": 9, + "same_suffix_different_target_example": [ + [ + 8, + 67, + 69, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 32, + "empirical_modal_target_fraction": 0.9056603773584906, + "single_target_group_query_fraction": 0.7169811320754716, + "singleton_group_query_fraction": 0.37735849056603776, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.6226415094339622, + "multi_query_empirical_modal_target_fraction": 0.8484848484848485, + "multi_target_groups": 5, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 47, + "empirical_modal_target_fraction": 0.9622641509433962, + "single_target_group_query_fraction": 0.9056603773584906, + "singleton_group_query_fraction": 0.7924528301886793, + "multi_query_groups": 5, + "multi_query_coverage_fraction": 0.20754716981132076, + "multi_query_empirical_modal_target_fraction": 0.8181818181818182, + "multi_target_groups": 2, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + } + ] + }, + "unused_composite": { + "n": 3358, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 3354, + "any_relevant_fact_in_composite_training_n": 3358, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9997022036926743, + "all_id_queries": 3358, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192, + 185, + 185, + 184 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 143, + "fraction": 0.04258487194758785, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03335318642048839, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.09380583680762358, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.09380583680762358, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 67, + 66, + 57 + ], + [ + 2, + 67, + 66, + 68, + 66, + 50 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14502680166765933, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14502680166765933, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 67, + 66, + 66, + 10 + ], + [ + 3, + 69, + 67, + 66, + 66, + 53 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.197736748064324, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.197736748064324, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 67, + 66, + 66, + 66, + 44 + ], + [ + 5, + 66, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 256, + "empirical_modal_target_fraction": 0.25431804645622397, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 256, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25431804645622397, + "multi_target_groups": 256, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 66, + 5 + ], + [ + 7, + 66, + 66, + 66, + 66, + 45 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + } + }, + "same_atomic_and_id_mask_all_lengths": true, + "source_entity_offset": 2, + "entity_offset": 3, + "source_token_shift": 1, + "separator_token": 71, + "vocab_size": 72, + "evaluation_pools": "Complete test_full_composite and ood_composite", + "composition_supervision": "Terminal entity only; no intermediate entity", + "training_objective": "All nonpadding next tokens including EOS", + "holdout": "Complete queries held out within each length; not subpaths across lengths", + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "independent_audit": { + "passed": true, + "counts": { + "atomic": 256, + "train_2": 444, + "familiar_2": 124, + "strict_2": 64, + "train_3": 768, + "familiar_3": 329, + "strict_3": 59, + "train_4": 768, + "familiar_4": 1025, + "strict_4": 53 + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "truth_edges_independently_traversed": true, + "complete_query_overlap": 0, + "all_strict_facts_absent_from_composition_training": true, + "cross_length_subpath_holdout": false + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/audit-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/audit-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..c23f4c299d572ce39488b57b3b68a35e8310244d --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/audit-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "audit", + "gpu": 2, + "returncode": 0, + "seconds": 4.085374556481838 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/audit-process.log b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/audit-process.log new file mode 100644 index 0000000000000000000000000000000000000000..a34d6e8daa11160d73aeb432267eaae7a77f4817 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/audit-process.log @@ -0,0 +1 @@ +{"passed": true, "dataset_rebuilt_and_archived_exact": true, "initial_model_exact": true, "checkpoint_nodes": [0, 8000, 32000, 64000], "endpoint_tokens_exact": true, "all_nodes_exposure_counters_exact": true, "stream_state_continuation_exact": true, "max_nll_difference": 0.0, "nll_rtol": 1e-05, "nll_atol": 1e-05, "utc": "2026-10-01T22:55:21.406527+00:00"} diff --git a/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/audit.json b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/audit.json new file mode 100644 index 0000000000000000000000000000000000000000..95239310a20e55c1dc6f30bd5e4ecf76109e1bc5 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/audit.json @@ -0,0 +1,18 @@ +{ + "passed": true, + "dataset_rebuilt_and_archived_exact": true, + "initial_model_exact": true, + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "endpoint_tokens_exact": true, + "all_nodes_exposure_counters_exact": true, + "stream_state_continuation_exact": true, + "max_nll_difference": 0.0, + "nll_rtol": 1e-05, + "nll_atol": 1e-05, + "utc": "2026-10-01T22:55:21.406527+00:00" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/complete.json b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..b7e6adc2ea91eb3d03fd40085ea7f4f3f90c3641 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/complete.json @@ -0,0 +1,204 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 3, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "initial_model_sha256": "3ed3cd8944d5337a78ef15d4d740e9fcbb33aa78e545e4330647557e2315eebc", + "checkpoint_sha256": "37dc8bc75e0cbd1b182ca1b11032f844484f0a2b3d02d0aabe336957e95a81c2", + "finished_utc": "2026-10-01T22:55:17.185981+00:00", + "parameters": 605440, + "strata_counts": { + "atomic": 256, + "train_2": 444, + "train_3": 768, + "train_4": 768 + }, + "endpoint": { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.4589933925890364e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.5171615814324468e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.41935483870967744, + "answer_accuracy": 0.41935483870967744, + "answer_nll": 3.0804171562194824, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.41935483870967744, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 10.59312629699707, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 2.178587601520121e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.44376899696048633, + "answer_accuracy": 0.44376899696048633, + "answer_nll": 3.813037157058716, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.44376899696048633, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.461893081665039, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 2.5271414415328763e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.27902439024390246, + "answer_accuracy": 0.27902439024390246, + "answer_nll": 5.954558849334717, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.27902439024390246, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 10.551775932312012, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1726962327957153, + "training_seconds": 55.62400818988681, + "estimated_training_flops": 237968031744000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + }, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000, + "estimated_training_flops": 237968031744000, + "training_seconds": 55.62400818988681, + "process_seconds": 61.000934448093176, + "environment": { + "torch": "2.6.0+cu126", + "numpy": "1.23.5", + "cuda": "12.6", + "gpu": "NVIDIA L20X", + "tf32": true + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/input-spec.json b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/input-spec.json new file mode 100644 index 0000000000000000000000000000000000000000..44cbdc8ddd9b19b0eb257d54dc8c5be4496f9dc0 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/input-spec.json @@ -0,0 +1,65 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 3, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/learning.json b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..a0c40ccc5286855d9a499d64e8fa2b401c39e24b --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/learning.json @@ -0,0 +1,1162 @@ +[ + { + "step": 0, + "lr": 0.0, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.330717086791992 + }, + "train_2": { + "n": 444, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.32258415222168, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.294107437133789, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.3193206787109375, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.323591232299805, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.320085525512695, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.3237690925598145, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.325431823730469, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.318945407867432, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.395040988922119, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": null, + "training_seconds": 0.0, + "estimated_training_flops": 0, + "supervised_tokens": 0, + "padded_input_tokens": 0 + }, + { + "step": 256, + "lr": 0.0009999982891312849, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.1640625, + "answer_accuracy": 0.1640625, + "answer_nll": 3.2527577877044678 + }, + "train_2": { + "n": 444, + "accuracy": 0.1463963963963964, + "answer_accuracy": 0.1463963963963964, + "answer_nll": 3.235825538635254, + "atomic_correct_coverage": 0.08108108108108109, + "conditional_accuracy": 0.75, + "autonomous_two_calls": 0.13513513513513514, + "autonomous_path_accuracy": 0.08108108108108109, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.10483870967741936, + "answer_accuracy": 0.10483870967741936, + "answer_nll": 3.2996222972869873, + "atomic_correct_coverage": 0.0967741935483871, + "conditional_accuracy": 0.5, + "autonomous_two_calls": 0.1693548387096774, + "autonomous_path_accuracy": 0.0967741935483871, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 4.581748008728027, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.015625, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.1171875, + "answer_accuracy": 0.1171875, + "answer_nll": 3.2855007648468018, + "atomic_correct_coverage": 0.040364583333333336, + "conditional_accuracy": 0.8064516129032258, + "autonomous_two_calls": 0.11067708333333333, + "autonomous_path_accuracy": 0.040364583333333336, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.1033434650455927, + "answer_accuracy": 0.1033434650455927, + "answer_nll": 3.3453569412231445, + "atomic_correct_coverage": 0.0425531914893617, + "conditional_accuracy": 0.5714285714285714, + "autonomous_two_calls": 0.11854103343465046, + "autonomous_path_accuracy": 0.0425531914893617, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 4.934390544891357, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.03389830508474576, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.11979166666666667, + "answer_accuracy": 0.11979166666666667, + "answer_nll": 3.3113625049591064, + "atomic_correct_coverage": 0.020833333333333332, + "conditional_accuracy": 0.4375, + "autonomous_two_calls": 0.08854166666666667, + "autonomous_path_accuracy": 0.020833333333333332, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.09463414634146342, + "answer_accuracy": 0.09463414634146342, + "answer_nll": 3.4255542755126953, + "atomic_correct_coverage": 0.012682926829268294, + "conditional_accuracy": 0.6923076923076923, + "autonomous_two_calls": 0.08, + "autonomous_path_accuracy": 0.012682926829268294, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 5.121087551116943, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": 1.8929381370544434, + "training_seconds": 0.2230258211493492, + "estimated_training_flops": 951872126976, + "supervised_tokens": 212992, + "padded_input_tokens": 262144 + }, + { + "step": 512, + "lr": 0.0009999468942493638, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.85546875, + "answer_accuracy": 0.85546875, + "answer_nll": 1.038806438446045 + }, + "train_2": { + "n": 444, + "accuracy": 0.5855855855855856, + "answer_accuracy": 0.5855855855855856, + "answer_nll": 1.5931285619735718, + "atomic_correct_coverage": 0.7454954954954955, + "conditional_accuracy": 0.6706948640483383, + "autonomous_two_calls": 0.7567567567567568, + "autonomous_path_accuracy": 0.7454954954954955, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.25806451612903225, + "answer_accuracy": 0.25806451612903225, + "answer_nll": 2.6697075366973877, + "atomic_correct_coverage": 0.7419354838709677, + "conditional_accuracy": 0.2717391304347826, + "autonomous_two_calls": 0.75, + "autonomous_path_accuracy": 0.7419354838709677, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 5.272191524505615, + "atomic_correct_coverage": 0.65625, + "conditional_accuracy": 0.023809523809523808, + "autonomous_two_calls": 0.671875, + "autonomous_path_accuracy": 0.65625, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.359375, + "answer_accuracy": 0.359375, + "answer_nll": 2.2306668758392334, + "atomic_correct_coverage": 0.6471354166666666, + "conditional_accuracy": 0.41851106639839036, + "autonomous_two_calls": 0.66796875, + "autonomous_path_accuracy": 0.6471354166666666, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.19148936170212766, + "answer_accuracy": 0.19148936170212766, + "answer_nll": 2.917720079421997, + "atomic_correct_coverage": 0.6717325227963525, + "conditional_accuracy": 0.23076923076923078, + "autonomous_two_calls": 0.6990881458966566, + "autonomous_path_accuracy": 0.6717325227963525, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 5.468698501586914, + "atomic_correct_coverage": 0.576271186440678, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.6271186440677966, + "autonomous_path_accuracy": 0.576271186440678, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.3046875, + "answer_accuracy": 0.3046875, + "answer_nll": 2.474269151687622, + "atomic_correct_coverage": 0.5807291666666666, + "conditional_accuracy": 0.35650224215246634, + "autonomous_two_calls": 0.6002604166666666, + "autonomous_path_accuracy": 0.5807291666666666, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.13951219512195123, + "answer_accuracy": 0.13951219512195123, + "answer_nll": 3.303238868713379, + "atomic_correct_coverage": 0.5434146341463415, + "conditional_accuracy": 0.1867145421903052, + "autonomous_two_calls": 0.5717073170731707, + "autonomous_path_accuracy": 0.5434146341463415, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 5.4846110343933105, + "atomic_correct_coverage": 0.49056603773584906, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.5094339622641509, + "autonomous_path_accuracy": 0.49056603773584906, + "hop_count": 4 + } + }, + "loss": 1.6382431983947754, + "training_seconds": 0.44609133154153824, + "estimated_training_flops": 1903744253952, + "supervised_tokens": 425984, + "padded_input_tokens": 524288 + }, + { + "step": 1000, + "lr": 0.0009996508880478938, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.99609375, + "answer_accuracy": 0.99609375, + "answer_nll": 0.05790431797504425 + }, + "train_2": { + "n": 444, + "accuracy": 0.9954954954954955, + "answer_accuracy": 0.9954954954954955, + "answer_nll": 0.08914678543806076, + "atomic_correct_coverage": 0.9954954954954955, + "conditional_accuracy": 0.995475113122172, + "autonomous_two_calls": 0.9954954954954955, + "autonomous_path_accuracy": 0.9954954954954955, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.31451612903225806, + "answer_accuracy": 0.31451612903225806, + "answer_nll": 2.7890825271606445, + "atomic_correct_coverage": 0.9758064516129032, + "conditional_accuracy": 0.32231404958677684, + "autonomous_two_calls": 0.9758064516129032, + "autonomous_path_accuracy": 0.9758064516129032, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 6.4255852699279785, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9518229166666666, + "answer_accuracy": 0.9518229166666666, + "answer_nll": 0.22682826220989227, + "atomic_correct_coverage": 0.9921875, + "conditional_accuracy": 0.952755905511811, + "autonomous_two_calls": 0.9921875, + "autonomous_path_accuracy": 0.9921875, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3009118541033435, + "answer_accuracy": 0.3009118541033435, + "answer_nll": 3.148594856262207, + "atomic_correct_coverage": 0.9848024316109423, + "conditional_accuracy": 0.3055555555555556, + "autonomous_two_calls": 0.9848024316109423, + "autonomous_path_accuracy": 0.9848024316109423, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 7.268560886383057, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9309895833333334, + "answer_accuracy": 0.9309895833333334, + "answer_nll": 0.31359460949897766, + "atomic_correct_coverage": 0.9869791666666666, + "conditional_accuracy": 0.9313984168865436, + "autonomous_two_calls": 0.9869791666666666, + "autonomous_path_accuracy": 0.9869791666666666, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.21560975609756097, + "answer_accuracy": 0.21560975609756097, + "answer_nll": 4.048074722290039, + "atomic_correct_coverage": 0.9921951219512195, + "conditional_accuracy": 0.21238938053097345, + "autonomous_two_calls": 0.9921951219512195, + "autonomous_path_accuracy": 0.9921951219512195, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 7.23057222366333, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.354451060295105, + "training_seconds": 0.8705110810697079, + "estimated_training_flops": 3718250496000, + "supervised_tokens": 832000, + "padded_input_tokens": 1024000 + }, + { + "step": 2000, + "lr": 0.000998233549067816, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.008986915461719036 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.013917100615799427, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3548387096774194, + "answer_accuracy": 0.3548387096774194, + "answer_nll": 2.8291754722595215, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3548387096774194, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 7.975081443786621, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9947916666666666, + "answer_accuracy": 0.9947916666666666, + "answer_nll": 0.029746973887085915, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9947916666666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3282674772036474, + "answer_accuracy": 0.3282674772036474, + "answer_nll": 3.671802282333374, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3282674772036474, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 8.780549049377441, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9934895833333334, + "answer_accuracy": 0.9934895833333334, + "answer_nll": 0.04605285823345184, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9934895833333334, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2175609756097561, + "answer_accuracy": 0.2175609756097561, + "answer_nll": 4.929694652557373, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2175609756097561, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 8.854011535644531, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.2171326875686646, + "training_seconds": 1.7407990135252476, + "estimated_training_flops": 7436500992000, + "supervised_tokens": 1664000, + "padded_input_tokens": 2048000 + }, + { + "step": 4000, + "lr": 0.0009921451014991594, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.001214989461004734 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.002138301497325301, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3467741935483871, + "answer_accuracy": 0.3467741935483871, + "answer_nll": 3.369095802307129, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3467741935483871, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 8.445415496826172, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0021125595085322857, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3525835866261398, + "answer_accuracy": 0.3525835866261398, + "answer_nll": 3.6564652919769287, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3525835866261398, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 9.218283653259277, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0023892263416200876, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.25658536585365854, + "answer_accuracy": 0.25658536585365854, + "answer_nll": 5.038956642150879, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.25658536585365854, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 9.883537292480469, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.187194585800171, + "training_seconds": 3.479079034179449, + "estimated_training_flops": 14873001984000, + "supervised_tokens": 3328000, + "padded_input_tokens": 4096000 + }, + { + "step": 8000, + "lr": 0.0009672142859549292, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.004587039351463318 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.006291911471635103, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3951612903225806, + "answer_accuracy": 0.3951612903225806, + "answer_nll": 3.0636239051818848, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3951612903225806, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 9.541101455688477, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9947916666666666, + "answer_accuracy": 0.9947916666666666, + "answer_nll": 0.03240542113780975, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9947916666666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3617021276595745, + "answer_accuracy": 0.3617021276595745, + "answer_nll": 3.704054355621338, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3617021276595745, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 9.7984619140625, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9830729166666666, + "answer_accuracy": 0.9830729166666666, + "answer_nll": 0.05928730592131615, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9830729166666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.24780487804878049, + "answer_accuracy": 0.24780487804878049, + "answer_nll": 5.073965549468994, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.24780487804878049, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 10.310386657714844, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1978386640548706, + "training_seconds": 6.95817930996418, + "estimated_training_flops": 29746003968000, + "supervised_tokens": 6656000, + "padded_input_tokens": 8192000 + }, + { + "step": 16000, + "lr": 0.0008705396215758866, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00016588247672189027 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00022834850824438035, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.4112903225806452, + "answer_accuracy": 0.4112903225806452, + "answer_nll": 2.9527676105499268, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.4112903225806452, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 9.860564231872559, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.046875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00029359571635723114, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.40425531914893614, + "answer_accuracy": 0.40425531914893614, + "answer_nll": 3.4998791217803955, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.40425531914893614, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 10.665473937988281, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00033214164432138205, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.25073170731707317, + "answer_accuracy": 0.25073170731707317, + "answer_nll": 5.585129737854004, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.25073170731707317, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.127920150756836, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1776198148727417, + "training_seconds": 13.909581031650305, + "estimated_training_flops": 59492007936000, + "supervised_tokens": 13312000, + "padded_input_tokens": 16384000 + }, + { + "step": 32000, + "lr": 0.0005522158479326845, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 5.236403740127571e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 6.200544157763943e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.47580645161290325, + "answer_accuracy": 0.47580645161290325, + "answer_nll": 2.7548413276672363, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.47580645161290325, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 10.928218841552734, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 8.38235137052834e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.41641337386018235, + "answer_accuracy": 0.41641337386018235, + "answer_nll": 3.8038883209228516, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.41641337386018235, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 11.233121871948242, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00010383944027125835, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.26634146341463416, + "answer_accuracy": 0.26634146341463416, + "answer_nll": 5.740074157714844, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.26634146341463416, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.367825508117676, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1732958555221558, + "training_seconds": 27.82315019518137, + "estimated_training_flops": 118984015872000, + "supervised_tokens": 26624000, + "padded_input_tokens": 32768000 + }, + { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.4589933925890364e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.5171615814324468e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.41935483870967744, + "answer_accuracy": 0.41935483870967744, + "answer_nll": 3.0804171562194824, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.41935483870967744, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 10.59312629699707, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 2.178587601520121e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.44376899696048633, + "answer_accuracy": 0.44376899696048633, + "answer_nll": 3.813037157058716, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.44376899696048633, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 11.461893081665039, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 2.5271414415328763e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.27902439024390246, + "answer_accuracy": 0.27902439024390246, + "answer_nll": 5.954558849334717, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.27902439024390246, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 10.551775932312012, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1726962327957153, + "training_seconds": 55.62400818988681, + "estimated_training_flops": 237968031744000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + } +] diff --git a/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/spec.json b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/spec.json new file mode 100644 index 0000000000000000000000000000000000000000..a76a16f79d9660f681447c69bbe4ba8f9094295a --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/spec.json @@ -0,0 +1,66 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 3, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/status.json b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/status.json new file mode 100644 index 0000000000000000000000000000000000000000..d332dc2b8bde7c33219e9f3a7045f6466b684b92 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/status.json @@ -0,0 +1,4 @@ +{ + "step": 64000, + "budget": 64000 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/train-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/train-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..ebbaf8d21cb37968bdf302bccbc72e451071e395 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/train-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "train", + "gpu": 2, + "returncode": 0, + "seconds": 70.29122346267104 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/train-process.log b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/train-process.log new file mode 100644 index 0000000000000000000000000000000000000000..7dc06568f7df2c43f49223c7a1a93142f8f888d4 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/train-process.log @@ -0,0 +1,10 @@ +{"run": "w751011-i752011-d128-l3-r1-s64000", "step": 0, "atomic": 0.0, "familiar": {"2": 0.0, "3": 0.0, "4": 0.0}} +{"run": "w751011-i752011-d128-l3-r1-s64000", "step": 256, "atomic": 0.1640625, "familiar": {"2": 0.10483870967741936, "3": 0.1033434650455927, "4": 0.09463414634146342}} +{"run": "w751011-i752011-d128-l3-r1-s64000", "step": 512, "atomic": 0.85546875, "familiar": {"2": 0.25806451612903225, "3": 0.19148936170212766, "4": 0.13951219512195123}} +{"run": "w751011-i752011-d128-l3-r1-s64000", "step": 1000, "atomic": 0.99609375, "familiar": {"2": 0.31451612903225806, "3": 0.3009118541033435, "4": 0.21560975609756097}} +{"run": "w751011-i752011-d128-l3-r1-s64000", "step": 2000, "atomic": 1.0, "familiar": {"2": 0.3548387096774194, "3": 0.3282674772036474, "4": 0.2175609756097561}} +{"run": "w751011-i752011-d128-l3-r1-s64000", "step": 4000, "atomic": 1.0, "familiar": {"2": 0.3467741935483871, "3": 0.3525835866261398, "4": 0.25658536585365854}} +{"run": "w751011-i752011-d128-l3-r1-s64000", "step": 8000, "atomic": 1.0, "familiar": {"2": 0.3951612903225806, "3": 0.3617021276595745, "4": 0.24780487804878049}} +{"run": "w751011-i752011-d128-l3-r1-s64000", "step": 16000, "atomic": 1.0, "familiar": {"2": 0.4112903225806452, "3": 0.40425531914893614, "4": 0.25073170731707317}} +{"run": "w751011-i752011-d128-l3-r1-s64000", "step": 32000, "atomic": 1.0, "familiar": {"2": 0.47580645161290325, "3": 0.41641337386018235, "4": 0.26634146341463416}} +{"run": "w751011-i752011-d128-l3-r1-s64000", "step": 64000, "atomic": 1.0, "familiar": {"2": 0.41935483870967744, "3": 0.44376899696048633, "4": 0.27902439024390246}} diff --git a/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/world-metadata.json b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/world-metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0d160c9e2f6a49b4d5ec9ef5ade290343346beb5 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l3-r1-s64000/world-metadata.json @@ -0,0 +1,11519 @@ +{ + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "id_mask": [ + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + false, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + true, + true, + false, + false, + false, + true, + true, + true, + false, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + false, + true, + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true + ], + "source_worlds": { + "2": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": true, + "phi_actual": 2.3125, + "mixed_composite_excluded": 392, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 444, + "test_composite": 124, + "test_full_composite": 124, + "ood_composite": 64, + "unused_composite": 0 + }, + "dataset_sha256": "59e810faf8478e02f02ffd785bce119413d62608e48c5d41a4c24032dda4abc2", + "warnings": [ + "Training request capped at eligible pool" + ], + "hops": 2, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 568, + "all_paths_total": 1024, + "training_fraction_of_id_paths": 0.7816901408450704, + "training_fraction_of_nonreserved_id_paths": 1.0, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 29, + 49, + 14, + 32, + 62, + 86, + 66, + 5, + 8, + 83, + 50, + 88, + 116, + 23, + 87, + 80, + 100, + 9, + 117, + 81, + 79, + 54, + 91, + 111, + 19, + 4, + 68, + 2, + 113, + 40, + 65, + 27, + 38, + 0, + 41, + 21, + 1, + 78, + 82, + 101, + 15, + 20, + 59, + 35, + 99, + 53, + 84, + 123, + 114, + 56, + 108, + 72, + 55, + 104, + 92, + 22, + 89, + 43, + 18, + 11, + 74, + 13, + 52, + 60, + 25, + 109, + 48, + 57, + 71, + 115, + 30, + 110, + 61, + 119, + 44, + 95, + 106, + 47, + 121, + 24, + 69, + 118, + 98, + 39, + 34, + 112, + 26, + 102, + 36, + 75, + 33, + 105, + 96, + 51, + 94, + 58, + 90, + 12, + 10, + 97, + 76, + 107, + 93, + 42, + 6, + 17, + 46, + 122, + 64, + 67, + 73, + 85, + 77, + 28, + 7, + 45, + 3, + 120, + 63, + 70, + 37, + 16, + 31, + 103 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 444, + "any_repeated_entity_n": 45, + "any_repeated_entity_fraction": 0.10135135135135136, + "answer_equals_preceding_entity_n": 33, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 185, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 0, + 4, + 2, + 0, + 1, + 0, + 2, + 0, + 3, + 2, + 0, + 1, + 2, + 0, + 0, + 2, + 3, + 3, + 2, + 1, + 3, + 3, + 0, + 3, + 2, + 2, + 0, + 2, + 3, + 1, + 2, + 4, + 3, + 3, + 2, + 0, + 0, + 1, + 3, + 0, + 0, + 4, + 4, + 1, + 0, + 2, + 2, + 0, + 0, + 0, + 1, + 4, + 3, + 0, + 0, + 1, + 0, + 3, + 0, + 0, + 4, + 2, + 2, + 2, + 0, + 2, + 2, + 0, + 2, + 3, + 0, + 0, + 2, + 3, + 3, + 4, + 0, + 3, + 4, + 2, + 3, + 0, + 2, + 2, + 0, + 3, + 1, + 3, + 3, + 3, + 0, + 2, + 3, + 1, + 0, + 3, + 2, + 3, + 3, + 3, + 1, + 2, + 2, + 2, + 0, + 3, + 2, + 4, + 2, + 2, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 3, + 3, + 0, + 3, + 3, + 2, + 3, + 3, + 0, + 1, + 3, + 3, + 1, + 2, + 3, + 1, + 1, + 1, + 4, + 3, + 3, + 0, + 2, + 3, + 2, + 3, + 1, + 3, + 0, + 3, + 2, + 0, + 0, + 2, + 2, + 4, + 1, + 3, + 3, + 3, + 0, + 2, + 2, + 2, + 2, + 2, + 0, + 3, + 0, + 0, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 0, + 2, + 0, + 3, + 2, + 2, + 4, + 2, + 0, + 4, + 2, + 3, + 4, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 4, + 2, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 2, + 2, + 3, + 1, + 2, + 2, + 2, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 2, + 1, + 0, + 1, + 3, + 4, + 2, + 2, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 182, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 0, + 3, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 0, + 5, + 3, + 0, + 1, + 1, + 1, + 3, + 0, + 4, + 4, + 4, + 0, + 5, + 4, + 1, + 2, + 1, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 3, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 5, + 4, + 0, + 1, + 2, + 0, + 0, + 4, + 6, + 5, + 5, + 0, + 2, + 2, + 2, + 1, + 0, + 2, + 3, + 3, + 2, + 2, + 2, + 2, + 2, + 0, + 2, + 2, + 4, + 0, + 4, + 3, + 1, + 1, + 1, + 1, + 2, + 2, + 1, + 0, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 0, + 2, + 3, + 0, + 4, + 0, + 1, + 1, + 2, + 3, + 0, + 3, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 2, + 1, + 3, + 3, + 3, + 2, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 2, + 2, + 2, + 2, + 2, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 3, + 2, + 0, + 3, + 2, + 2, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 2, + 3, + 1, + 5, + 6, + 7, + 6, + 3, + 2, + 0, + 3, + 2, + 3, + 2, + 3, + 0, + 4, + 3, + 3, + 1, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 1, + 2, + 2, + 0, + 5, + 0, + 6, + 0, + 0, + 4, + 4, + 3, + 1, + 3, + 2, + 2, + 0, + 2, + 3, + 2, + 4, + 0, + 3, + 3, + 2, + 0, + 2, + 3, + 4, + 4, + 4, + 3 + ], + "id_count_min": 0, + "id_count_max": 7 + } + ] + }, + "test_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + }, + "test_full_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 3, + 0, + 4, + 0, + 4, + 3, + 2, + 3, + 0, + 3, + 4, + 0, + 8, + 5, + 4, + 4, + 0, + 5, + 0, + 5, + 3, + 0, + 3, + 4, + 0, + 0, + 7, + 6, + 3, + 3, + 2, + 4, + 6, + 0, + 7, + 6, + 6, + 0, + 7, + 7, + 2, + 4, + 5, + 4, + 4, + 4, + 0, + 0, + 2, + 4, + 0, + 0, + 8, + 9, + 6, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 6, + 5, + 0, + 0, + 4, + 0, + 4, + 0, + 0, + 5, + 4, + 4, + 3, + 0, + 7, + 6, + 0, + 3, + 5, + 0, + 0, + 6, + 9, + 8, + 9, + 0, + 5, + 6, + 4, + 4, + 0, + 4, + 5, + 3, + 5, + 3, + 5, + 5, + 5, + 0, + 4, + 5, + 5, + 0, + 7, + 5, + 4, + 4, + 4, + 2, + 4, + 4, + 3, + 0, + 4, + 3, + 5, + 2, + 4, + 4, + 0, + 0, + 4, + 3, + 0, + 7, + 0, + 3, + 3, + 5, + 6, + 0, + 6, + 4, + 3, + 4, + 4, + 0, + 1, + 3, + 3, + 1, + 4, + 5, + 3, + 2, + 4, + 7, + 6, + 5, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 7, + 5, + 0, + 0, + 4, + 4, + 6, + 3, + 5, + 4, + 5, + 0, + 6, + 5, + 6, + 5, + 5, + 0, + 6, + 0, + 0, + 0, + 6, + 3, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 0, + 4, + 3, + 4, + 0, + 0, + 5, + 5, + 3, + 7, + 10, + 9, + 8, + 3, + 4, + 0, + 6, + 4, + 5, + 6, + 5, + 0, + 8, + 5, + 6, + 5, + 0, + 6, + 4, + 0, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 9, + 0, + 8, + 0, + 0, + 6, + 6, + 6, + 2, + 5, + 4, + 4, + 0, + 2, + 3, + 4, + 6, + 0, + 5, + 5, + 3, + 0, + 3, + 6, + 8, + 6, + 6, + 5 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 444, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 444, + "any_relevant_fact_in_composite_training_n": 444, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 444, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 185, + 182 + ], + "within_split_majority_tail": { + "target_token": 8, + "count": 16, + "fraction": 0.036036036036036036, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.036036036036036036, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08783783783783784, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08783783783783784, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 36, + 67, + 66, + 43 + ], + [ + 47, + 69, + 66, + 56 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.13063063063063063, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.13063063063063063, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 54, + 66, + 66, + 43 + ], + [ + 11, + 66, + 66, + 22 + ] + ] + } + ] + }, + "test_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 15, + 68, + 66, + 34 + ], + [ + 18, + 68, + 66, + 22 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 35, + 66, + 66, + 53 + ], + [ + 55, + 66, + 66, + 60 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 66, + 53 + ], + [ + 5, + 69, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 53 + ], + [ + 25, + 66, + 66, + 16 + ] + ] + } + ] + }, + "ood_composite": { + "n": 64, + "unique_relevant_atomic_facts": 53, + "relevant_atomic_fact_coverage_of_graph": 0.20703125, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 44, + 39 + ], + "within_split_majority_tail": { + "target_token": 58, + "count": 5, + "fraction": 0.078125, + "distinct_targets": 30 + }, + "train_composite_majority_tail_fraction": 0.0, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.25, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 6, + 67, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.328125, + "single_target_group_query_fraction": 0.03125, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.328125, + "multi_target_groups": 14, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 13, + 66, + 66, + 13 + ] + ] + } + ] + }, + "unused_composite": { + "n": 0, + "unique_relevant_atomic_facts": 0, + "relevant_atomic_fact_coverage_of_graph": 0.0, + "all_relevant_facts_in_atomic_training_fraction": null, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": null, + "all_id_queries": 0, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 0, + 0 + ], + "within_split_majority_tail": { + "target_token": null, + "count": 0, + "fraction": null, + "distinct_targets": 0 + }, + "train_composite_majority_tail_fraction": null, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + }, + { + "suffix_relation_count": 2, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "3": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 2331, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 329, + "test_full_composite": 329, + "ood_composite": 59, + "unused_composite": 609 + }, + "dataset_sha256": "874230d99d7b1184953935d1476d34c3d69968bcc196b499299cf4c63dc75d6f", + "warnings": [], + "hops": 3, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 1706, + "all_paths_total": 4096, + "training_fraction_of_id_paths": 0.4501758499413834, + "training_fraction_of_nonreserved_id_paths": 0.5577342047930284, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 177, + 263, + 289, + 328, + 73, + 17, + 112, + 159, + 45, + 110, + 16, + 286, + 225, + 25, + 95, + 24, + 49, + 66, + 230, + 201, + 19, + 7, + 172, + 323, + 321, + 152, + 181, + 58, + 313, + 169, + 218, + 231, + 221, + 121, + 285, + 243, + 150, + 256, + 292, + 141, + 105, + 51, + 34, + 37, + 102, + 266, + 196, + 139, + 106, + 250, + 65, + 28, + 195, + 188, + 113, + 52, + 228, + 173, + 246, + 99, + 125, + 167, + 175, + 244, + 61, + 47, + 178, + 257, + 50, + 2, + 301, + 252, + 55, + 202, + 165, + 41, + 148, + 140, + 309, + 239, + 213, + 238, + 128, + 318, + 97, + 86, + 242, + 311, + 88, + 197, + 248, + 96, + 293, + 273, + 155, + 281, + 90, + 214, + 87, + 278, + 270, + 21, + 237, + 35, + 71, + 44, + 157, + 315, + 156, + 174, + 222, + 4, + 134, + 249, + 32, + 119, + 260, + 130, + 232, + 259, + 192, + 183, + 291, + 185, + 264, + 79, + 75, + 104, + 13, + 296, + 26, + 133, + 101, + 272, + 304, + 205, + 319, + 254, + 11, + 162, + 48, + 93, + 306, + 190, + 290, + 27, + 262, + 168, + 116, + 200, + 109, + 277, + 118, + 29, + 279, + 268, + 314, + 111, + 245, + 288, + 298, + 186, + 81, + 226, + 12, + 324, + 227, + 171, + 18, + 326, + 233, + 179, + 15, + 307, + 170, + 144, + 275, + 43, + 287, + 320, + 103, + 36, + 215, + 302, + 164, + 153, + 120, + 59, + 1, + 94, + 209, + 189, + 180, + 76, + 77, + 123, + 98, + 83, + 108, + 224, + 40, + 67, + 129, + 229, + 54, + 269, + 149, + 265, + 297, + 22, + 92, + 303, + 126, + 282, + 223, + 42, + 191, + 216, + 100, + 135, + 184, + 14, + 72, + 163, + 253, + 131, + 207, + 3, + 255, + 82, + 166, + 312, + 241, + 295, + 251, + 204, + 84, + 57, + 274, + 78, + 299, + 8, + 276, + 10, + 217, + 212, + 176, + 267, + 74, + 107, + 147, + 327, + 91, + 33, + 305, + 151, + 38, + 199, + 325, + 0, + 182, + 122, + 9, + 300, + 235, + 160, + 85, + 317, + 187, + 208, + 56, + 219, + 161, + 70, + 80, + 308, + 31, + 124, + 194, + 316, + 220, + 145, + 154, + 115, + 258, + 271, + 210, + 198, + 310, + 60, + 68, + 234, + 114, + 247, + 62, + 64, + 322, + 283, + 23, + 284, + 203, + 261, + 136, + 294, + 89, + 30, + 211, + 63, + 6, + 20, + 158, + 146, + 53, + 5, + 143, + 117, + 137, + 132, + 138, + 193, + 127, + 280, + 236, + 69, + 39, + 206, + 142, + 46, + 240 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 117, + "any_repeated_entity_fraction": 0.15234375, + "answer_equals_preceding_entity_n": 63, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 189, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 5, + 0, + 7, + 2, + 2, + 6, + 0, + 5, + 3, + 0, + 7, + 5, + 5, + 2, + 0, + 5, + 0, + 6, + 6, + 0, + 7, + 2, + 0, + 0, + 2, + 4, + 3, + 5, + 3, + 4, + 4, + 0, + 6, + 5, + 3, + 0, + 3, + 7, + 0, + 4, + 7, + 4, + 3, + 4, + 0, + 4, + 4, + 6, + 0, + 0, + 5, + 5, + 5, + 0, + 3, + 2, + 0, + 0, + 0, + 4, + 6, + 5, + 0, + 0, + 3, + 0, + 3, + 0, + 0, + 9, + 2, + 6, + 3, + 0, + 2, + 1, + 0, + 3, + 4, + 0, + 0, + 4, + 3, + 4, + 7, + 0, + 4, + 6, + 3, + 7, + 0, + 1, + 3, + 7, + 3, + 3, + 2, + 5, + 7, + 0, + 2, + 8, + 4, + 0, + 6, + 5, + 7, + 7, + 5, + 3, + 3, + 4, + 0, + 0, + 4, + 8, + 4, + 6, + 5, + 3, + 0, + 0, + 5, + 3, + 0, + 2, + 0, + 5, + 5, + 3, + 4, + 0, + 3, + 4, + 1, + 3, + 7, + 0, + 1, + 3, + 4, + 3, + 4, + 5, + 2, + 2, + 4, + 6, + 5, + 3, + 0, + 3, + 4, + 4, + 2, + 2, + 3, + 0, + 4, + 3, + 0, + 0, + 2, + 3, + 5, + 3, + 3, + 4, + 5, + 0, + 4, + 7, + 1, + 4, + 1, + 0, + 2, + 0, + 0, + 0, + 3, + 3, + 2, + 4, + 0, + 5, + 4, + 5, + 0, + 0, + 1, + 1, + 4, + 0, + 0, + 2, + 5, + 3, + 1, + 4, + 1, + 4, + 3, + 0, + 0, + 6, + 3, + 5, + 7, + 3, + 0, + 5, + 2, + 6, + 5, + 0, + 5, + 7, + 0, + 3, + 6, + 0, + 6, + 6, + 5, + 0, + 3, + 0, + 6, + 0, + 0, + 4, + 2, + 4, + 4, + 5, + 2, + 4, + 0, + 1, + 4, + 3, + 4, + 0, + 6, + 2, + 6, + 0, + 4, + 5, + 5, + 5, + 7, + 4 + ], + "id_count_min": 0, + "id_count_max": 9 + }, + { + "hop": 2, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 4, + 0, + 1, + 2, + 0, + 1, + 0, + 6, + 4, + 0, + 8, + 10, + 4, + 3, + 0, + 8, + 0, + 8, + 3, + 0, + 1, + 3, + 0, + 0, + 7, + 11, + 2, + 1, + 1, + 1, + 10, + 0, + 8, + 6, + 5, + 0, + 7, + 7, + 0, + 3, + 3, + 2, + 3, + 2, + 0, + 2, + 1, + 2, + 0, + 0, + 12, + 11, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 4, + 0, + 0, + 4, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 2, + 0, + 6, + 4, + 0, + 11, + 6, + 0, + 0, + 4, + 5, + 7, + 13, + 0, + 1, + 4, + 3, + 3, + 0, + 7, + 6, + 8, + 2, + 3, + 2, + 4, + 2, + 0, + 4, + 1, + 5, + 0, + 6, + 9, + 2, + 1, + 1, + 2, + 7, + 3, + 1, + 0, + 2, + 2, + 1, + 1, + 5, + 1, + 0, + 0, + 5, + 5, + 0, + 3, + 0, + 1, + 4, + 1, + 3, + 0, + 5, + 4, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 0, + 0, + 3, + 7, + 5, + 6, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 2, + 2, + 2, + 1, + 0, + 3, + 0, + 8, + 9, + 6, + 8, + 3, + 0, + 2, + 0, + 0, + 0, + 4, + 3, + 1, + 3, + 0, + 3, + 5, + 6, + 0, + 0, + 3, + 2, + 4, + 0, + 0, + 6, + 6, + 3, + 10, + 14, + 7, + 15, + 3, + 2, + 0, + 1, + 3, + 4, + 4, + 4, + 0, + 11, + 7, + 8, + 5, + 0, + 5, + 5, + 0, + 1, + 4, + 0, + 2, + 2, + 4, + 0, + 10, + 0, + 9, + 0, + 0, + 9, + 8, + 5, + 3, + 0, + 3, + 4, + 0, + 5, + 1, + 3, + 3, + 0, + 7, + 2, + 5, + 0, + 1, + 5, + 9, + 6, + 6, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 175, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 6, + 5, + 2, + 1, + 0, + 2, + 2, + 0, + 7, + 7, + 5, + 7, + 0, + 7, + 0, + 9, + 3, + 0, + 2, + 2, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 1, + 5, + 0, + 5, + 5, + 9, + 0, + 8, + 7, + 3, + 3, + 3, + 2, + 2, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 9, + 5, + 8, + 0, + 4, + 2, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 4, + 3, + 2, + 0, + 6, + 3, + 0, + 5, + 3, + 0, + 0, + 4, + 5, + 10, + 6, + 0, + 3, + 4, + 5, + 7, + 0, + 5, + 9, + 5, + 1, + 2, + 2, + 0, + 1, + 0, + 1, + 4, + 10, + 0, + 8, + 7, + 1, + 2, + 2, + 2, + 2, + 4, + 4, + 0, + 4, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 3, + 1, + 0, + 2, + 0, + 7, + 7, + 8, + 9, + 0, + 6, + 4, + 1, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 3, + 4, + 3, + 6, + 1, + 4, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 16, + 9, + 0, + 0, + 3, + 3, + 4, + 2, + 4, + 3, + 3, + 0, + 10, + 8, + 7, + 8, + 4, + 0, + 4, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 0, + 4, + 5, + 5, + 0, + 0, + 3, + 5, + 3, + 0, + 0, + 5, + 5, + 3, + 14, + 5, + 8, + 6, + 6, + 5, + 0, + 4, + 5, + 2, + 1, + 5, + 0, + 6, + 12, + 7, + 0, + 0, + 1, + 1, + 0, + 2, + 6, + 0, + 2, + 3, + 2, + 0, + 9, + 0, + 5, + 0, + 0, + 5, + 7, + 2, + 6, + 6, + 8, + 8, + 0, + 0, + 1, + 2, + 6, + 0, + 3, + 8, + 1, + 0, + 4, + 4, + 11, + 7, + 8, + 7 + ], + "id_count_min": 0, + "id_count_max": 16 + } + ] + }, + "test_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + }, + "test_full_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 192, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 6, + 0, + 12, + 0, + 14, + 9, + 4, + 8, + 0, + 13, + 9, + 0, + 22, + 22, + 14, + 12, + 0, + 20, + 0, + 23, + 12, + 0, + 10, + 7, + 0, + 0, + 16, + 22, + 5, + 6, + 6, + 6, + 19, + 0, + 19, + 16, + 17, + 0, + 18, + 21, + 3, + 10, + 13, + 8, + 8, + 7, + 0, + 8, + 6, + 8, + 0, + 0, + 26, + 21, + 18, + 0, + 8, + 4, + 0, + 0, + 0, + 8, + 10, + 11, + 0, + 0, + 9, + 0, + 5, + 0, + 0, + 12, + 6, + 11, + 7, + 0, + 14, + 8, + 0, + 19, + 13, + 0, + 0, + 12, + 13, + 21, + 26, + 0, + 8, + 14, + 11, + 17, + 0, + 13, + 18, + 20, + 6, + 8, + 6, + 9, + 10, + 0, + 7, + 13, + 19, + 0, + 20, + 21, + 10, + 10, + 8, + 7, + 12, + 11, + 5, + 0, + 10, + 11, + 7, + 8, + 12, + 4, + 0, + 0, + 13, + 9, + 0, + 7, + 0, + 13, + 16, + 12, + 16, + 0, + 14, + 12, + 3, + 8, + 9, + 0, + 1, + 3, + 4, + 3, + 14, + 13, + 5, + 6, + 10, + 19, + 11, + 13, + 0, + 4, + 6, + 5, + 2, + 2, + 3, + 0, + 27, + 19, + 0, + 0, + 7, + 8, + 11, + 7, + 8, + 7, + 11, + 0, + 22, + 24, + 14, + 20, + 8, + 0, + 8, + 0, + 0, + 0, + 9, + 7, + 5, + 9, + 0, + 12, + 14, + 16, + 0, + 0, + 7, + 8, + 11, + 0, + 0, + 13, + 16, + 9, + 25, + 23, + 16, + 25, + 12, + 7, + 0, + 11, + 11, + 11, + 12, + 12, + 0, + 22, + 21, + 21, + 10, + 0, + 11, + 13, + 0, + 6, + 16, + 0, + 10, + 11, + 11, + 0, + 22, + 0, + 20, + 0, + 0, + 18, + 17, + 11, + 13, + 11, + 13, + 16, + 0, + 6, + 6, + 8, + 13, + 0, + 16, + 12, + 12, + 0, + 9, + 14, + 25, + 18, + 21, + 17 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.75, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.0234375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.026041666666666668, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 189, + 177, + 175 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 43, + "fraction": 0.055989583333333336, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.055989583333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10807291666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10807291666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.1640625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.1640625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.23177083333333334, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23177083333333334, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + } + ] + }, + "test_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 54, + 69, + 68, + 66, + 8 + ], + [ + 65, + 68, + 67, + 66, + 25 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 11, + 67, + 66, + 66, + 45 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 69, + 66, + 42 + ], + [ + 4, + 69, + 67, + 66, + 59 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 67, + 66, + 66, + 45 + ], + [ + 12, + 69, + 66, + 66, + 16 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "ood_composite": { + "n": 59, + "unique_relevant_atomic_facts": 51, + "relevant_atomic_fact_coverage_of_graph": 0.19921875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 59, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 41, + 30, + 31 + ], + "within_split_majority_tail": { + "target_token": 60, + "count": 6, + "fraction": 0.1016949152542373, + "distinct_targets": 25 + }, + "train_composite_majority_tail_fraction": 0.03389830508474576, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.23728813559322035, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23728813559322035, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 8, + 67, + 69, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.5423728813559322, + "single_target_group_query_fraction": 0.1016949152542373, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.5423728813559322, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 39, + "empirical_modal_target_fraction": 0.7288135593220338, + "single_target_group_query_fraction": 0.4745762711864407, + "singleton_group_query_fraction": 0.4067796610169492, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 0.5932203389830508, + "multi_query_empirical_modal_target_fraction": 0.5428571428571428, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 13, + 66, + 66, + 66, + 13 + ], + [ + 18, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "unused_composite": { + "n": 609, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 609, + "any_relevant_fact_in_composite_training_n": 609, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 609, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 186, + 172, + 174 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 26, + "fraction": 0.042692939244663386, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03940886699507389, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07717569786535304, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07717569786535304, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 69, + 67, + 66, + 52 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14614121510673234, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14614121510673234, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 67, + 66, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.22660098522167488, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.22660098522167488, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 66, + 10 + ], + [ + 6, + 66, + 66, + 66, + 60 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "4": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 11180, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 512, + "test_full_composite": 1025, + "ood_composite": 53, + "unused_composite": 3358 + }, + "dataset_sha256": "11ec0124d665d8362ddc331d5c39bc251f7cada4bc5263b5524390fbb9319e85", + "warnings": [], + "hops": 4, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 5151, + "all_paths_total": 16384, + "training_fraction_of_id_paths": 0.14909726266744322, + "training_fraction_of_nonreserved_id_paths": 0.1861366941347552, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 560, + 766, + 474, + 184, + 609, + 39, + 576, + 63, + 547, + 821, + 853, + 222, + 688, + 718, + 268, + 448, + 856, + 266, + 593, + 433, + 505, + 736, + 138, + 300, + 982, + 250, + 165, + 817, + 112, + 984, + 545, + 654, + 773, + 700, + 312, + 651, + 154, + 297, + 224, + 639, + 16, + 411, + 440, + 225, + 825, + 972, + 709, + 355, + 903, + 846, + 10, + 353, + 449, + 498, + 782, + 803, + 106, + 85, + 810, + 528, + 58, + 194, + 514, + 488, + 289, + 789, + 424, + 889, + 1014, + 877, + 417, + 4, + 691, + 597, + 81, + 412, + 401, + 635, + 331, + 199, + 115, + 341, + 743, + 447, + 288, + 965, + 950, + 21, + 507, + 399, + 519, + 414, + 953, + 403, + 834, + 619, + 486, + 379, + 347, + 969, + 974, + 952, + 568, + 30, + 337, + 882, + 722, + 955, + 506, + 831, + 359, + 418, + 454, + 105, + 516, + 157, + 109, + 940, + 228, + 95, + 145, + 642, + 543, + 787, + 124, + 243, + 996, + 1007, + 464, + 571, + 721, + 921, + 745, + 340, + 710, + 634, + 253, + 947, + 838, + 986, + 520, + 442, + 841, + 429, + 948, + 126, + 605, + 744, + 922, + 181, + 1004, + 958, + 544, + 192, + 1016, + 75, + 430, + 247, + 238, + 649, + 800, + 600, + 103, + 76, + 352, + 827, + 296, + 606, + 369, + 441, + 842, + 848, + 357, + 406, + 670, + 416, + 293, + 677, + 973, + 910, + 264, + 434, + 196, + 113, + 149, + 515, + 939, + 808, + 131, + 871, + 720, + 478, + 586, + 936, + 906, + 432, + 724, + 822, + 160, + 933, + 62, + 561, + 633, + 824, + 407, + 226, + 33, + 248, + 680, + 804, + 740, + 208, + 167, + 214, + 476, + 233, + 302, + 292, + 220, + 6, + 750, + 189, + 503, + 90, + 91, + 914, + 937, + 93, + 187, + 366, + 951, + 373, + 18, + 695, + 203, + 310, + 625, + 398, + 339, + 241, + 556, + 570, + 812, + 944, + 14, + 562, + 327, + 667, + 303, + 100, + 173, + 623, + 860, + 781, + 283, + 924, + 1000, + 180, + 899, + 767, + 523, + 125, + 316, + 564, + 1, + 536, + 726, + 786, + 930, + 168, + 546, + 360, + 957, + 741, + 935, + 971, + 332, + 481, + 703, + 136, + 445, + 162, + 590, + 111, + 38, + 326, + 190, + 342, + 72, + 541, + 487, + 524, + 278, + 764, + 174, + 646, + 757, + 946, + 270, + 102, + 761, + 141, + 799, + 28, + 919, + 601, + 86, + 183, + 47, + 675, + 885, + 956, + 836, + 218, + 335, + 307, + 317, + 37, + 596, + 120, + 648, + 1003, + 702, + 291, + 96, + 839, + 943, + 807, + 9, + 32, + 828, + 732, + 542, + 36, + 908, + 855, + 279, + 538, + 768, + 754, + 587, + 987, + 142, + 598, + 287, + 678, + 880, + 589, + 71, + 370, + 469, + 473, + 553, + 143, + 427, + 404, + 391, + 286, + 869, + 928, + 621, + 462, + 338, + 133, + 52, + 525, + 857, + 334, + 477, + 41, + 423, + 615, + 459, + 784, + 508, + 826, + 815, + 567, + 79, + 656, + 261, + 329, + 219, + 620, + 415, + 636, + 832, + 756, + 27, + 425, + 663, + 309, + 734, + 867, + 497, + 169, + 659, + 932, + 452, + 193, + 475, + 118, + 495, + 176, + 161, + 275, + 44, + 992, + 466, + 1001, + 989, + 428, + 212, + 668, + 8, + 792, + 381, + 696, + 467, + 911, + 172, + 22, + 153, + 660, + 13, + 613, + 849, + 319, + 74, + 299, + 758, + 276, + 833, + 387, + 19, + 993, + 376, + 368, + 594, + 708, + 684, + 727, + 130, + 693, + 237, + 402, + 595, + 728, + 107, + 114, + 540, + 256, + 345, + 83, + 156, + 669, + 210, + 731, + 150, + 627, + 419, + 1024, + 51, + 491, + 672, + 874, + 762, + 797, + 844, + 585, + 938, + 980, + 901, + 273, + 470, + 554, + 121, + 671, + 60, + 915, + 351, + 909, + 61, + 321, + 479, + 284, + 492, + 674, + 765, + 178, + 875, + 348, + 661, + 234, + 249, + 723, + 1020, + 259, + 629, + 236, + 117, + 305, + 673, + 582, + 422, + 611, + 861, + 483, + 413, + 377, + 97, + 999 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 194, + "any_repeated_entity_fraction": 0.2526041666666667, + "answer_equals_preceding_entity_n": 84, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 184, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 3, + 0, + 6, + 3, + 0, + 3, + 0, + 3, + 4, + 0, + 7, + 10, + 0, + 3, + 0, + 6, + 0, + 5, + 3, + 0, + 6, + 4, + 0, + 0, + 4, + 7, + 2, + 4, + 3, + 2, + 5, + 0, + 4, + 6, + 1, + 0, + 7, + 6, + 3, + 3, + 6, + 6, + 6, + 4, + 0, + 1, + 3, + 3, + 0, + 0, + 5, + 6, + 4, + 0, + 1, + 1, + 0, + 0, + 0, + 4, + 6, + 7, + 0, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 1, + 3, + 4, + 0, + 3, + 1, + 0, + 4, + 3, + 0, + 0, + 0, + 6, + 6, + 10, + 0, + 5, + 6, + 5, + 5, + 0, + 4, + 5, + 5, + 5, + 1, + 5, + 4, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 3, + 3, + 4, + 4, + 4, + 3, + 6, + 1, + 0, + 4, + 7, + 5, + 6, + 2, + 4, + 0, + 0, + 5, + 1, + 0, + 3, + 0, + 4, + 6, + 3, + 1, + 0, + 4, + 5, + 1, + 2, + 7, + 0, + 0, + 3, + 6, + 1, + 3, + 4, + 0, + 0, + 4, + 2, + 4, + 3, + 0, + 2, + 6, + 5, + 4, + 4, + 7, + 0, + 1, + 1, + 0, + 0, + 2, + 2, + 4, + 2, + 4, + 4, + 4, + 0, + 3, + 8, + 1, + 3, + 7, + 0, + 3, + 0, + 0, + 0, + 5, + 5, + 3, + 5, + 0, + 6, + 9, + 11, + 0, + 0, + 2, + 1, + 7, + 0, + 0, + 2, + 2, + 6, + 6, + 3, + 5, + 7, + 3, + 3, + 0, + 5, + 5, + 5, + 7, + 3, + 0, + 2, + 3, + 5, + 8, + 0, + 8, + 7, + 0, + 3, + 7, + 0, + 4, + 3, + 6, + 0, + 4, + 0, + 3, + 0, + 0, + 3, + 7, + 3, + 8, + 3, + 4, + 1, + 0, + 3, + 2, + 2, + 3, + 0, + 4, + 2, + 4, + 0, + 4, + 8, + 8, + 8, + 3, + 5 + ], + "id_count_min": 0, + "id_count_max": 11 + }, + { + "hop": 2, + "id_edges_covered": 173, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 4, + 0, + 9, + 7, + 6, + 2, + 0, + 5, + 0, + 7, + 3, + 0, + 4, + 3, + 0, + 0, + 6, + 7, + 1, + 1, + 0, + 2, + 9, + 0, + 4, + 6, + 4, + 0, + 5, + 7, + 1, + 3, + 3, + 3, + 2, + 3, + 0, + 1, + 2, + 2, + 0, + 0, + 14, + 9, + 6, + 0, + 1, + 0, + 0, + 0, + 0, + 5, + 4, + 2, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 2, + 0, + 5, + 3, + 0, + 13, + 5, + 0, + 0, + 4, + 10, + 9, + 15, + 0, + 3, + 4, + 2, + 2, + 0, + 8, + 5, + 3, + 1, + 2, + 4, + 5, + 3, + 0, + 1, + 5, + 8, + 0, + 8, + 4, + 0, + 1, + 0, + 1, + 6, + 3, + 2, + 0, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 0, + 7, + 5, + 0, + 3, + 0, + 3, + 5, + 3, + 4, + 0, + 2, + 4, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 1, + 0, + 3, + 8, + 3, + 5, + 0, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 8, + 6, + 0, + 0, + 3, + 1, + 4, + 0, + 1, + 1, + 4, + 0, + 9, + 14, + 0, + 10, + 3, + 0, + 3, + 0, + 0, + 0, + 9, + 2, + 1, + 6, + 0, + 2, + 2, + 5, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 4, + 5, + 6, + 12, + 8, + 9, + 9, + 2, + 6, + 0, + 7, + 1, + 5, + 5, + 3, + 0, + 4, + 11, + 12, + 1, + 0, + 2, + 5, + 0, + 1, + 0, + 0, + 5, + 2, + 8, + 0, + 11, + 0, + 5, + 0, + 0, + 8, + 8, + 7, + 6, + 5, + 1, + 2, + 0, + 4, + 3, + 4, + 7, + 0, + 7, + 7, + 0, + 0, + 3, + 3, + 7, + 10, + 9, + 12 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 172, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 4, + 0, + 5, + 2, + 0, + 1, + 0, + 3, + 2, + 0, + 6, + 4, + 3, + 2, + 0, + 9, + 0, + 12, + 6, + 0, + 6, + 3, + 0, + 0, + 7, + 15, + 1, + 0, + 2, + 1, + 7, + 0, + 5, + 5, + 13, + 0, + 8, + 13, + 2, + 3, + 2, + 1, + 1, + 2, + 0, + 1, + 2, + 1, + 0, + 0, + 5, + 7, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 3, + 0, + 8, + 2, + 0, + 10, + 3, + 0, + 0, + 2, + 10, + 11, + 3, + 0, + 5, + 8, + 4, + 4, + 0, + 5, + 4, + 5, + 3, + 0, + 1, + 2, + 0, + 0, + 1, + 4, + 4, + 0, + 9, + 8, + 2, + 1, + 3, + 2, + 2, + 1, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 7, + 5, + 5, + 0, + 5, + 11, + 1, + 4, + 2, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 3, + 2, + 4, + 4, + 4, + 3, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 11, + 12, + 0, + 0, + 4, + 5, + 6, + 0, + 4, + 5, + 5, + 0, + 7, + 12, + 6, + 10, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 5, + 5, + 4, + 0, + 2, + 1, + 5, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 5, + 5, + 5, + 12, + 8, + 7, + 4, + 4, + 7, + 0, + 6, + 4, + 6, + 6, + 3, + 0, + 10, + 6, + 13, + 4, + 0, + 3, + 2, + 0, + 4, + 3, + 0, + 1, + 2, + 2, + 0, + 12, + 0, + 3, + 0, + 0, + 5, + 3, + 2, + 10, + 4, + 6, + 5, + 0, + 1, + 0, + 1, + 6, + 0, + 9, + 4, + 5, + 0, + 2, + 3, + 8, + 7, + 5, + 9 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 4, + "id_edges_covered": 169, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 0, + 2, + 0, + 5, + 9, + 2, + 5, + 0, + 6, + 0, + 4, + 3, + 0, + 0, + 2, + 0, + 0, + 10, + 5, + 0, + 3, + 2, + 0, + 5, + 0, + 6, + 9, + 15, + 0, + 12, + 9, + 1, + 1, + 0, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 6, + 6, + 5, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 1, + 0, + 5, + 6, + 0, + 8, + 8, + 0, + 5, + 6, + 0, + 0, + 6, + 14, + 8, + 5, + 0, + 6, + 2, + 5, + 7, + 0, + 7, + 3, + 8, + 1, + 4, + 1, + 1, + 3, + 0, + 5, + 2, + 6, + 0, + 9, + 8, + 1, + 1, + 1, + 1, + 1, + 4, + 4, + 0, + 1, + 0, + 3, + 1, + 2, + 2, + 0, + 0, + 1, + 4, + 0, + 2, + 0, + 5, + 2, + 4, + 5, + 0, + 6, + 8, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 1, + 2, + 5, + 2, + 6, + 6, + 0, + 0, + 2, + 2, + 0, + 0, + 0, + 0, + 14, + 11, + 0, + 0, + 5, + 5, + 5, + 3, + 2, + 4, + 2, + 0, + 7, + 9, + 7, + 6, + 3, + 0, + 5, + 0, + 0, + 0, + 2, + 5, + 5, + 1, + 0, + 4, + 2, + 1, + 0, + 0, + 6, + 5, + 8, + 0, + 0, + 10, + 2, + 4, + 9, + 10, + 14, + 11, + 7, + 2, + 0, + 5, + 2, + 2, + 2, + 8, + 0, + 8, + 9, + 8, + 2, + 0, + 4, + 4, + 0, + 2, + 2, + 0, + 1, + 1, + 0, + 0, + 9, + 0, + 3, + 0, + 0, + 6, + 7, + 2, + 11, + 5, + 6, + 6, + 0, + 2, + 3, + 0, + 1, + 0, + 6, + 6, + 6, + 0, + 4, + 2, + 5, + 4, + 5, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + } + ] + }, + "test_composite": { + "n": 512, + "any_repeated_entity_n": 116, + "any_repeated_entity_fraction": 0.2265625, + "answer_equals_preceding_entity_n": 54, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 174, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 1, + 2, + 1, + 6, + 0, + 3, + 4, + 0, + 3, + 2, + 5, + 0, + 0, + 4, + 0, + 1, + 2, + 0, + 4, + 2, + 0, + 0, + 3, + 3, + 3, + 0, + 3, + 5, + 4, + 0, + 5, + 2, + 2, + 0, + 2, + 3, + 2, + 3, + 4, + 6, + 3, + 2, + 0, + 5, + 1, + 1, + 0, + 0, + 2, + 5, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 4, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 4, + 1, + 3, + 1, + 0, + 2, + 2, + 0, + 3, + 2, + 0, + 0, + 2, + 6, + 4, + 3, + 0, + 2, + 5, + 2, + 3, + 0, + 4, + 7, + 4, + 1, + 3, + 2, + 3, + 3, + 0, + 1, + 2, + 2, + 0, + 5, + 5, + 5, + 5, + 6, + 0, + 5, + 3, + 1, + 0, + 3, + 5, + 6, + 2, + 3, + 1, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 5, + 4, + 3, + 0, + 5, + 5, + 3, + 5, + 1, + 0, + 0, + 1, + 5, + 1, + 2, + 3, + 2, + 0, + 1, + 5, + 3, + 3, + 0, + 3, + 2, + 1, + 4, + 2, + 4, + 0, + 10, + 3, + 0, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 0, + 0, + 3, + 3, + 4, + 2, + 0, + 1, + 0, + 0, + 0, + 4, + 1, + 0, + 1, + 0, + 4, + 7, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 3, + 3, + 2, + 2, + 3, + 1, + 2, + 0, + 3, + 0, + 7, + 4, + 2, + 3, + 1, + 0, + 4, + 2, + 2, + 3, + 0, + 4, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 3, + 4, + 5, + 4, + 0, + 5, + 0, + 2, + 1, + 1, + 3, + 0, + 4, + 3, + 7, + 0, + 0, + 2, + 1, + 2, + 0, + 2 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 2, + "id_edges_covered": 155, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 2, + 2, + 0, + 4, + 7, + 2, + 2, + 0, + 7, + 0, + 7, + 2, + 0, + 2, + 1, + 0, + 0, + 6, + 3, + 0, + 2, + 0, + 1, + 5, + 0, + 5, + 2, + 3, + 0, + 7, + 13, + 2, + 2, + 2, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 9, + 9, + 3, + 0, + 1, + 2, + 0, + 0, + 0, + 3, + 2, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 3, + 0, + 0, + 5, + 1, + 0, + 6, + 1, + 0, + 0, + 0, + 5, + 7, + 6, + 0, + 0, + 2, + 4, + 1, + 0, + 2, + 3, + 7, + 2, + 4, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 0, + 2, + 7, + 2, + 1, + 2, + 0, + 3, + 0, + 7, + 0, + 2, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 4, + 2, + 0, + 7, + 0, + 2, + 3, + 0, + 5, + 0, + 3, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 1, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 12, + 2, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 1, + 3, + 0, + 1, + 3, + 2, + 7, + 3, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 2, + 1, + 4, + 0, + 0, + 3, + 7, + 2, + 10, + 12, + 3, + 7, + 2, + 0, + 0, + 4, + 4, + 2, + 3, + 1, + 0, + 5, + 2, + 6, + 2, + 0, + 3, + 1, + 0, + 2, + 2, + 0, + 4, + 6, + 3, + 0, + 6, + 0, + 5, + 0, + 0, + 4, + 6, + 4, + 3, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 2, + 0, + 4, + 4, + 4, + 0, + 2, + 5, + 6, + 9, + 3, + 2 + ], + "id_count_min": 0, + "id_count_max": 13 + }, + { + "hop": 3, + "id_edges_covered": 156, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 2, + 3, + 5, + 0, + 2, + 0, + 0, + 4, + 3, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 0, + 0, + 0, + 7, + 9, + 0, + 2, + 0, + 1, + 4, + 0, + 6, + 3, + 8, + 0, + 6, + 9, + 0, + 1, + 2, + 3, + 3, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 7, + 4, + 3, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 5, + 1, + 0, + 4, + 4, + 0, + 0, + 5, + 4, + 3, + 4, + 0, + 5, + 4, + 2, + 4, + 0, + 4, + 2, + 6, + 1, + 1, + 3, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 7, + 4, + 1, + 0, + 0, + 1, + 3, + 2, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 2, + 0, + 0, + 5, + 1, + 0, + 2, + 0, + 3, + 7, + 3, + 6, + 0, + 4, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 6, + 1, + 2, + 4, + 4, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 5, + 3, + 0, + 0, + 2, + 2, + 3, + 2, + 3, + 1, + 5, + 0, + 4, + 9, + 2, + 6, + 6, + 0, + 4, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 5, + 2, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 2, + 2, + 8, + 3, + 5, + 4, + 3, + 5, + 0, + 2, + 3, + 4, + 3, + 3, + 0, + 9, + 6, + 10, + 1, + 0, + 1, + 2, + 0, + 0, + 1, + 0, + 1, + 1, + 2, + 0, + 6, + 0, + 0, + 0, + 0, + 8, + 6, + 6, + 3, + 2, + 2, + 5, + 0, + 0, + 2, + 0, + 3, + 0, + 5, + 2, + 2, + 0, + 1, + 2, + 5, + 6, + 6, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 4, + "id_edges_covered": 164, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 2, + 0, + 3, + 2, + 6, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 4, + 5, + 2, + 1, + 1, + 1, + 2, + 0, + 5, + 3, + 4, + 0, + 4, + 10, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 2, + 1, + 1, + 0, + 0, + 2, + 4, + 4, + 0, + 0, + 2, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 0, + 0, + 0, + 0, + 0, + 4, + 0, + 2, + 0, + 6, + 1, + 0, + 6, + 2, + 0, + 0, + 7, + 4, + 8, + 9, + 0, + 4, + 6, + 1, + 3, + 0, + 4, + 3, + 4, + 3, + 1, + 0, + 1, + 5, + 0, + 3, + 1, + 5, + 0, + 4, + 7, + 1, + 1, + 0, + 2, + 1, + 3, + 1, + 0, + 1, + 2, + 2, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 2, + 5, + 4, + 7, + 0, + 3, + 3, + 2, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 4, + 2, + 2, + 1, + 3, + 5, + 2, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 8, + 0, + 0, + 0, + 2, + 4, + 3, + 2, + 2, + 4, + 0, + 5, + 1, + 9, + 9, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 2, + 0, + 0, + 2, + 3, + 6, + 9, + 4, + 7, + 2, + 6, + 4, + 0, + 5, + 1, + 2, + 1, + 0, + 0, + 7, + 5, + 5, + 0, + 0, + 0, + 0, + 0, + 5, + 1, + 0, + 4, + 3, + 1, + 0, + 2, + 0, + 3, + 0, + 0, + 3, + 2, + 1, + 5, + 4, + 6, + 4, + 0, + 0, + 0, + 2, + 5, + 0, + 3, + 4, + 3, + 0, + 2, + 3, + 6, + 3, + 5, + 1 + ], + "id_count_min": 0, + "id_count_max": 10 + } + ] + }, + "test_full_composite": { + "n": 1025, + "any_repeated_entity_n": 243, + "any_repeated_entity_fraction": 0.2370731707317073, + "answer_equals_preceding_entity_n": 116, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 187, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 5, + 0, + 5, + 0, + 2, + 4, + 2, + 12, + 0, + 6, + 5, + 0, + 8, + 8, + 8, + 3, + 0, + 8, + 0, + 2, + 4, + 0, + 9, + 3, + 0, + 0, + 5, + 5, + 4, + 0, + 5, + 7, + 6, + 0, + 11, + 5, + 3, + 0, + 5, + 6, + 4, + 3, + 7, + 11, + 4, + 5, + 0, + 7, + 3, + 4, + 0, + 0, + 7, + 10, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 6, + 6, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 7, + 1, + 9, + 3, + 0, + 4, + 4, + 0, + 5, + 5, + 0, + 0, + 3, + 8, + 6, + 6, + 0, + 3, + 10, + 7, + 5, + 0, + 6, + 10, + 7, + 2, + 8, + 4, + 6, + 6, + 0, + 5, + 9, + 6, + 0, + 6, + 8, + 7, + 6, + 10, + 0, + 10, + 6, + 5, + 0, + 7, + 8, + 6, + 5, + 5, + 2, + 0, + 0, + 5, + 5, + 0, + 4, + 0, + 5, + 11, + 7, + 12, + 0, + 5, + 14, + 4, + 8, + 6, + 0, + 2, + 5, + 6, + 3, + 2, + 4, + 4, + 0, + 2, + 13, + 3, + 7, + 0, + 6, + 3, + 4, + 9, + 5, + 7, + 0, + 13, + 5, + 0, + 0, + 6, + 0, + 7, + 3, + 3, + 7, + 5, + 0, + 3, + 7, + 4, + 6, + 4, + 0, + 4, + 0, + 0, + 0, + 5, + 4, + 1, + 3, + 0, + 6, + 12, + 5, + 0, + 0, + 4, + 1, + 3, + 0, + 0, + 5, + 9, + 3, + 5, + 6, + 2, + 6, + 1, + 4, + 0, + 9, + 6, + 4, + 5, + 2, + 0, + 7, + 6, + 7, + 6, + 0, + 9, + 4, + 0, + 3, + 6, + 0, + 6, + 6, + 2, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 8, + 6, + 7, + 5, + 1, + 6, + 0, + 2, + 2, + 9, + 4, + 0, + 11, + 4, + 14, + 0, + 0, + 3, + 7, + 5, + 2, + 6 + ], + "id_count_min": 0, + "id_count_max": 14 + }, + { + "hop": 2, + "id_edges_covered": 179, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 3, + 0, + 1, + 2, + 1, + 2, + 0, + 5, + 3, + 0, + 10, + 10, + 5, + 4, + 0, + 13, + 0, + 12, + 2, + 0, + 4, + 2, + 0, + 0, + 11, + 9, + 1, + 2, + 0, + 2, + 10, + 0, + 7, + 5, + 9, + 0, + 9, + 21, + 4, + 3, + 3, + 6, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 12, + 19, + 8, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 4, + 3, + 0, + 0, + 5, + 0, + 0, + 0, + 0, + 3, + 0, + 4, + 2, + 0, + 10, + 2, + 0, + 11, + 3, + 0, + 0, + 4, + 10, + 11, + 10, + 0, + 2, + 6, + 7, + 2, + 0, + 7, + 7, + 12, + 2, + 5, + 2, + 2, + 3, + 0, + 3, + 2, + 2, + 0, + 5, + 13, + 5, + 2, + 4, + 2, + 4, + 3, + 10, + 0, + 5, + 0, + 3, + 3, + 3, + 2, + 0, + 0, + 17, + 4, + 0, + 11, + 0, + 4, + 4, + 3, + 6, + 0, + 8, + 7, + 4, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 4, + 2, + 4, + 5, + 1, + 8, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 20, + 5, + 0, + 0, + 2, + 2, + 5, + 1, + 2, + 2, + 6, + 0, + 8, + 7, + 3, + 12, + 7, + 0, + 7, + 0, + 0, + 0, + 3, + 4, + 3, + 4, + 0, + 7, + 4, + 1, + 0, + 0, + 2, + 4, + 6, + 0, + 0, + 3, + 9, + 3, + 15, + 28, + 5, + 20, + 4, + 1, + 0, + 8, + 6, + 3, + 6, + 3, + 0, + 14, + 7, + 10, + 6, + 0, + 9, + 3, + 0, + 3, + 4, + 0, + 9, + 9, + 5, + 0, + 15, + 0, + 11, + 0, + 0, + 8, + 10, + 9, + 7, + 2, + 3, + 5, + 0, + 5, + 4, + 1, + 7, + 0, + 9, + 4, + 6, + 0, + 2, + 6, + 14, + 12, + 13, + 5 + ], + "id_count_min": 0, + "id_count_max": 28 + }, + { + "hop": 3, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 3, + 0, + 8, + 5, + 4, + 11, + 0, + 5, + 2, + 0, + 9, + 12, + 6, + 3, + 0, + 5, + 0, + 8, + 5, + 0, + 1, + 1, + 0, + 0, + 14, + 13, + 0, + 2, + 2, + 2, + 6, + 0, + 10, + 9, + 14, + 0, + 14, + 17, + 1, + 1, + 2, + 3, + 4, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 13, + 9, + 8, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 5, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 2, + 0, + 8, + 4, + 0, + 10, + 7, + 0, + 0, + 7, + 8, + 6, + 11, + 0, + 8, + 9, + 5, + 7, + 0, + 10, + 5, + 12, + 3, + 2, + 4, + 0, + 6, + 0, + 1, + 3, + 4, + 0, + 10, + 10, + 1, + 0, + 3, + 1, + 3, + 6, + 2, + 0, + 0, + 3, + 2, + 2, + 1, + 3, + 0, + 0, + 8, + 2, + 0, + 3, + 0, + 12, + 13, + 6, + 10, + 0, + 7, + 4, + 2, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 2, + 6, + 1, + 4, + 5, + 5, + 5, + 10, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 14, + 4, + 0, + 0, + 3, + 5, + 7, + 5, + 8, + 2, + 8, + 0, + 11, + 15, + 4, + 11, + 8, + 0, + 9, + 0, + 0, + 0, + 5, + 3, + 1, + 2, + 0, + 1, + 7, + 6, + 0, + 0, + 5, + 2, + 7, + 0, + 0, + 5, + 7, + 5, + 14, + 9, + 11, + 10, + 5, + 10, + 0, + 8, + 6, + 7, + 5, + 4, + 0, + 19, + 14, + 16, + 1, + 0, + 1, + 4, + 0, + 2, + 4, + 0, + 3, + 4, + 3, + 0, + 10, + 0, + 3, + 0, + 0, + 10, + 8, + 10, + 4, + 6, + 6, + 12, + 0, + 0, + 2, + 0, + 6, + 0, + 10, + 2, + 6, + 0, + 1, + 6, + 10, + 11, + 9, + 7 + ], + "id_count_min": 0, + "id_count_max": 19 + }, + { + "hop": 4, + "id_edges_covered": 181, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 1, + 0, + 4, + 0, + 1, + 4, + 0, + 1, + 2, + 0, + 8, + 6, + 10, + 8, + 0, + 10, + 0, + 8, + 1, + 0, + 2, + 4, + 0, + 0, + 7, + 8, + 3, + 1, + 1, + 3, + 5, + 0, + 11, + 7, + 10, + 0, + 11, + 17, + 1, + 1, + 1, + 1, + 1, + 4, + 0, + 5, + 1, + 2, + 0, + 0, + 7, + 11, + 6, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 1, + 2, + 0, + 0, + 6, + 0, + 0, + 0, + 0, + 1, + 6, + 2, + 3, + 0, + 14, + 11, + 0, + 11, + 6, + 0, + 0, + 10, + 7, + 12, + 12, + 0, + 5, + 10, + 6, + 4, + 0, + 9, + 8, + 8, + 5, + 1, + 0, + 1, + 6, + 0, + 5, + 4, + 14, + 0, + 12, + 12, + 1, + 1, + 1, + 2, + 5, + 6, + 2, + 0, + 2, + 4, + 3, + 1, + 3, + 1, + 0, + 0, + 3, + 4, + 0, + 4, + 0, + 5, + 12, + 7, + 14, + 0, + 8, + 5, + 5, + 3, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 4, + 5, + 3, + 4, + 10, + 7, + 3, + 0, + 4, + 1, + 3, + 0, + 0, + 0, + 0, + 9, + 15, + 0, + 0, + 3, + 4, + 5, + 5, + 6, + 4, + 7, + 0, + 8, + 8, + 12, + 14, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 7, + 6, + 0, + 4, + 3, + 2, + 0, + 0, + 9, + 6, + 5, + 0, + 0, + 2, + 4, + 8, + 16, + 10, + 15, + 9, + 10, + 8, + 0, + 9, + 3, + 3, + 2, + 1, + 0, + 14, + 9, + 10, + 2, + 0, + 0, + 2, + 0, + 6, + 5, + 0, + 5, + 3, + 2, + 0, + 5, + 0, + 4, + 0, + 0, + 7, + 5, + 9, + 8, + 7, + 9, + 9, + 0, + 1, + 1, + 2, + 10, + 0, + 4, + 6, + 4, + 0, + 4, + 10, + 9, + 10, + 11, + 10 + ], + "id_count_min": 0, + "id_count_max": 17 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 5, + 0, + 10, + 0, + 14, + 7, + 4, + 6, + 0, + 10, + 12, + 0, + 27, + 30, + 11, + 12, + 0, + 26, + 0, + 28, + 15, + 0, + 16, + 12, + 0, + 0, + 27, + 34, + 4, + 8, + 7, + 5, + 26, + 0, + 19, + 26, + 33, + 0, + 32, + 35, + 7, + 10, + 11, + 10, + 13, + 12, + 0, + 5, + 9, + 6, + 0, + 0, + 30, + 28, + 17, + 0, + 5, + 4, + 0, + 0, + 0, + 13, + 12, + 9, + 0, + 0, + 6, + 0, + 10, + 0, + 0, + 7, + 4, + 11, + 15, + 0, + 24, + 14, + 0, + 32, + 17, + 0, + 0, + 12, + 40, + 34, + 33, + 0, + 19, + 20, + 16, + 18, + 0, + 24, + 17, + 21, + 10, + 7, + 11, + 12, + 10, + 0, + 7, + 13, + 20, + 0, + 30, + 23, + 6, + 7, + 8, + 8, + 12, + 14, + 9, + 0, + 7, + 9, + 10, + 9, + 5, + 11, + 0, + 0, + 15, + 12, + 0, + 10, + 0, + 15, + 20, + 15, + 15, + 0, + 17, + 28, + 2, + 8, + 12, + 0, + 0, + 3, + 6, + 1, + 14, + 14, + 5, + 4, + 16, + 16, + 17, + 17, + 0, + 3, + 10, + 9, + 4, + 4, + 7, + 0, + 34, + 30, + 0, + 0, + 14, + 13, + 19, + 5, + 11, + 14, + 15, + 0, + 26, + 43, + 14, + 29, + 17, + 0, + 12, + 0, + 0, + 0, + 17, + 17, + 14, + 16, + 0, + 14, + 14, + 22, + 0, + 0, + 11, + 8, + 22, + 0, + 0, + 21, + 14, + 21, + 39, + 29, + 35, + 31, + 16, + 18, + 0, + 23, + 12, + 18, + 20, + 17, + 0, + 24, + 29, + 38, + 15, + 0, + 17, + 18, + 0, + 10, + 12, + 0, + 11, + 8, + 16, + 0, + 36, + 0, + 14, + 0, + 0, + 22, + 25, + 14, + 35, + 17, + 17, + 14, + 0, + 10, + 8, + 7, + 17, + 0, + 26, + 19, + 15, + 0, + 13, + 16, + 28, + 29, + 22, + 32 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 184, + 173, + 172, + 169 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 37, + "fraction": 0.048177083333333336, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.048177083333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10286458333333333, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10286458333333333, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 7, + 67, + 67, + 69, + 66, + 59 + ], + [ + 46, + 68, + 66, + 69, + 66, + 44 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.17447916666666666, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.17447916666666666, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 56, + 67, + 69, + 66, + 66, + 43 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.2643229166666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.2643229166666667, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 31, + 68, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 246, + "empirical_modal_target_fraction": 0.421875, + "single_target_group_query_fraction": 0.06380208333333333, + "singleton_group_query_fraction": 0.045572916666666664, + "multi_query_groups": 211, + "multi_query_coverage_fraction": 0.9544270833333334, + "multi_query_empirical_modal_target_fraction": 0.3942701227830832, + "multi_target_groups": 204, + "same_suffix_different_target_example": [ + [ + 28, + 66, + 66, + 66, + 66, + 60 + ], + [ + 39, + 66, + 66, + 66, + 66, + 32 + ] + ] + } + ] + }, + "test_composite": { + "n": 512, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 512, + "any_relevant_fact_in_composite_training_n": 512, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 512, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 174, + 155, + 156, + 164 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 20, + "fraction": 0.0390625, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.0390625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.091796875, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.091796875, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 49, + 66, + 67, + 67, + 66, + 63 + ], + [ + 39, + 68, + 66, + 69, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.15625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.15625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 9, + 67, + 69, + 66, + 66, + 34 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.279296875, + "single_target_group_query_fraction": 0.001953125, + "singleton_group_query_fraction": 0.001953125, + "multi_query_groups": 63, + "multi_query_coverage_fraction": 0.998046875, + "multi_query_empirical_modal_target_fraction": 0.27788649706457924, + "multi_target_groups": 63, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 13, + 67, + 66, + 66, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 217, + "empirical_modal_target_fraction": 0.490234375, + "single_target_group_query_fraction": 0.138671875, + "singleton_group_query_fraction": 0.115234375, + "multi_query_groups": 158, + "multi_query_coverage_fraction": 0.884765625, + "multi_query_empirical_modal_target_fraction": 0.423841059602649, + "multi_target_groups": 152, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 68, + 65 + ], + [ + 12, + 66, + 66, + 66, + 68, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 1025, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 1023, + "any_relevant_fact_in_composite_training_n": 1025, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9995121951219512, + "all_id_queries": 1025, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 187, + 179, + 177, + 181 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 44, + "fraction": 0.042926829268292686, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.042926829268292686, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08195121951219513, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08195121951219513, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 69, + 66, + 25 + ], + [ + 2, + 67, + 68, + 67, + 66, + 57 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14146341463414633, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14146341463414633, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 67, + 66, + 66, + 53 + ], + [ + 4, + 68, + 66, + 66, + 66, + 60 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.24, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.24, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 4, + 68, + 66, + 66, + 66, + 60 + ], + [ + 6, + 66, + 66, + 66, + 66, + 36 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 249, + "empirical_modal_target_fraction": 0.3648780487804878, + "single_target_group_query_fraction": 0.02048780487804878, + "singleton_group_query_fraction": 0.014634146341463415, + "multi_query_groups": 234, + "multi_query_coverage_fraction": 0.9853658536585366, + "multi_query_empirical_modal_target_fraction": 0.35544554455445543, + "multi_target_groups": 231, + "same_suffix_different_target_example": [ + [ + 6, + 66, + 66, + 66, + 66, + 36 + ], + [ + 43, + 66, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "ood_composite": { + "n": 53, + "unique_relevant_atomic_facts": 48, + "relevant_atomic_fact_coverage_of_graph": 0.1875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 53, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 35, + 27, + 24, + 26 + ], + "within_split_majority_tail": { + "target_token": 54, + "count": 7, + "fraction": 0.1320754716981132, + "distinct_targets": 22 + }, + "train_composite_majority_tail_fraction": 0.018867924528301886, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.32075471698113206, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.32075471698113206, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 69, + 68, + 66, + 60 + ], + [ + 7, + 68, + 68, + 69, + 66, + 65 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.6981132075471698, + "single_target_group_query_fraction": 0.18867924528301888, + "singleton_group_query_fraction": 0.05660377358490566, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.9433962264150944, + "multi_query_empirical_modal_target_fraction": 0.68, + "multi_target_groups": 9, + "same_suffix_different_target_example": [ + [ + 8, + 67, + 69, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 32, + "empirical_modal_target_fraction": 0.9056603773584906, + "single_target_group_query_fraction": 0.7169811320754716, + "singleton_group_query_fraction": 0.37735849056603776, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.6226415094339622, + "multi_query_empirical_modal_target_fraction": 0.8484848484848485, + "multi_target_groups": 5, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 47, + "empirical_modal_target_fraction": 0.9622641509433962, + "single_target_group_query_fraction": 0.9056603773584906, + "singleton_group_query_fraction": 0.7924528301886793, + "multi_query_groups": 5, + "multi_query_coverage_fraction": 0.20754716981132076, + "multi_query_empirical_modal_target_fraction": 0.8181818181818182, + "multi_target_groups": 2, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + } + ] + }, + "unused_composite": { + "n": 3358, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 3354, + "any_relevant_fact_in_composite_training_n": 3358, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9997022036926743, + "all_id_queries": 3358, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192, + 185, + 185, + 184 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 143, + "fraction": 0.04258487194758785, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03335318642048839, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.09380583680762358, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.09380583680762358, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 67, + 66, + 57 + ], + [ + 2, + 67, + 66, + 68, + 66, + 50 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14502680166765933, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14502680166765933, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 67, + 66, + 66, + 10 + ], + [ + 3, + 69, + 67, + 66, + 66, + 53 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.197736748064324, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.197736748064324, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 67, + 66, + 66, + 66, + 44 + ], + [ + 5, + 66, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 256, + "empirical_modal_target_fraction": 0.25431804645622397, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 256, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25431804645622397, + "multi_target_groups": 256, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 66, + 5 + ], + [ + 7, + 66, + 66, + 66, + 66, + 45 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + } + }, + "same_atomic_and_id_mask_all_lengths": true, + "source_entity_offset": 2, + "entity_offset": 3, + "source_token_shift": 1, + "separator_token": 71, + "vocab_size": 72, + "evaluation_pools": "Complete test_full_composite and ood_composite", + "composition_supervision": "Terminal entity only; no intermediate entity", + "training_objective": "All nonpadding next tokens including EOS", + "holdout": "Complete queries held out within each length; not subpaths across lengths", + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "independent_audit": { + "passed": true, + "counts": { + "atomic": 256, + "train_2": 444, + "familiar_2": 124, + "strict_2": 64, + "train_3": 768, + "familiar_3": 329, + "strict_3": 59, + "train_4": 768, + "familiar_4": 1025, + "strict_4": 53 + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "truth_edges_independently_traversed": true, + "complete_query_overlap": 0, + "all_strict_facts_absent_from_composition_training": true, + "cross_length_subpath_holdout": false + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/audit-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/audit-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..408556a835b8949cf648574e1ad270826b7e854e --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/audit-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "audit", + "gpu": 3, + "returncode": 0, + "seconds": 4.37673220038414 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/audit-process.log b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/audit-process.log new file mode 100644 index 0000000000000000000000000000000000000000..7e4cb48becd2d934aa8e8810fb4d6275dcb599a8 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/audit-process.log @@ -0,0 +1 @@ +{"passed": true, "dataset_rebuilt_and_archived_exact": true, "initial_model_exact": true, "checkpoint_nodes": [0, 8000, 32000, 64000], "endpoint_tokens_exact": true, "all_nodes_exposure_counters_exact": true, "stream_state_continuation_exact": true, "max_nll_difference": 0.0, "nll_rtol": 1e-05, "nll_atol": 1e-05, "utc": "2026-10-01T22:55:35.765608+00:00"} diff --git a/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/audit.json b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/audit.json new file mode 100644 index 0000000000000000000000000000000000000000..2d74a4dd4b3e49b4a327c07ac028e7342ec9a959 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/audit.json @@ -0,0 +1,18 @@ +{ + "passed": true, + "dataset_rebuilt_and_archived_exact": true, + "initial_model_exact": true, + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "endpoint_tokens_exact": true, + "all_nodes_exposure_counters_exact": true, + "stream_state_continuation_exact": true, + "max_nll_difference": 0.0, + "nll_rtol": 1e-05, + "nll_atol": 1e-05, + "utc": "2026-10-01T22:55:35.765608+00:00" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/complete.json b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..09e28e16917a886f2730ed793bae6520a5ec8325 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/complete.json @@ -0,0 +1,204 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 4, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "initial_model_sha256": "a81690de56041e63af2db4af48d69e0fd82aa7644b2e406ee8bca447b5663cfb", + "checkpoint_sha256": "431620275d56670bdc084ab5ef90bc99f1d862cb2b615dd7cda53ee3d5e3637b", + "finished_utc": "2026-10-01T22:55:31.200641+00:00", + "parameters": 803712, + "strata_counts": { + "atomic": 256, + "train_2": 444, + "train_3": 768, + "train_4": 768 + }, + "endpoint": { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.509421144874068e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.435165813745698e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.5645161290322581, + "answer_accuracy": 0.5645161290322581, + "answer_nll": 2.540562152862549, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.5645161290322581, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 11.148931503295898, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 2.2615213310928084e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.5288753799392097, + "answer_accuracy": 0.5288753799392097, + "answer_nll": 2.8538429737091064, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.5288753799392097, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 10.957475662231445, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 2.397911885054782e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.27902439024390246, + "answer_accuracy": 0.27902439024390246, + "answer_nll": 5.634556770324707, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.27902439024390246, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 11.710715293884277, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03773584905660377, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1726231575012207, + "training_seconds": 69.45137270912528, + "estimated_training_flops": 316082749440000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + }, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000, + "estimated_training_flops": 316082749440000, + "training_seconds": 69.45137270912528, + "process_seconds": 74.9789169691503, + "environment": { + "torch": "2.6.0+cu126", + "numpy": "1.23.5", + "cuda": "12.6", + "gpu": "NVIDIA L20X", + "tf32": true + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/input-spec.json b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/input-spec.json new file mode 100644 index 0000000000000000000000000000000000000000..531adb802d472e0c5d2bce578f92fa786fbb6e9c --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/input-spec.json @@ -0,0 +1,65 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 4, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/learning.json b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..164604a0288aa821debd96ba79da2e9726912f78 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/learning.json @@ -0,0 +1,1162 @@ +[ + { + "step": 0, + "lr": 0.0, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.324262619018555 + }, + "train_2": { + "n": 444, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.325399398803711, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.301278591156006, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.3185343742370605, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.309593200683594, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.304719924926758, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.336567401885986, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.3259782791137695, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.316771507263184, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.3808183670043945, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": null, + "training_seconds": 0.0, + "estimated_training_flops": 0, + "supervised_tokens": 0, + "padded_input_tokens": 0 + }, + { + "step": 256, + "lr": 0.0009999982891312849, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.13671875, + "answer_accuracy": 0.13671875, + "answer_nll": 3.336552619934082 + }, + "train_2": { + "n": 444, + "accuracy": 0.12162162162162163, + "answer_accuracy": 0.12162162162162163, + "answer_nll": 3.2818355560302734, + "atomic_correct_coverage": 0.08333333333333333, + "conditional_accuracy": 0.5945945945945946, + "autonomous_two_calls": 0.12837837837837837, + "autonomous_path_accuracy": 0.08333333333333333, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.12096774193548387, + "answer_accuracy": 0.12096774193548387, + "answer_nll": 3.3143904209136963, + "atomic_correct_coverage": 0.08064516129032258, + "conditional_accuracy": 0.5, + "autonomous_two_calls": 0.12096774193548387, + "autonomous_path_accuracy": 0.08064516129032258, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 4.577348709106445, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.015625, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.12109375, + "answer_accuracy": 0.12109375, + "answer_nll": 3.2993433475494385, + "atomic_correct_coverage": 0.037760416666666664, + "conditional_accuracy": 0.7586206896551724, + "autonomous_two_calls": 0.09765625, + "autonomous_path_accuracy": 0.037760416666666664, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.0972644376899696, + "answer_accuracy": 0.0972644376899696, + "answer_nll": 3.3808958530426025, + "atomic_correct_coverage": 0.03951367781155015, + "conditional_accuracy": 0.5384615384615384, + "autonomous_two_calls": 0.11246200607902736, + "autonomous_path_accuracy": 0.03951367781155015, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 4.863264083862305, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.01694915254237288, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.12239583333333333, + "answer_accuracy": 0.12239583333333333, + "answer_nll": 3.328550100326538, + "atomic_correct_coverage": 0.01953125, + "conditional_accuracy": 0.5333333333333333, + "autonomous_two_calls": 0.09375, + "autonomous_path_accuracy": 0.01953125, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.09170731707317073, + "answer_accuracy": 0.09170731707317073, + "answer_nll": 3.4418716430664062, + "atomic_correct_coverage": 0.00878048780487805, + "conditional_accuracy": 0.7777777777777778, + "autonomous_two_calls": 0.06829268292682927, + "autonomous_path_accuracy": 0.00878048780487805, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 5.038374900817871, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.018867924528301886, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": 1.8899866342544556, + "training_seconds": 0.2780108042061329, + "estimated_training_flops": 1264330997760, + "supervised_tokens": 212992, + "padded_input_tokens": 262144 + }, + { + "step": 512, + "lr": 0.0009999468942493638, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.78515625, + "answer_accuracy": 0.78515625, + "answer_nll": 1.1916418075561523 + }, + "train_2": { + "n": 444, + "accuracy": 0.4774774774774775, + "answer_accuracy": 0.4774774774774775, + "answer_nll": 1.9055049419403076, + "atomic_correct_coverage": 0.6463963963963963, + "conditional_accuracy": 0.5853658536585366, + "autonomous_two_calls": 0.6531531531531531, + "autonomous_path_accuracy": 0.6463963963963963, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.23387096774193547, + "answer_accuracy": 0.23387096774193547, + "answer_nll": 2.8207449913024902, + "atomic_correct_coverage": 0.5806451612903226, + "conditional_accuracy": 0.25, + "autonomous_two_calls": 0.5967741935483871, + "autonomous_path_accuracy": 0.5806451612903226, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 5.34271240234375, + "atomic_correct_coverage": 0.484375, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.5, + "autonomous_path_accuracy": 0.484375, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.3216145833333333, + "answer_accuracy": 0.3216145833333333, + "answer_nll": 2.3704307079315186, + "atomic_correct_coverage": 0.5052083333333334, + "conditional_accuracy": 0.4020618556701031, + "autonomous_two_calls": 0.5299479166666666, + "autonomous_path_accuracy": 0.5052083333333334, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.1641337386018237, + "answer_accuracy": 0.1641337386018237, + "answer_nll": 3.0201046466827393, + "atomic_correct_coverage": 0.47112462006079026, + "conditional_accuracy": 0.23225806451612904, + "autonomous_two_calls": 0.48632218844984804, + "autonomous_path_accuracy": 0.47112462006079026, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.06779661016949153, + "answer_accuracy": 0.06779661016949153, + "answer_nll": 5.700201034545898, + "atomic_correct_coverage": 0.3898305084745763, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.4576271186440678, + "autonomous_path_accuracy": 0.3898305084745763, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.2669270833333333, + "answer_accuracy": 0.2669270833333333, + "answer_nll": 2.5913901329040527, + "atomic_correct_coverage": 0.390625, + "conditional_accuracy": 0.4066666666666667, + "autonomous_two_calls": 0.4231770833333333, + "autonomous_path_accuracy": 0.390625, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.14341463414634145, + "answer_accuracy": 0.14341463414634145, + "answer_nll": 3.2861294746398926, + "atomic_correct_coverage": 0.3746341463414634, + "conditional_accuracy": 0.22395833333333334, + "autonomous_two_calls": 0.3980487804878049, + "autonomous_path_accuracy": 0.3746341463414634, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 5.626791954040527, + "atomic_correct_coverage": 0.37735849056603776, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.37735849056603776, + "autonomous_path_accuracy": 0.37735849056603776, + "hop_count": 4 + } + }, + "loss": 1.6610380411148071, + "training_seconds": 0.5561103895306587, + "estimated_training_flops": 2528661995520, + "supervised_tokens": 425984, + "padded_input_tokens": 524288 + }, + { + "step": 1000, + "lr": 0.0009996508880478938, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.9921875, + "answer_accuracy": 0.9921875, + "answer_nll": 0.061545390635728836 + }, + "train_2": { + "n": 444, + "accuracy": 0.9797297297297297, + "answer_accuracy": 0.9797297297297297, + "answer_nll": 0.13475969433784485, + "atomic_correct_coverage": 0.990990990990991, + "conditional_accuracy": 0.9795454545454545, + "autonomous_two_calls": 0.990990990990991, + "autonomous_path_accuracy": 0.990990990990991, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3225806451612903, + "answer_accuracy": 0.3225806451612903, + "answer_nll": 2.66645884513855, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3225806451612903, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 7.591646671295166, + "atomic_correct_coverage": 0.953125, + "conditional_accuracy": 0.01639344262295082, + "autonomous_two_calls": 0.953125, + "autonomous_path_accuracy": 0.953125, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9296875, + "answer_accuracy": 0.9296875, + "answer_nll": 0.2980848252773285, + "atomic_correct_coverage": 0.9947916666666666, + "conditional_accuracy": 0.9293193717277487, + "autonomous_two_calls": 0.9947916666666666, + "autonomous_path_accuracy": 0.9947916666666666, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3434650455927052, + "answer_accuracy": 0.3434650455927052, + "answer_nll": 2.762638807296753, + "atomic_correct_coverage": 0.9878419452887538, + "conditional_accuracy": 0.3476923076923077, + "autonomous_two_calls": 0.9878419452887538, + "autonomous_path_accuracy": 0.9878419452887538, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 7.626631259918213, + "atomic_correct_coverage": 0.9830508474576272, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.9830508474576272, + "autonomous_path_accuracy": 0.9830508474576272, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.89453125, + "answer_accuracy": 0.89453125, + "answer_nll": 0.4147183895111084, + "atomic_correct_coverage": 0.9856770833333334, + "conditional_accuracy": 0.8943196829590488, + "autonomous_two_calls": 0.9856770833333334, + "autonomous_path_accuracy": 0.9856770833333334, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.21170731707317073, + "answer_accuracy": 0.21170731707317073, + "answer_nll": 3.9231295585632324, + "atomic_correct_coverage": 0.9921951219512195, + "conditional_accuracy": 0.21337266470009833, + "autonomous_two_calls": 0.9921951219512195, + "autonomous_path_accuracy": 0.9921951219512195, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 7.89639949798584, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.3736058473587036, + "training_seconds": 1.0862303636968136, + "estimated_training_flops": 4938792960000, + "supervised_tokens": 832000, + "padded_input_tokens": 1024000 + }, + { + "step": 2000, + "lr": 0.000998233549067816, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.005631082225590944 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.010129998438060284, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3790322580645161, + "answer_accuracy": 0.3790322580645161, + "answer_nll": 2.8596737384796143, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3790322580645161, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.046875, + "answer_accuracy": 0.046875, + "answer_nll": 8.076433181762695, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.046875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9973958333333334, + "answer_accuracy": 0.9973958333333334, + "answer_nll": 0.019740823656320572, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9973958333333334, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.40425531914893614, + "answer_accuracy": 0.40425531914893614, + "answer_nll": 2.971933364868164, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.40425531914893614, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 8.884968757629395, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9986979166666666, + "answer_accuracy": 0.9986979166666666, + "answer_nll": 0.024501705542206764, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9986979166666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.24585365853658536, + "answer_accuracy": 0.24585365853658536, + "answer_nll": 4.753271579742432, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.24585365853658536, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 8.97260570526123, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.2039875984191895, + "training_seconds": 2.172371316701174, + "estimated_training_flops": 9877585920000, + "supervised_tokens": 1664000, + "padded_input_tokens": 2048000 + }, + { + "step": 4000, + "lr": 0.0009921451014991594, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0010729137575253844 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.001367239630781114, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3951612903225806, + "answer_accuracy": 0.3951612903225806, + "answer_nll": 2.977288246154785, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3951612903225806, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 9.277663230895996, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.002004921203479171, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.44072948328267475, + "answer_accuracy": 0.44072948328267475, + "answer_nll": 2.8536574840545654, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.44072948328267475, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 9.417088508605957, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0021497237030416727, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.26926829268292685, + "answer_accuracy": 0.26926829268292685, + "answer_nll": 4.917692184448242, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.26926829268292685, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 9.267305374145508, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.188220500946045, + "training_seconds": 4.342005532234907, + "estimated_training_flops": 19755171840000, + "supervised_tokens": 3328000, + "padded_input_tokens": 4096000 + }, + { + "step": 8000, + "lr": 0.0009672142859549292, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0005293867434374988 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0006009666249155998, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.46774193548387094, + "answer_accuracy": 0.46774193548387094, + "answer_nll": 2.3708035945892334, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.46774193548387094, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 9.7254056930542, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0009474900434724987, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.49848024316109424, + "answer_accuracy": 0.49848024316109424, + "answer_nll": 2.717562437057495, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.49848024316109424, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 9.943357467651367, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0010316931875422597, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.26146341463414635, + "answer_accuracy": 0.26146341463414635, + "answer_nll": 5.050755500793457, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.26146341463414635, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 9.763492584228516, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.179661512374878, + "training_seconds": 8.680375874042511, + "estimated_training_flops": 39510343680000, + "supervised_tokens": 6656000, + "padded_input_tokens": 8192000 + }, + { + "step": 16000, + "lr": 0.0008705396215758866, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0002130146895069629 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00022428194642998278, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.5483870967741935, + "answer_accuracy": 0.5483870967741935, + "answer_nll": 2.3414041996002197, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.5483870967741935, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 10.560773849487305, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0003829784691333771, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.5258358662613982, + "answer_accuracy": 0.5258358662613982, + "answer_nll": 2.7117438316345215, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.5258358662613982, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 10.584710121154785, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0004339686129242182, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2848780487804878, + "answer_accuracy": 0.2848780487804878, + "answer_nll": 5.037345886230469, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2848780487804878, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 10.828115463256836, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1780421733856201, + "training_seconds": 17.36648666113615, + "estimated_training_flops": 79020687360000, + "supervised_tokens": 13312000, + "padded_input_tokens": 16384000 + }, + { + "step": 32000, + "lr": 0.0005522158479326845, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 9.306495485361665e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00010852248669834808, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.5725806451612904, + "answer_accuracy": 0.5725806451612904, + "answer_nll": 2.4410760402679443, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.5725806451612904, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 10.742705345153809, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00017112604109570384, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.49848024316109424, + "answer_accuracy": 0.49848024316109424, + "answer_nll": 2.857020854949951, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.49848024316109424, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 11.182353973388672, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0001755887205945328, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2819512195121951, + "answer_accuracy": 0.2819512195121951, + "answer_nll": 5.328834056854248, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2819512195121951, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 10.92087459564209, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1733180284500122, + "training_seconds": 34.73769910633564, + "estimated_training_flops": 158041374720000, + "supervised_tokens": 26624000, + "padded_input_tokens": 32768000 + }, + { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.509421144874068e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.435165813745698e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.5645161290322581, + "answer_accuracy": 0.5645161290322581, + "answer_nll": 2.540562152862549, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.5645161290322581, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 11.148931503295898, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 2.2615213310928084e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.5288753799392097, + "answer_accuracy": 0.5288753799392097, + "answer_nll": 2.8538429737091064, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.5288753799392097, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 10.957475662231445, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 2.397911885054782e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.27902439024390246, + "answer_accuracy": 0.27902439024390246, + "answer_nll": 5.634556770324707, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.27902439024390246, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.03773584905660377, + "answer_accuracy": 0.03773584905660377, + "answer_nll": 11.710715293884277, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03773584905660377, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1726231575012207, + "training_seconds": 69.45137270912528, + "estimated_training_flops": 316082749440000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + } +] diff --git a/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/spec.json b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/spec.json new file mode 100644 index 0000000000000000000000000000000000000000..89d30c0fb6669d404677a1a22e2b4a85af8b8e7c --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/spec.json @@ -0,0 +1,66 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 4, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/status.json b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/status.json new file mode 100644 index 0000000000000000000000000000000000000000..d332dc2b8bde7c33219e9f3a7045f6466b684b92 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/status.json @@ -0,0 +1,4 @@ +{ + "step": 64000, + "budget": 64000 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/train-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/train-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..47bd14b9be420e2f05b06ca6f345cc6997215eec --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/train-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "train", + "gpu": 3, + "returncode": 0, + "seconds": 84.36586852371693 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/train-process.log b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/train-process.log new file mode 100644 index 0000000000000000000000000000000000000000..c291be1047acf3f5107fe4e930766bd51e121489 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/train-process.log @@ -0,0 +1,10 @@ +{"run": "w751011-i752011-d128-l4-r1-s64000", "step": 0, "atomic": 0.0, "familiar": {"2": 0.0, "3": 0.0, "4": 0.0}} +{"run": "w751011-i752011-d128-l4-r1-s64000", "step": 256, "atomic": 0.13671875, "familiar": {"2": 0.12096774193548387, "3": 0.0972644376899696, "4": 0.09170731707317073}} +{"run": "w751011-i752011-d128-l4-r1-s64000", "step": 512, "atomic": 0.78515625, "familiar": {"2": 0.23387096774193547, "3": 0.1641337386018237, "4": 0.14341463414634145}} +{"run": "w751011-i752011-d128-l4-r1-s64000", "step": 1000, "atomic": 0.9921875, "familiar": {"2": 0.3225806451612903, "3": 0.3434650455927052, "4": 0.21170731707317073}} +{"run": "w751011-i752011-d128-l4-r1-s64000", "step": 2000, "atomic": 1.0, "familiar": {"2": 0.3790322580645161, "3": 0.40425531914893614, "4": 0.24585365853658536}} +{"run": "w751011-i752011-d128-l4-r1-s64000", "step": 4000, "atomic": 1.0, "familiar": {"2": 0.3951612903225806, "3": 0.44072948328267475, "4": 0.26926829268292685}} +{"run": "w751011-i752011-d128-l4-r1-s64000", "step": 8000, "atomic": 1.0, "familiar": {"2": 0.46774193548387094, "3": 0.49848024316109424, "4": 0.26146341463414635}} +{"run": "w751011-i752011-d128-l4-r1-s64000", "step": 16000, "atomic": 1.0, "familiar": {"2": 0.5483870967741935, "3": 0.5258358662613982, "4": 0.2848780487804878}} +{"run": "w751011-i752011-d128-l4-r1-s64000", "step": 32000, "atomic": 1.0, "familiar": {"2": 0.5725806451612904, "3": 0.49848024316109424, "4": 0.2819512195121951}} +{"run": "w751011-i752011-d128-l4-r1-s64000", "step": 64000, "atomic": 1.0, "familiar": {"2": 0.5645161290322581, "3": 0.5288753799392097, "4": 0.27902439024390246}} diff --git a/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/world-metadata.json b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/world-metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0d160c9e2f6a49b4d5ec9ef5ade290343346beb5 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l4-r1-s64000/world-metadata.json @@ -0,0 +1,11519 @@ +{ + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "id_mask": [ + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + false, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + true, + true, + false, + false, + false, + true, + true, + true, + false, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + false, + true, + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true + ], + "source_worlds": { + "2": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": true, + "phi_actual": 2.3125, + "mixed_composite_excluded": 392, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 444, + "test_composite": 124, + "test_full_composite": 124, + "ood_composite": 64, + "unused_composite": 0 + }, + "dataset_sha256": "59e810faf8478e02f02ffd785bce119413d62608e48c5d41a4c24032dda4abc2", + "warnings": [ + "Training request capped at eligible pool" + ], + "hops": 2, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 568, + "all_paths_total": 1024, + "training_fraction_of_id_paths": 0.7816901408450704, + "training_fraction_of_nonreserved_id_paths": 1.0, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 29, + 49, + 14, + 32, + 62, + 86, + 66, + 5, + 8, + 83, + 50, + 88, + 116, + 23, + 87, + 80, + 100, + 9, + 117, + 81, + 79, + 54, + 91, + 111, + 19, + 4, + 68, + 2, + 113, + 40, + 65, + 27, + 38, + 0, + 41, + 21, + 1, + 78, + 82, + 101, + 15, + 20, + 59, + 35, + 99, + 53, + 84, + 123, + 114, + 56, + 108, + 72, + 55, + 104, + 92, + 22, + 89, + 43, + 18, + 11, + 74, + 13, + 52, + 60, + 25, + 109, + 48, + 57, + 71, + 115, + 30, + 110, + 61, + 119, + 44, + 95, + 106, + 47, + 121, + 24, + 69, + 118, + 98, + 39, + 34, + 112, + 26, + 102, + 36, + 75, + 33, + 105, + 96, + 51, + 94, + 58, + 90, + 12, + 10, + 97, + 76, + 107, + 93, + 42, + 6, + 17, + 46, + 122, + 64, + 67, + 73, + 85, + 77, + 28, + 7, + 45, + 3, + 120, + 63, + 70, + 37, + 16, + 31, + 103 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 444, + "any_repeated_entity_n": 45, + "any_repeated_entity_fraction": 0.10135135135135136, + "answer_equals_preceding_entity_n": 33, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 185, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 0, + 4, + 2, + 0, + 1, + 0, + 2, + 0, + 3, + 2, + 0, + 1, + 2, + 0, + 0, + 2, + 3, + 3, + 2, + 1, + 3, + 3, + 0, + 3, + 2, + 2, + 0, + 2, + 3, + 1, + 2, + 4, + 3, + 3, + 2, + 0, + 0, + 1, + 3, + 0, + 0, + 4, + 4, + 1, + 0, + 2, + 2, + 0, + 0, + 0, + 1, + 4, + 3, + 0, + 0, + 1, + 0, + 3, + 0, + 0, + 4, + 2, + 2, + 2, + 0, + 2, + 2, + 0, + 2, + 3, + 0, + 0, + 2, + 3, + 3, + 4, + 0, + 3, + 4, + 2, + 3, + 0, + 2, + 2, + 0, + 3, + 1, + 3, + 3, + 3, + 0, + 2, + 3, + 1, + 0, + 3, + 2, + 3, + 3, + 3, + 1, + 2, + 2, + 2, + 0, + 3, + 2, + 4, + 2, + 2, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 3, + 3, + 0, + 3, + 3, + 2, + 3, + 3, + 0, + 1, + 3, + 3, + 1, + 2, + 3, + 1, + 1, + 1, + 4, + 3, + 3, + 0, + 2, + 3, + 2, + 3, + 1, + 3, + 0, + 3, + 2, + 0, + 0, + 2, + 2, + 4, + 1, + 3, + 3, + 3, + 0, + 2, + 2, + 2, + 2, + 2, + 0, + 3, + 0, + 0, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 0, + 2, + 0, + 3, + 2, + 2, + 4, + 2, + 0, + 4, + 2, + 3, + 4, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 4, + 2, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 2, + 2, + 3, + 1, + 2, + 2, + 2, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 2, + 1, + 0, + 1, + 3, + 4, + 2, + 2, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 182, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 0, + 3, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 0, + 5, + 3, + 0, + 1, + 1, + 1, + 3, + 0, + 4, + 4, + 4, + 0, + 5, + 4, + 1, + 2, + 1, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 3, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 5, + 4, + 0, + 1, + 2, + 0, + 0, + 4, + 6, + 5, + 5, + 0, + 2, + 2, + 2, + 1, + 0, + 2, + 3, + 3, + 2, + 2, + 2, + 2, + 2, + 0, + 2, + 2, + 4, + 0, + 4, + 3, + 1, + 1, + 1, + 1, + 2, + 2, + 1, + 0, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 0, + 2, + 3, + 0, + 4, + 0, + 1, + 1, + 2, + 3, + 0, + 3, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 2, + 1, + 3, + 3, + 3, + 2, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 2, + 2, + 2, + 2, + 2, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 3, + 2, + 0, + 3, + 2, + 2, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 2, + 3, + 1, + 5, + 6, + 7, + 6, + 3, + 2, + 0, + 3, + 2, + 3, + 2, + 3, + 0, + 4, + 3, + 3, + 1, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 1, + 2, + 2, + 0, + 5, + 0, + 6, + 0, + 0, + 4, + 4, + 3, + 1, + 3, + 2, + 2, + 0, + 2, + 3, + 2, + 4, + 0, + 3, + 3, + 2, + 0, + 2, + 3, + 4, + 4, + 4, + 3 + ], + "id_count_min": 0, + "id_count_max": 7 + } + ] + }, + "test_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + }, + "test_full_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 3, + 0, + 4, + 0, + 4, + 3, + 2, + 3, + 0, + 3, + 4, + 0, + 8, + 5, + 4, + 4, + 0, + 5, + 0, + 5, + 3, + 0, + 3, + 4, + 0, + 0, + 7, + 6, + 3, + 3, + 2, + 4, + 6, + 0, + 7, + 6, + 6, + 0, + 7, + 7, + 2, + 4, + 5, + 4, + 4, + 4, + 0, + 0, + 2, + 4, + 0, + 0, + 8, + 9, + 6, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 6, + 5, + 0, + 0, + 4, + 0, + 4, + 0, + 0, + 5, + 4, + 4, + 3, + 0, + 7, + 6, + 0, + 3, + 5, + 0, + 0, + 6, + 9, + 8, + 9, + 0, + 5, + 6, + 4, + 4, + 0, + 4, + 5, + 3, + 5, + 3, + 5, + 5, + 5, + 0, + 4, + 5, + 5, + 0, + 7, + 5, + 4, + 4, + 4, + 2, + 4, + 4, + 3, + 0, + 4, + 3, + 5, + 2, + 4, + 4, + 0, + 0, + 4, + 3, + 0, + 7, + 0, + 3, + 3, + 5, + 6, + 0, + 6, + 4, + 3, + 4, + 4, + 0, + 1, + 3, + 3, + 1, + 4, + 5, + 3, + 2, + 4, + 7, + 6, + 5, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 7, + 5, + 0, + 0, + 4, + 4, + 6, + 3, + 5, + 4, + 5, + 0, + 6, + 5, + 6, + 5, + 5, + 0, + 6, + 0, + 0, + 0, + 6, + 3, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 0, + 4, + 3, + 4, + 0, + 0, + 5, + 5, + 3, + 7, + 10, + 9, + 8, + 3, + 4, + 0, + 6, + 4, + 5, + 6, + 5, + 0, + 8, + 5, + 6, + 5, + 0, + 6, + 4, + 0, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 9, + 0, + 8, + 0, + 0, + 6, + 6, + 6, + 2, + 5, + 4, + 4, + 0, + 2, + 3, + 4, + 6, + 0, + 5, + 5, + 3, + 0, + 3, + 6, + 8, + 6, + 6, + 5 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 444, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 444, + "any_relevant_fact_in_composite_training_n": 444, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 444, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 185, + 182 + ], + "within_split_majority_tail": { + "target_token": 8, + "count": 16, + "fraction": 0.036036036036036036, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.036036036036036036, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08783783783783784, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08783783783783784, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 36, + 67, + 66, + 43 + ], + [ + 47, + 69, + 66, + 56 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.13063063063063063, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.13063063063063063, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 54, + 66, + 66, + 43 + ], + [ + 11, + 66, + 66, + 22 + ] + ] + } + ] + }, + "test_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 15, + 68, + 66, + 34 + ], + [ + 18, + 68, + 66, + 22 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 35, + 66, + 66, + 53 + ], + [ + 55, + 66, + 66, + 60 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 66, + 53 + ], + [ + 5, + 69, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 53 + ], + [ + 25, + 66, + 66, + 16 + ] + ] + } + ] + }, + "ood_composite": { + "n": 64, + "unique_relevant_atomic_facts": 53, + "relevant_atomic_fact_coverage_of_graph": 0.20703125, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 44, + 39 + ], + "within_split_majority_tail": { + "target_token": 58, + "count": 5, + "fraction": 0.078125, + "distinct_targets": 30 + }, + "train_composite_majority_tail_fraction": 0.0, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.25, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 6, + 67, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.328125, + "single_target_group_query_fraction": 0.03125, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.328125, + "multi_target_groups": 14, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 13, + 66, + 66, + 13 + ] + ] + } + ] + }, + "unused_composite": { + "n": 0, + "unique_relevant_atomic_facts": 0, + "relevant_atomic_fact_coverage_of_graph": 0.0, + "all_relevant_facts_in_atomic_training_fraction": null, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": null, + "all_id_queries": 0, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 0, + 0 + ], + "within_split_majority_tail": { + "target_token": null, + "count": 0, + "fraction": null, + "distinct_targets": 0 + }, + "train_composite_majority_tail_fraction": null, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + }, + { + "suffix_relation_count": 2, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "3": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 2331, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 329, + "test_full_composite": 329, + "ood_composite": 59, + "unused_composite": 609 + }, + "dataset_sha256": "874230d99d7b1184953935d1476d34c3d69968bcc196b499299cf4c63dc75d6f", + "warnings": [], + "hops": 3, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 1706, + "all_paths_total": 4096, + "training_fraction_of_id_paths": 0.4501758499413834, + "training_fraction_of_nonreserved_id_paths": 0.5577342047930284, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 177, + 263, + 289, + 328, + 73, + 17, + 112, + 159, + 45, + 110, + 16, + 286, + 225, + 25, + 95, + 24, + 49, + 66, + 230, + 201, + 19, + 7, + 172, + 323, + 321, + 152, + 181, + 58, + 313, + 169, + 218, + 231, + 221, + 121, + 285, + 243, + 150, + 256, + 292, + 141, + 105, + 51, + 34, + 37, + 102, + 266, + 196, + 139, + 106, + 250, + 65, + 28, + 195, + 188, + 113, + 52, + 228, + 173, + 246, + 99, + 125, + 167, + 175, + 244, + 61, + 47, + 178, + 257, + 50, + 2, + 301, + 252, + 55, + 202, + 165, + 41, + 148, + 140, + 309, + 239, + 213, + 238, + 128, + 318, + 97, + 86, + 242, + 311, + 88, + 197, + 248, + 96, + 293, + 273, + 155, + 281, + 90, + 214, + 87, + 278, + 270, + 21, + 237, + 35, + 71, + 44, + 157, + 315, + 156, + 174, + 222, + 4, + 134, + 249, + 32, + 119, + 260, + 130, + 232, + 259, + 192, + 183, + 291, + 185, + 264, + 79, + 75, + 104, + 13, + 296, + 26, + 133, + 101, + 272, + 304, + 205, + 319, + 254, + 11, + 162, + 48, + 93, + 306, + 190, + 290, + 27, + 262, + 168, + 116, + 200, + 109, + 277, + 118, + 29, + 279, + 268, + 314, + 111, + 245, + 288, + 298, + 186, + 81, + 226, + 12, + 324, + 227, + 171, + 18, + 326, + 233, + 179, + 15, + 307, + 170, + 144, + 275, + 43, + 287, + 320, + 103, + 36, + 215, + 302, + 164, + 153, + 120, + 59, + 1, + 94, + 209, + 189, + 180, + 76, + 77, + 123, + 98, + 83, + 108, + 224, + 40, + 67, + 129, + 229, + 54, + 269, + 149, + 265, + 297, + 22, + 92, + 303, + 126, + 282, + 223, + 42, + 191, + 216, + 100, + 135, + 184, + 14, + 72, + 163, + 253, + 131, + 207, + 3, + 255, + 82, + 166, + 312, + 241, + 295, + 251, + 204, + 84, + 57, + 274, + 78, + 299, + 8, + 276, + 10, + 217, + 212, + 176, + 267, + 74, + 107, + 147, + 327, + 91, + 33, + 305, + 151, + 38, + 199, + 325, + 0, + 182, + 122, + 9, + 300, + 235, + 160, + 85, + 317, + 187, + 208, + 56, + 219, + 161, + 70, + 80, + 308, + 31, + 124, + 194, + 316, + 220, + 145, + 154, + 115, + 258, + 271, + 210, + 198, + 310, + 60, + 68, + 234, + 114, + 247, + 62, + 64, + 322, + 283, + 23, + 284, + 203, + 261, + 136, + 294, + 89, + 30, + 211, + 63, + 6, + 20, + 158, + 146, + 53, + 5, + 143, + 117, + 137, + 132, + 138, + 193, + 127, + 280, + 236, + 69, + 39, + 206, + 142, + 46, + 240 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 117, + "any_repeated_entity_fraction": 0.15234375, + "answer_equals_preceding_entity_n": 63, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 189, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 5, + 0, + 7, + 2, + 2, + 6, + 0, + 5, + 3, + 0, + 7, + 5, + 5, + 2, + 0, + 5, + 0, + 6, + 6, + 0, + 7, + 2, + 0, + 0, + 2, + 4, + 3, + 5, + 3, + 4, + 4, + 0, + 6, + 5, + 3, + 0, + 3, + 7, + 0, + 4, + 7, + 4, + 3, + 4, + 0, + 4, + 4, + 6, + 0, + 0, + 5, + 5, + 5, + 0, + 3, + 2, + 0, + 0, + 0, + 4, + 6, + 5, + 0, + 0, + 3, + 0, + 3, + 0, + 0, + 9, + 2, + 6, + 3, + 0, + 2, + 1, + 0, + 3, + 4, + 0, + 0, + 4, + 3, + 4, + 7, + 0, + 4, + 6, + 3, + 7, + 0, + 1, + 3, + 7, + 3, + 3, + 2, + 5, + 7, + 0, + 2, + 8, + 4, + 0, + 6, + 5, + 7, + 7, + 5, + 3, + 3, + 4, + 0, + 0, + 4, + 8, + 4, + 6, + 5, + 3, + 0, + 0, + 5, + 3, + 0, + 2, + 0, + 5, + 5, + 3, + 4, + 0, + 3, + 4, + 1, + 3, + 7, + 0, + 1, + 3, + 4, + 3, + 4, + 5, + 2, + 2, + 4, + 6, + 5, + 3, + 0, + 3, + 4, + 4, + 2, + 2, + 3, + 0, + 4, + 3, + 0, + 0, + 2, + 3, + 5, + 3, + 3, + 4, + 5, + 0, + 4, + 7, + 1, + 4, + 1, + 0, + 2, + 0, + 0, + 0, + 3, + 3, + 2, + 4, + 0, + 5, + 4, + 5, + 0, + 0, + 1, + 1, + 4, + 0, + 0, + 2, + 5, + 3, + 1, + 4, + 1, + 4, + 3, + 0, + 0, + 6, + 3, + 5, + 7, + 3, + 0, + 5, + 2, + 6, + 5, + 0, + 5, + 7, + 0, + 3, + 6, + 0, + 6, + 6, + 5, + 0, + 3, + 0, + 6, + 0, + 0, + 4, + 2, + 4, + 4, + 5, + 2, + 4, + 0, + 1, + 4, + 3, + 4, + 0, + 6, + 2, + 6, + 0, + 4, + 5, + 5, + 5, + 7, + 4 + ], + "id_count_min": 0, + "id_count_max": 9 + }, + { + "hop": 2, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 4, + 0, + 1, + 2, + 0, + 1, + 0, + 6, + 4, + 0, + 8, + 10, + 4, + 3, + 0, + 8, + 0, + 8, + 3, + 0, + 1, + 3, + 0, + 0, + 7, + 11, + 2, + 1, + 1, + 1, + 10, + 0, + 8, + 6, + 5, + 0, + 7, + 7, + 0, + 3, + 3, + 2, + 3, + 2, + 0, + 2, + 1, + 2, + 0, + 0, + 12, + 11, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 4, + 0, + 0, + 4, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 2, + 0, + 6, + 4, + 0, + 11, + 6, + 0, + 0, + 4, + 5, + 7, + 13, + 0, + 1, + 4, + 3, + 3, + 0, + 7, + 6, + 8, + 2, + 3, + 2, + 4, + 2, + 0, + 4, + 1, + 5, + 0, + 6, + 9, + 2, + 1, + 1, + 2, + 7, + 3, + 1, + 0, + 2, + 2, + 1, + 1, + 5, + 1, + 0, + 0, + 5, + 5, + 0, + 3, + 0, + 1, + 4, + 1, + 3, + 0, + 5, + 4, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 0, + 0, + 3, + 7, + 5, + 6, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 2, + 2, + 2, + 1, + 0, + 3, + 0, + 8, + 9, + 6, + 8, + 3, + 0, + 2, + 0, + 0, + 0, + 4, + 3, + 1, + 3, + 0, + 3, + 5, + 6, + 0, + 0, + 3, + 2, + 4, + 0, + 0, + 6, + 6, + 3, + 10, + 14, + 7, + 15, + 3, + 2, + 0, + 1, + 3, + 4, + 4, + 4, + 0, + 11, + 7, + 8, + 5, + 0, + 5, + 5, + 0, + 1, + 4, + 0, + 2, + 2, + 4, + 0, + 10, + 0, + 9, + 0, + 0, + 9, + 8, + 5, + 3, + 0, + 3, + 4, + 0, + 5, + 1, + 3, + 3, + 0, + 7, + 2, + 5, + 0, + 1, + 5, + 9, + 6, + 6, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 175, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 6, + 5, + 2, + 1, + 0, + 2, + 2, + 0, + 7, + 7, + 5, + 7, + 0, + 7, + 0, + 9, + 3, + 0, + 2, + 2, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 1, + 5, + 0, + 5, + 5, + 9, + 0, + 8, + 7, + 3, + 3, + 3, + 2, + 2, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 9, + 5, + 8, + 0, + 4, + 2, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 4, + 3, + 2, + 0, + 6, + 3, + 0, + 5, + 3, + 0, + 0, + 4, + 5, + 10, + 6, + 0, + 3, + 4, + 5, + 7, + 0, + 5, + 9, + 5, + 1, + 2, + 2, + 0, + 1, + 0, + 1, + 4, + 10, + 0, + 8, + 7, + 1, + 2, + 2, + 2, + 2, + 4, + 4, + 0, + 4, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 3, + 1, + 0, + 2, + 0, + 7, + 7, + 8, + 9, + 0, + 6, + 4, + 1, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 3, + 4, + 3, + 6, + 1, + 4, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 16, + 9, + 0, + 0, + 3, + 3, + 4, + 2, + 4, + 3, + 3, + 0, + 10, + 8, + 7, + 8, + 4, + 0, + 4, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 0, + 4, + 5, + 5, + 0, + 0, + 3, + 5, + 3, + 0, + 0, + 5, + 5, + 3, + 14, + 5, + 8, + 6, + 6, + 5, + 0, + 4, + 5, + 2, + 1, + 5, + 0, + 6, + 12, + 7, + 0, + 0, + 1, + 1, + 0, + 2, + 6, + 0, + 2, + 3, + 2, + 0, + 9, + 0, + 5, + 0, + 0, + 5, + 7, + 2, + 6, + 6, + 8, + 8, + 0, + 0, + 1, + 2, + 6, + 0, + 3, + 8, + 1, + 0, + 4, + 4, + 11, + 7, + 8, + 7 + ], + "id_count_min": 0, + "id_count_max": 16 + } + ] + }, + "test_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + }, + "test_full_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 192, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 6, + 0, + 12, + 0, + 14, + 9, + 4, + 8, + 0, + 13, + 9, + 0, + 22, + 22, + 14, + 12, + 0, + 20, + 0, + 23, + 12, + 0, + 10, + 7, + 0, + 0, + 16, + 22, + 5, + 6, + 6, + 6, + 19, + 0, + 19, + 16, + 17, + 0, + 18, + 21, + 3, + 10, + 13, + 8, + 8, + 7, + 0, + 8, + 6, + 8, + 0, + 0, + 26, + 21, + 18, + 0, + 8, + 4, + 0, + 0, + 0, + 8, + 10, + 11, + 0, + 0, + 9, + 0, + 5, + 0, + 0, + 12, + 6, + 11, + 7, + 0, + 14, + 8, + 0, + 19, + 13, + 0, + 0, + 12, + 13, + 21, + 26, + 0, + 8, + 14, + 11, + 17, + 0, + 13, + 18, + 20, + 6, + 8, + 6, + 9, + 10, + 0, + 7, + 13, + 19, + 0, + 20, + 21, + 10, + 10, + 8, + 7, + 12, + 11, + 5, + 0, + 10, + 11, + 7, + 8, + 12, + 4, + 0, + 0, + 13, + 9, + 0, + 7, + 0, + 13, + 16, + 12, + 16, + 0, + 14, + 12, + 3, + 8, + 9, + 0, + 1, + 3, + 4, + 3, + 14, + 13, + 5, + 6, + 10, + 19, + 11, + 13, + 0, + 4, + 6, + 5, + 2, + 2, + 3, + 0, + 27, + 19, + 0, + 0, + 7, + 8, + 11, + 7, + 8, + 7, + 11, + 0, + 22, + 24, + 14, + 20, + 8, + 0, + 8, + 0, + 0, + 0, + 9, + 7, + 5, + 9, + 0, + 12, + 14, + 16, + 0, + 0, + 7, + 8, + 11, + 0, + 0, + 13, + 16, + 9, + 25, + 23, + 16, + 25, + 12, + 7, + 0, + 11, + 11, + 11, + 12, + 12, + 0, + 22, + 21, + 21, + 10, + 0, + 11, + 13, + 0, + 6, + 16, + 0, + 10, + 11, + 11, + 0, + 22, + 0, + 20, + 0, + 0, + 18, + 17, + 11, + 13, + 11, + 13, + 16, + 0, + 6, + 6, + 8, + 13, + 0, + 16, + 12, + 12, + 0, + 9, + 14, + 25, + 18, + 21, + 17 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.75, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.0234375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.026041666666666668, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 189, + 177, + 175 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 43, + "fraction": 0.055989583333333336, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.055989583333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10807291666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10807291666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.1640625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.1640625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.23177083333333334, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23177083333333334, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + } + ] + }, + "test_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 54, + 69, + 68, + 66, + 8 + ], + [ + 65, + 68, + 67, + 66, + 25 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 11, + 67, + 66, + 66, + 45 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 69, + 66, + 42 + ], + [ + 4, + 69, + 67, + 66, + 59 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 67, + 66, + 66, + 45 + ], + [ + 12, + 69, + 66, + 66, + 16 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "ood_composite": { + "n": 59, + "unique_relevant_atomic_facts": 51, + "relevant_atomic_fact_coverage_of_graph": 0.19921875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 59, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 41, + 30, + 31 + ], + "within_split_majority_tail": { + "target_token": 60, + "count": 6, + "fraction": 0.1016949152542373, + "distinct_targets": 25 + }, + "train_composite_majority_tail_fraction": 0.03389830508474576, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.23728813559322035, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23728813559322035, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 8, + 67, + 69, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.5423728813559322, + "single_target_group_query_fraction": 0.1016949152542373, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.5423728813559322, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 39, + "empirical_modal_target_fraction": 0.7288135593220338, + "single_target_group_query_fraction": 0.4745762711864407, + "singleton_group_query_fraction": 0.4067796610169492, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 0.5932203389830508, + "multi_query_empirical_modal_target_fraction": 0.5428571428571428, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 13, + 66, + 66, + 66, + 13 + ], + [ + 18, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "unused_composite": { + "n": 609, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 609, + "any_relevant_fact_in_composite_training_n": 609, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 609, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 186, + 172, + 174 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 26, + "fraction": 0.042692939244663386, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03940886699507389, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07717569786535304, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07717569786535304, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 69, + 67, + 66, + 52 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14614121510673234, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14614121510673234, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 67, + 66, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.22660098522167488, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.22660098522167488, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 66, + 10 + ], + [ + 6, + 66, + 66, + 66, + 60 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "4": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 11180, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 512, + "test_full_composite": 1025, + "ood_composite": 53, + "unused_composite": 3358 + }, + "dataset_sha256": "11ec0124d665d8362ddc331d5c39bc251f7cada4bc5263b5524390fbb9319e85", + "warnings": [], + "hops": 4, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 5151, + "all_paths_total": 16384, + "training_fraction_of_id_paths": 0.14909726266744322, + "training_fraction_of_nonreserved_id_paths": 0.1861366941347552, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 560, + 766, + 474, + 184, + 609, + 39, + 576, + 63, + 547, + 821, + 853, + 222, + 688, + 718, + 268, + 448, + 856, + 266, + 593, + 433, + 505, + 736, + 138, + 300, + 982, + 250, + 165, + 817, + 112, + 984, + 545, + 654, + 773, + 700, + 312, + 651, + 154, + 297, + 224, + 639, + 16, + 411, + 440, + 225, + 825, + 972, + 709, + 355, + 903, + 846, + 10, + 353, + 449, + 498, + 782, + 803, + 106, + 85, + 810, + 528, + 58, + 194, + 514, + 488, + 289, + 789, + 424, + 889, + 1014, + 877, + 417, + 4, + 691, + 597, + 81, + 412, + 401, + 635, + 331, + 199, + 115, + 341, + 743, + 447, + 288, + 965, + 950, + 21, + 507, + 399, + 519, + 414, + 953, + 403, + 834, + 619, + 486, + 379, + 347, + 969, + 974, + 952, + 568, + 30, + 337, + 882, + 722, + 955, + 506, + 831, + 359, + 418, + 454, + 105, + 516, + 157, + 109, + 940, + 228, + 95, + 145, + 642, + 543, + 787, + 124, + 243, + 996, + 1007, + 464, + 571, + 721, + 921, + 745, + 340, + 710, + 634, + 253, + 947, + 838, + 986, + 520, + 442, + 841, + 429, + 948, + 126, + 605, + 744, + 922, + 181, + 1004, + 958, + 544, + 192, + 1016, + 75, + 430, + 247, + 238, + 649, + 800, + 600, + 103, + 76, + 352, + 827, + 296, + 606, + 369, + 441, + 842, + 848, + 357, + 406, + 670, + 416, + 293, + 677, + 973, + 910, + 264, + 434, + 196, + 113, + 149, + 515, + 939, + 808, + 131, + 871, + 720, + 478, + 586, + 936, + 906, + 432, + 724, + 822, + 160, + 933, + 62, + 561, + 633, + 824, + 407, + 226, + 33, + 248, + 680, + 804, + 740, + 208, + 167, + 214, + 476, + 233, + 302, + 292, + 220, + 6, + 750, + 189, + 503, + 90, + 91, + 914, + 937, + 93, + 187, + 366, + 951, + 373, + 18, + 695, + 203, + 310, + 625, + 398, + 339, + 241, + 556, + 570, + 812, + 944, + 14, + 562, + 327, + 667, + 303, + 100, + 173, + 623, + 860, + 781, + 283, + 924, + 1000, + 180, + 899, + 767, + 523, + 125, + 316, + 564, + 1, + 536, + 726, + 786, + 930, + 168, + 546, + 360, + 957, + 741, + 935, + 971, + 332, + 481, + 703, + 136, + 445, + 162, + 590, + 111, + 38, + 326, + 190, + 342, + 72, + 541, + 487, + 524, + 278, + 764, + 174, + 646, + 757, + 946, + 270, + 102, + 761, + 141, + 799, + 28, + 919, + 601, + 86, + 183, + 47, + 675, + 885, + 956, + 836, + 218, + 335, + 307, + 317, + 37, + 596, + 120, + 648, + 1003, + 702, + 291, + 96, + 839, + 943, + 807, + 9, + 32, + 828, + 732, + 542, + 36, + 908, + 855, + 279, + 538, + 768, + 754, + 587, + 987, + 142, + 598, + 287, + 678, + 880, + 589, + 71, + 370, + 469, + 473, + 553, + 143, + 427, + 404, + 391, + 286, + 869, + 928, + 621, + 462, + 338, + 133, + 52, + 525, + 857, + 334, + 477, + 41, + 423, + 615, + 459, + 784, + 508, + 826, + 815, + 567, + 79, + 656, + 261, + 329, + 219, + 620, + 415, + 636, + 832, + 756, + 27, + 425, + 663, + 309, + 734, + 867, + 497, + 169, + 659, + 932, + 452, + 193, + 475, + 118, + 495, + 176, + 161, + 275, + 44, + 992, + 466, + 1001, + 989, + 428, + 212, + 668, + 8, + 792, + 381, + 696, + 467, + 911, + 172, + 22, + 153, + 660, + 13, + 613, + 849, + 319, + 74, + 299, + 758, + 276, + 833, + 387, + 19, + 993, + 376, + 368, + 594, + 708, + 684, + 727, + 130, + 693, + 237, + 402, + 595, + 728, + 107, + 114, + 540, + 256, + 345, + 83, + 156, + 669, + 210, + 731, + 150, + 627, + 419, + 1024, + 51, + 491, + 672, + 874, + 762, + 797, + 844, + 585, + 938, + 980, + 901, + 273, + 470, + 554, + 121, + 671, + 60, + 915, + 351, + 909, + 61, + 321, + 479, + 284, + 492, + 674, + 765, + 178, + 875, + 348, + 661, + 234, + 249, + 723, + 1020, + 259, + 629, + 236, + 117, + 305, + 673, + 582, + 422, + 611, + 861, + 483, + 413, + 377, + 97, + 999 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 194, + "any_repeated_entity_fraction": 0.2526041666666667, + "answer_equals_preceding_entity_n": 84, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 184, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 3, + 0, + 6, + 3, + 0, + 3, + 0, + 3, + 4, + 0, + 7, + 10, + 0, + 3, + 0, + 6, + 0, + 5, + 3, + 0, + 6, + 4, + 0, + 0, + 4, + 7, + 2, + 4, + 3, + 2, + 5, + 0, + 4, + 6, + 1, + 0, + 7, + 6, + 3, + 3, + 6, + 6, + 6, + 4, + 0, + 1, + 3, + 3, + 0, + 0, + 5, + 6, + 4, + 0, + 1, + 1, + 0, + 0, + 0, + 4, + 6, + 7, + 0, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 1, + 3, + 4, + 0, + 3, + 1, + 0, + 4, + 3, + 0, + 0, + 0, + 6, + 6, + 10, + 0, + 5, + 6, + 5, + 5, + 0, + 4, + 5, + 5, + 5, + 1, + 5, + 4, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 3, + 3, + 4, + 4, + 4, + 3, + 6, + 1, + 0, + 4, + 7, + 5, + 6, + 2, + 4, + 0, + 0, + 5, + 1, + 0, + 3, + 0, + 4, + 6, + 3, + 1, + 0, + 4, + 5, + 1, + 2, + 7, + 0, + 0, + 3, + 6, + 1, + 3, + 4, + 0, + 0, + 4, + 2, + 4, + 3, + 0, + 2, + 6, + 5, + 4, + 4, + 7, + 0, + 1, + 1, + 0, + 0, + 2, + 2, + 4, + 2, + 4, + 4, + 4, + 0, + 3, + 8, + 1, + 3, + 7, + 0, + 3, + 0, + 0, + 0, + 5, + 5, + 3, + 5, + 0, + 6, + 9, + 11, + 0, + 0, + 2, + 1, + 7, + 0, + 0, + 2, + 2, + 6, + 6, + 3, + 5, + 7, + 3, + 3, + 0, + 5, + 5, + 5, + 7, + 3, + 0, + 2, + 3, + 5, + 8, + 0, + 8, + 7, + 0, + 3, + 7, + 0, + 4, + 3, + 6, + 0, + 4, + 0, + 3, + 0, + 0, + 3, + 7, + 3, + 8, + 3, + 4, + 1, + 0, + 3, + 2, + 2, + 3, + 0, + 4, + 2, + 4, + 0, + 4, + 8, + 8, + 8, + 3, + 5 + ], + "id_count_min": 0, + "id_count_max": 11 + }, + { + "hop": 2, + "id_edges_covered": 173, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 4, + 0, + 9, + 7, + 6, + 2, + 0, + 5, + 0, + 7, + 3, + 0, + 4, + 3, + 0, + 0, + 6, + 7, + 1, + 1, + 0, + 2, + 9, + 0, + 4, + 6, + 4, + 0, + 5, + 7, + 1, + 3, + 3, + 3, + 2, + 3, + 0, + 1, + 2, + 2, + 0, + 0, + 14, + 9, + 6, + 0, + 1, + 0, + 0, + 0, + 0, + 5, + 4, + 2, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 2, + 0, + 5, + 3, + 0, + 13, + 5, + 0, + 0, + 4, + 10, + 9, + 15, + 0, + 3, + 4, + 2, + 2, + 0, + 8, + 5, + 3, + 1, + 2, + 4, + 5, + 3, + 0, + 1, + 5, + 8, + 0, + 8, + 4, + 0, + 1, + 0, + 1, + 6, + 3, + 2, + 0, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 0, + 7, + 5, + 0, + 3, + 0, + 3, + 5, + 3, + 4, + 0, + 2, + 4, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 1, + 0, + 3, + 8, + 3, + 5, + 0, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 8, + 6, + 0, + 0, + 3, + 1, + 4, + 0, + 1, + 1, + 4, + 0, + 9, + 14, + 0, + 10, + 3, + 0, + 3, + 0, + 0, + 0, + 9, + 2, + 1, + 6, + 0, + 2, + 2, + 5, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 4, + 5, + 6, + 12, + 8, + 9, + 9, + 2, + 6, + 0, + 7, + 1, + 5, + 5, + 3, + 0, + 4, + 11, + 12, + 1, + 0, + 2, + 5, + 0, + 1, + 0, + 0, + 5, + 2, + 8, + 0, + 11, + 0, + 5, + 0, + 0, + 8, + 8, + 7, + 6, + 5, + 1, + 2, + 0, + 4, + 3, + 4, + 7, + 0, + 7, + 7, + 0, + 0, + 3, + 3, + 7, + 10, + 9, + 12 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 172, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 4, + 0, + 5, + 2, + 0, + 1, + 0, + 3, + 2, + 0, + 6, + 4, + 3, + 2, + 0, + 9, + 0, + 12, + 6, + 0, + 6, + 3, + 0, + 0, + 7, + 15, + 1, + 0, + 2, + 1, + 7, + 0, + 5, + 5, + 13, + 0, + 8, + 13, + 2, + 3, + 2, + 1, + 1, + 2, + 0, + 1, + 2, + 1, + 0, + 0, + 5, + 7, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 3, + 0, + 8, + 2, + 0, + 10, + 3, + 0, + 0, + 2, + 10, + 11, + 3, + 0, + 5, + 8, + 4, + 4, + 0, + 5, + 4, + 5, + 3, + 0, + 1, + 2, + 0, + 0, + 1, + 4, + 4, + 0, + 9, + 8, + 2, + 1, + 3, + 2, + 2, + 1, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 7, + 5, + 5, + 0, + 5, + 11, + 1, + 4, + 2, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 3, + 2, + 4, + 4, + 4, + 3, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 11, + 12, + 0, + 0, + 4, + 5, + 6, + 0, + 4, + 5, + 5, + 0, + 7, + 12, + 6, + 10, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 5, + 5, + 4, + 0, + 2, + 1, + 5, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 5, + 5, + 5, + 12, + 8, + 7, + 4, + 4, + 7, + 0, + 6, + 4, + 6, + 6, + 3, + 0, + 10, + 6, + 13, + 4, + 0, + 3, + 2, + 0, + 4, + 3, + 0, + 1, + 2, + 2, + 0, + 12, + 0, + 3, + 0, + 0, + 5, + 3, + 2, + 10, + 4, + 6, + 5, + 0, + 1, + 0, + 1, + 6, + 0, + 9, + 4, + 5, + 0, + 2, + 3, + 8, + 7, + 5, + 9 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 4, + "id_edges_covered": 169, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 0, + 2, + 0, + 5, + 9, + 2, + 5, + 0, + 6, + 0, + 4, + 3, + 0, + 0, + 2, + 0, + 0, + 10, + 5, + 0, + 3, + 2, + 0, + 5, + 0, + 6, + 9, + 15, + 0, + 12, + 9, + 1, + 1, + 0, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 6, + 6, + 5, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 1, + 0, + 5, + 6, + 0, + 8, + 8, + 0, + 5, + 6, + 0, + 0, + 6, + 14, + 8, + 5, + 0, + 6, + 2, + 5, + 7, + 0, + 7, + 3, + 8, + 1, + 4, + 1, + 1, + 3, + 0, + 5, + 2, + 6, + 0, + 9, + 8, + 1, + 1, + 1, + 1, + 1, + 4, + 4, + 0, + 1, + 0, + 3, + 1, + 2, + 2, + 0, + 0, + 1, + 4, + 0, + 2, + 0, + 5, + 2, + 4, + 5, + 0, + 6, + 8, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 1, + 2, + 5, + 2, + 6, + 6, + 0, + 0, + 2, + 2, + 0, + 0, + 0, + 0, + 14, + 11, + 0, + 0, + 5, + 5, + 5, + 3, + 2, + 4, + 2, + 0, + 7, + 9, + 7, + 6, + 3, + 0, + 5, + 0, + 0, + 0, + 2, + 5, + 5, + 1, + 0, + 4, + 2, + 1, + 0, + 0, + 6, + 5, + 8, + 0, + 0, + 10, + 2, + 4, + 9, + 10, + 14, + 11, + 7, + 2, + 0, + 5, + 2, + 2, + 2, + 8, + 0, + 8, + 9, + 8, + 2, + 0, + 4, + 4, + 0, + 2, + 2, + 0, + 1, + 1, + 0, + 0, + 9, + 0, + 3, + 0, + 0, + 6, + 7, + 2, + 11, + 5, + 6, + 6, + 0, + 2, + 3, + 0, + 1, + 0, + 6, + 6, + 6, + 0, + 4, + 2, + 5, + 4, + 5, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + } + ] + }, + "test_composite": { + "n": 512, + "any_repeated_entity_n": 116, + "any_repeated_entity_fraction": 0.2265625, + "answer_equals_preceding_entity_n": 54, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 174, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 1, + 2, + 1, + 6, + 0, + 3, + 4, + 0, + 3, + 2, + 5, + 0, + 0, + 4, + 0, + 1, + 2, + 0, + 4, + 2, + 0, + 0, + 3, + 3, + 3, + 0, + 3, + 5, + 4, + 0, + 5, + 2, + 2, + 0, + 2, + 3, + 2, + 3, + 4, + 6, + 3, + 2, + 0, + 5, + 1, + 1, + 0, + 0, + 2, + 5, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 4, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 4, + 1, + 3, + 1, + 0, + 2, + 2, + 0, + 3, + 2, + 0, + 0, + 2, + 6, + 4, + 3, + 0, + 2, + 5, + 2, + 3, + 0, + 4, + 7, + 4, + 1, + 3, + 2, + 3, + 3, + 0, + 1, + 2, + 2, + 0, + 5, + 5, + 5, + 5, + 6, + 0, + 5, + 3, + 1, + 0, + 3, + 5, + 6, + 2, + 3, + 1, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 5, + 4, + 3, + 0, + 5, + 5, + 3, + 5, + 1, + 0, + 0, + 1, + 5, + 1, + 2, + 3, + 2, + 0, + 1, + 5, + 3, + 3, + 0, + 3, + 2, + 1, + 4, + 2, + 4, + 0, + 10, + 3, + 0, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 0, + 0, + 3, + 3, + 4, + 2, + 0, + 1, + 0, + 0, + 0, + 4, + 1, + 0, + 1, + 0, + 4, + 7, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 3, + 3, + 2, + 2, + 3, + 1, + 2, + 0, + 3, + 0, + 7, + 4, + 2, + 3, + 1, + 0, + 4, + 2, + 2, + 3, + 0, + 4, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 3, + 4, + 5, + 4, + 0, + 5, + 0, + 2, + 1, + 1, + 3, + 0, + 4, + 3, + 7, + 0, + 0, + 2, + 1, + 2, + 0, + 2 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 2, + "id_edges_covered": 155, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 2, + 2, + 0, + 4, + 7, + 2, + 2, + 0, + 7, + 0, + 7, + 2, + 0, + 2, + 1, + 0, + 0, + 6, + 3, + 0, + 2, + 0, + 1, + 5, + 0, + 5, + 2, + 3, + 0, + 7, + 13, + 2, + 2, + 2, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 9, + 9, + 3, + 0, + 1, + 2, + 0, + 0, + 0, + 3, + 2, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 3, + 0, + 0, + 5, + 1, + 0, + 6, + 1, + 0, + 0, + 0, + 5, + 7, + 6, + 0, + 0, + 2, + 4, + 1, + 0, + 2, + 3, + 7, + 2, + 4, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 0, + 2, + 7, + 2, + 1, + 2, + 0, + 3, + 0, + 7, + 0, + 2, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 4, + 2, + 0, + 7, + 0, + 2, + 3, + 0, + 5, + 0, + 3, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 1, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 12, + 2, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 1, + 3, + 0, + 1, + 3, + 2, + 7, + 3, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 2, + 1, + 4, + 0, + 0, + 3, + 7, + 2, + 10, + 12, + 3, + 7, + 2, + 0, + 0, + 4, + 4, + 2, + 3, + 1, + 0, + 5, + 2, + 6, + 2, + 0, + 3, + 1, + 0, + 2, + 2, + 0, + 4, + 6, + 3, + 0, + 6, + 0, + 5, + 0, + 0, + 4, + 6, + 4, + 3, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 2, + 0, + 4, + 4, + 4, + 0, + 2, + 5, + 6, + 9, + 3, + 2 + ], + "id_count_min": 0, + "id_count_max": 13 + }, + { + "hop": 3, + "id_edges_covered": 156, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 2, + 3, + 5, + 0, + 2, + 0, + 0, + 4, + 3, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 0, + 0, + 0, + 7, + 9, + 0, + 2, + 0, + 1, + 4, + 0, + 6, + 3, + 8, + 0, + 6, + 9, + 0, + 1, + 2, + 3, + 3, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 7, + 4, + 3, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 5, + 1, + 0, + 4, + 4, + 0, + 0, + 5, + 4, + 3, + 4, + 0, + 5, + 4, + 2, + 4, + 0, + 4, + 2, + 6, + 1, + 1, + 3, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 7, + 4, + 1, + 0, + 0, + 1, + 3, + 2, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 2, + 0, + 0, + 5, + 1, + 0, + 2, + 0, + 3, + 7, + 3, + 6, + 0, + 4, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 6, + 1, + 2, + 4, + 4, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 5, + 3, + 0, + 0, + 2, + 2, + 3, + 2, + 3, + 1, + 5, + 0, + 4, + 9, + 2, + 6, + 6, + 0, + 4, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 5, + 2, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 2, + 2, + 8, + 3, + 5, + 4, + 3, + 5, + 0, + 2, + 3, + 4, + 3, + 3, + 0, + 9, + 6, + 10, + 1, + 0, + 1, + 2, + 0, + 0, + 1, + 0, + 1, + 1, + 2, + 0, + 6, + 0, + 0, + 0, + 0, + 8, + 6, + 6, + 3, + 2, + 2, + 5, + 0, + 0, + 2, + 0, + 3, + 0, + 5, + 2, + 2, + 0, + 1, + 2, + 5, + 6, + 6, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 4, + "id_edges_covered": 164, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 2, + 0, + 3, + 2, + 6, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 4, + 5, + 2, + 1, + 1, + 1, + 2, + 0, + 5, + 3, + 4, + 0, + 4, + 10, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 2, + 1, + 1, + 0, + 0, + 2, + 4, + 4, + 0, + 0, + 2, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 0, + 0, + 0, + 0, + 0, + 4, + 0, + 2, + 0, + 6, + 1, + 0, + 6, + 2, + 0, + 0, + 7, + 4, + 8, + 9, + 0, + 4, + 6, + 1, + 3, + 0, + 4, + 3, + 4, + 3, + 1, + 0, + 1, + 5, + 0, + 3, + 1, + 5, + 0, + 4, + 7, + 1, + 1, + 0, + 2, + 1, + 3, + 1, + 0, + 1, + 2, + 2, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 2, + 5, + 4, + 7, + 0, + 3, + 3, + 2, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 4, + 2, + 2, + 1, + 3, + 5, + 2, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 8, + 0, + 0, + 0, + 2, + 4, + 3, + 2, + 2, + 4, + 0, + 5, + 1, + 9, + 9, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 2, + 0, + 0, + 2, + 3, + 6, + 9, + 4, + 7, + 2, + 6, + 4, + 0, + 5, + 1, + 2, + 1, + 0, + 0, + 7, + 5, + 5, + 0, + 0, + 0, + 0, + 0, + 5, + 1, + 0, + 4, + 3, + 1, + 0, + 2, + 0, + 3, + 0, + 0, + 3, + 2, + 1, + 5, + 4, + 6, + 4, + 0, + 0, + 0, + 2, + 5, + 0, + 3, + 4, + 3, + 0, + 2, + 3, + 6, + 3, + 5, + 1 + ], + "id_count_min": 0, + "id_count_max": 10 + } + ] + }, + "test_full_composite": { + "n": 1025, + "any_repeated_entity_n": 243, + "any_repeated_entity_fraction": 0.2370731707317073, + "answer_equals_preceding_entity_n": 116, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 187, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 5, + 0, + 5, + 0, + 2, + 4, + 2, + 12, + 0, + 6, + 5, + 0, + 8, + 8, + 8, + 3, + 0, + 8, + 0, + 2, + 4, + 0, + 9, + 3, + 0, + 0, + 5, + 5, + 4, + 0, + 5, + 7, + 6, + 0, + 11, + 5, + 3, + 0, + 5, + 6, + 4, + 3, + 7, + 11, + 4, + 5, + 0, + 7, + 3, + 4, + 0, + 0, + 7, + 10, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 6, + 6, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 7, + 1, + 9, + 3, + 0, + 4, + 4, + 0, + 5, + 5, + 0, + 0, + 3, + 8, + 6, + 6, + 0, + 3, + 10, + 7, + 5, + 0, + 6, + 10, + 7, + 2, + 8, + 4, + 6, + 6, + 0, + 5, + 9, + 6, + 0, + 6, + 8, + 7, + 6, + 10, + 0, + 10, + 6, + 5, + 0, + 7, + 8, + 6, + 5, + 5, + 2, + 0, + 0, + 5, + 5, + 0, + 4, + 0, + 5, + 11, + 7, + 12, + 0, + 5, + 14, + 4, + 8, + 6, + 0, + 2, + 5, + 6, + 3, + 2, + 4, + 4, + 0, + 2, + 13, + 3, + 7, + 0, + 6, + 3, + 4, + 9, + 5, + 7, + 0, + 13, + 5, + 0, + 0, + 6, + 0, + 7, + 3, + 3, + 7, + 5, + 0, + 3, + 7, + 4, + 6, + 4, + 0, + 4, + 0, + 0, + 0, + 5, + 4, + 1, + 3, + 0, + 6, + 12, + 5, + 0, + 0, + 4, + 1, + 3, + 0, + 0, + 5, + 9, + 3, + 5, + 6, + 2, + 6, + 1, + 4, + 0, + 9, + 6, + 4, + 5, + 2, + 0, + 7, + 6, + 7, + 6, + 0, + 9, + 4, + 0, + 3, + 6, + 0, + 6, + 6, + 2, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 8, + 6, + 7, + 5, + 1, + 6, + 0, + 2, + 2, + 9, + 4, + 0, + 11, + 4, + 14, + 0, + 0, + 3, + 7, + 5, + 2, + 6 + ], + "id_count_min": 0, + "id_count_max": 14 + }, + { + "hop": 2, + "id_edges_covered": 179, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 3, + 0, + 1, + 2, + 1, + 2, + 0, + 5, + 3, + 0, + 10, + 10, + 5, + 4, + 0, + 13, + 0, + 12, + 2, + 0, + 4, + 2, + 0, + 0, + 11, + 9, + 1, + 2, + 0, + 2, + 10, + 0, + 7, + 5, + 9, + 0, + 9, + 21, + 4, + 3, + 3, + 6, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 12, + 19, + 8, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 4, + 3, + 0, + 0, + 5, + 0, + 0, + 0, + 0, + 3, + 0, + 4, + 2, + 0, + 10, + 2, + 0, + 11, + 3, + 0, + 0, + 4, + 10, + 11, + 10, + 0, + 2, + 6, + 7, + 2, + 0, + 7, + 7, + 12, + 2, + 5, + 2, + 2, + 3, + 0, + 3, + 2, + 2, + 0, + 5, + 13, + 5, + 2, + 4, + 2, + 4, + 3, + 10, + 0, + 5, + 0, + 3, + 3, + 3, + 2, + 0, + 0, + 17, + 4, + 0, + 11, + 0, + 4, + 4, + 3, + 6, + 0, + 8, + 7, + 4, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 4, + 2, + 4, + 5, + 1, + 8, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 20, + 5, + 0, + 0, + 2, + 2, + 5, + 1, + 2, + 2, + 6, + 0, + 8, + 7, + 3, + 12, + 7, + 0, + 7, + 0, + 0, + 0, + 3, + 4, + 3, + 4, + 0, + 7, + 4, + 1, + 0, + 0, + 2, + 4, + 6, + 0, + 0, + 3, + 9, + 3, + 15, + 28, + 5, + 20, + 4, + 1, + 0, + 8, + 6, + 3, + 6, + 3, + 0, + 14, + 7, + 10, + 6, + 0, + 9, + 3, + 0, + 3, + 4, + 0, + 9, + 9, + 5, + 0, + 15, + 0, + 11, + 0, + 0, + 8, + 10, + 9, + 7, + 2, + 3, + 5, + 0, + 5, + 4, + 1, + 7, + 0, + 9, + 4, + 6, + 0, + 2, + 6, + 14, + 12, + 13, + 5 + ], + "id_count_min": 0, + "id_count_max": 28 + }, + { + "hop": 3, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 3, + 0, + 8, + 5, + 4, + 11, + 0, + 5, + 2, + 0, + 9, + 12, + 6, + 3, + 0, + 5, + 0, + 8, + 5, + 0, + 1, + 1, + 0, + 0, + 14, + 13, + 0, + 2, + 2, + 2, + 6, + 0, + 10, + 9, + 14, + 0, + 14, + 17, + 1, + 1, + 2, + 3, + 4, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 13, + 9, + 8, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 5, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 2, + 0, + 8, + 4, + 0, + 10, + 7, + 0, + 0, + 7, + 8, + 6, + 11, + 0, + 8, + 9, + 5, + 7, + 0, + 10, + 5, + 12, + 3, + 2, + 4, + 0, + 6, + 0, + 1, + 3, + 4, + 0, + 10, + 10, + 1, + 0, + 3, + 1, + 3, + 6, + 2, + 0, + 0, + 3, + 2, + 2, + 1, + 3, + 0, + 0, + 8, + 2, + 0, + 3, + 0, + 12, + 13, + 6, + 10, + 0, + 7, + 4, + 2, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 2, + 6, + 1, + 4, + 5, + 5, + 5, + 10, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 14, + 4, + 0, + 0, + 3, + 5, + 7, + 5, + 8, + 2, + 8, + 0, + 11, + 15, + 4, + 11, + 8, + 0, + 9, + 0, + 0, + 0, + 5, + 3, + 1, + 2, + 0, + 1, + 7, + 6, + 0, + 0, + 5, + 2, + 7, + 0, + 0, + 5, + 7, + 5, + 14, + 9, + 11, + 10, + 5, + 10, + 0, + 8, + 6, + 7, + 5, + 4, + 0, + 19, + 14, + 16, + 1, + 0, + 1, + 4, + 0, + 2, + 4, + 0, + 3, + 4, + 3, + 0, + 10, + 0, + 3, + 0, + 0, + 10, + 8, + 10, + 4, + 6, + 6, + 12, + 0, + 0, + 2, + 0, + 6, + 0, + 10, + 2, + 6, + 0, + 1, + 6, + 10, + 11, + 9, + 7 + ], + "id_count_min": 0, + "id_count_max": 19 + }, + { + "hop": 4, + "id_edges_covered": 181, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 1, + 0, + 4, + 0, + 1, + 4, + 0, + 1, + 2, + 0, + 8, + 6, + 10, + 8, + 0, + 10, + 0, + 8, + 1, + 0, + 2, + 4, + 0, + 0, + 7, + 8, + 3, + 1, + 1, + 3, + 5, + 0, + 11, + 7, + 10, + 0, + 11, + 17, + 1, + 1, + 1, + 1, + 1, + 4, + 0, + 5, + 1, + 2, + 0, + 0, + 7, + 11, + 6, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 1, + 2, + 0, + 0, + 6, + 0, + 0, + 0, + 0, + 1, + 6, + 2, + 3, + 0, + 14, + 11, + 0, + 11, + 6, + 0, + 0, + 10, + 7, + 12, + 12, + 0, + 5, + 10, + 6, + 4, + 0, + 9, + 8, + 8, + 5, + 1, + 0, + 1, + 6, + 0, + 5, + 4, + 14, + 0, + 12, + 12, + 1, + 1, + 1, + 2, + 5, + 6, + 2, + 0, + 2, + 4, + 3, + 1, + 3, + 1, + 0, + 0, + 3, + 4, + 0, + 4, + 0, + 5, + 12, + 7, + 14, + 0, + 8, + 5, + 5, + 3, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 4, + 5, + 3, + 4, + 10, + 7, + 3, + 0, + 4, + 1, + 3, + 0, + 0, + 0, + 0, + 9, + 15, + 0, + 0, + 3, + 4, + 5, + 5, + 6, + 4, + 7, + 0, + 8, + 8, + 12, + 14, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 7, + 6, + 0, + 4, + 3, + 2, + 0, + 0, + 9, + 6, + 5, + 0, + 0, + 2, + 4, + 8, + 16, + 10, + 15, + 9, + 10, + 8, + 0, + 9, + 3, + 3, + 2, + 1, + 0, + 14, + 9, + 10, + 2, + 0, + 0, + 2, + 0, + 6, + 5, + 0, + 5, + 3, + 2, + 0, + 5, + 0, + 4, + 0, + 0, + 7, + 5, + 9, + 8, + 7, + 9, + 9, + 0, + 1, + 1, + 2, + 10, + 0, + 4, + 6, + 4, + 0, + 4, + 10, + 9, + 10, + 11, + 10 + ], + "id_count_min": 0, + "id_count_max": 17 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 5, + 0, + 10, + 0, + 14, + 7, + 4, + 6, + 0, + 10, + 12, + 0, + 27, + 30, + 11, + 12, + 0, + 26, + 0, + 28, + 15, + 0, + 16, + 12, + 0, + 0, + 27, + 34, + 4, + 8, + 7, + 5, + 26, + 0, + 19, + 26, + 33, + 0, + 32, + 35, + 7, + 10, + 11, + 10, + 13, + 12, + 0, + 5, + 9, + 6, + 0, + 0, + 30, + 28, + 17, + 0, + 5, + 4, + 0, + 0, + 0, + 13, + 12, + 9, + 0, + 0, + 6, + 0, + 10, + 0, + 0, + 7, + 4, + 11, + 15, + 0, + 24, + 14, + 0, + 32, + 17, + 0, + 0, + 12, + 40, + 34, + 33, + 0, + 19, + 20, + 16, + 18, + 0, + 24, + 17, + 21, + 10, + 7, + 11, + 12, + 10, + 0, + 7, + 13, + 20, + 0, + 30, + 23, + 6, + 7, + 8, + 8, + 12, + 14, + 9, + 0, + 7, + 9, + 10, + 9, + 5, + 11, + 0, + 0, + 15, + 12, + 0, + 10, + 0, + 15, + 20, + 15, + 15, + 0, + 17, + 28, + 2, + 8, + 12, + 0, + 0, + 3, + 6, + 1, + 14, + 14, + 5, + 4, + 16, + 16, + 17, + 17, + 0, + 3, + 10, + 9, + 4, + 4, + 7, + 0, + 34, + 30, + 0, + 0, + 14, + 13, + 19, + 5, + 11, + 14, + 15, + 0, + 26, + 43, + 14, + 29, + 17, + 0, + 12, + 0, + 0, + 0, + 17, + 17, + 14, + 16, + 0, + 14, + 14, + 22, + 0, + 0, + 11, + 8, + 22, + 0, + 0, + 21, + 14, + 21, + 39, + 29, + 35, + 31, + 16, + 18, + 0, + 23, + 12, + 18, + 20, + 17, + 0, + 24, + 29, + 38, + 15, + 0, + 17, + 18, + 0, + 10, + 12, + 0, + 11, + 8, + 16, + 0, + 36, + 0, + 14, + 0, + 0, + 22, + 25, + 14, + 35, + 17, + 17, + 14, + 0, + 10, + 8, + 7, + 17, + 0, + 26, + 19, + 15, + 0, + 13, + 16, + 28, + 29, + 22, + 32 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 184, + 173, + 172, + 169 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 37, + "fraction": 0.048177083333333336, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.048177083333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10286458333333333, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10286458333333333, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 7, + 67, + 67, + 69, + 66, + 59 + ], + [ + 46, + 68, + 66, + 69, + 66, + 44 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.17447916666666666, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.17447916666666666, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 56, + 67, + 69, + 66, + 66, + 43 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.2643229166666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.2643229166666667, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 31, + 68, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 246, + "empirical_modal_target_fraction": 0.421875, + "single_target_group_query_fraction": 0.06380208333333333, + "singleton_group_query_fraction": 0.045572916666666664, + "multi_query_groups": 211, + "multi_query_coverage_fraction": 0.9544270833333334, + "multi_query_empirical_modal_target_fraction": 0.3942701227830832, + "multi_target_groups": 204, + "same_suffix_different_target_example": [ + [ + 28, + 66, + 66, + 66, + 66, + 60 + ], + [ + 39, + 66, + 66, + 66, + 66, + 32 + ] + ] + } + ] + }, + "test_composite": { + "n": 512, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 512, + "any_relevant_fact_in_composite_training_n": 512, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 512, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 174, + 155, + 156, + 164 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 20, + "fraction": 0.0390625, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.0390625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.091796875, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.091796875, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 49, + 66, + 67, + 67, + 66, + 63 + ], + [ + 39, + 68, + 66, + 69, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.15625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.15625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 9, + 67, + 69, + 66, + 66, + 34 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.279296875, + "single_target_group_query_fraction": 0.001953125, + "singleton_group_query_fraction": 0.001953125, + "multi_query_groups": 63, + "multi_query_coverage_fraction": 0.998046875, + "multi_query_empirical_modal_target_fraction": 0.27788649706457924, + "multi_target_groups": 63, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 13, + 67, + 66, + 66, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 217, + "empirical_modal_target_fraction": 0.490234375, + "single_target_group_query_fraction": 0.138671875, + "singleton_group_query_fraction": 0.115234375, + "multi_query_groups": 158, + "multi_query_coverage_fraction": 0.884765625, + "multi_query_empirical_modal_target_fraction": 0.423841059602649, + "multi_target_groups": 152, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 68, + 65 + ], + [ + 12, + 66, + 66, + 66, + 68, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 1025, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 1023, + "any_relevant_fact_in_composite_training_n": 1025, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9995121951219512, + "all_id_queries": 1025, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 187, + 179, + 177, + 181 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 44, + "fraction": 0.042926829268292686, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.042926829268292686, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08195121951219513, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08195121951219513, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 69, + 66, + 25 + ], + [ + 2, + 67, + 68, + 67, + 66, + 57 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14146341463414633, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14146341463414633, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 67, + 66, + 66, + 53 + ], + [ + 4, + 68, + 66, + 66, + 66, + 60 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.24, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.24, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 4, + 68, + 66, + 66, + 66, + 60 + ], + [ + 6, + 66, + 66, + 66, + 66, + 36 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 249, + "empirical_modal_target_fraction": 0.3648780487804878, + "single_target_group_query_fraction": 0.02048780487804878, + "singleton_group_query_fraction": 0.014634146341463415, + "multi_query_groups": 234, + "multi_query_coverage_fraction": 0.9853658536585366, + "multi_query_empirical_modal_target_fraction": 0.35544554455445543, + "multi_target_groups": 231, + "same_suffix_different_target_example": [ + [ + 6, + 66, + 66, + 66, + 66, + 36 + ], + [ + 43, + 66, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "ood_composite": { + "n": 53, + "unique_relevant_atomic_facts": 48, + "relevant_atomic_fact_coverage_of_graph": 0.1875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 53, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 35, + 27, + 24, + 26 + ], + "within_split_majority_tail": { + "target_token": 54, + "count": 7, + "fraction": 0.1320754716981132, + "distinct_targets": 22 + }, + "train_composite_majority_tail_fraction": 0.018867924528301886, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.32075471698113206, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.32075471698113206, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 69, + 68, + 66, + 60 + ], + [ + 7, + 68, + 68, + 69, + 66, + 65 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.6981132075471698, + "single_target_group_query_fraction": 0.18867924528301888, + "singleton_group_query_fraction": 0.05660377358490566, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.9433962264150944, + "multi_query_empirical_modal_target_fraction": 0.68, + "multi_target_groups": 9, + "same_suffix_different_target_example": [ + [ + 8, + 67, + 69, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 32, + "empirical_modal_target_fraction": 0.9056603773584906, + "single_target_group_query_fraction": 0.7169811320754716, + "singleton_group_query_fraction": 0.37735849056603776, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.6226415094339622, + "multi_query_empirical_modal_target_fraction": 0.8484848484848485, + "multi_target_groups": 5, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 47, + "empirical_modal_target_fraction": 0.9622641509433962, + "single_target_group_query_fraction": 0.9056603773584906, + "singleton_group_query_fraction": 0.7924528301886793, + "multi_query_groups": 5, + "multi_query_coverage_fraction": 0.20754716981132076, + "multi_query_empirical_modal_target_fraction": 0.8181818181818182, + "multi_target_groups": 2, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + } + ] + }, + "unused_composite": { + "n": 3358, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 3354, + "any_relevant_fact_in_composite_training_n": 3358, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9997022036926743, + "all_id_queries": 3358, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192, + 185, + 185, + 184 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 143, + "fraction": 0.04258487194758785, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03335318642048839, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.09380583680762358, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.09380583680762358, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 67, + 66, + 57 + ], + [ + 2, + 67, + 66, + 68, + 66, + 50 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14502680166765933, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14502680166765933, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 67, + 66, + 66, + 10 + ], + [ + 3, + 69, + 67, + 66, + 66, + 53 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.197736748064324, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.197736748064324, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 67, + 66, + 66, + 66, + 44 + ], + [ + 5, + 66, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 256, + "empirical_modal_target_fraction": 0.25431804645622397, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 256, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25431804645622397, + "multi_target_groups": 256, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 66, + 5 + ], + [ + 7, + 66, + 66, + 66, + 66, + 45 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + } + }, + "same_atomic_and_id_mask_all_lengths": true, + "source_entity_offset": 2, + "entity_offset": 3, + "source_token_shift": 1, + "separator_token": 71, + "vocab_size": 72, + "evaluation_pools": "Complete test_full_composite and ood_composite", + "composition_supervision": "Terminal entity only; no intermediate entity", + "training_objective": "All nonpadding next tokens including EOS", + "holdout": "Complete queries held out within each length; not subpaths across lengths", + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "independent_audit": { + "passed": true, + "counts": { + "atomic": 256, + "train_2": 444, + "familiar_2": 124, + "strict_2": 64, + "train_3": 768, + "familiar_3": 329, + "strict_3": 59, + "train_4": 768, + "familiar_4": 1025, + "strict_4": 53 + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "truth_edges_independently_traversed": true, + "complete_query_overlap": 0, + "all_strict_facts_absent_from_composition_training": true, + "cross_length_subpath_holdout": false + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/audit-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/audit-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..d5196bb1bc15a5ff017c2fff014d2fa8867ecd56 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/audit-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "audit", + "gpu": 4, + "returncode": 0, + "seconds": 4.327294796705246 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/audit-process.log b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/audit-process.log new file mode 100644 index 0000000000000000000000000000000000000000..ab3fd3797c044a08d718d04c9b2cc10cb6aba795 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/audit-process.log @@ -0,0 +1 @@ +{"passed": true, "dataset_rebuilt_and_archived_exact": true, "initial_model_exact": true, "checkpoint_nodes": [0, 8000, 32000, 64000], "endpoint_tokens_exact": true, "all_nodes_exposure_counters_exact": true, "stream_state_continuation_exact": true, "max_nll_difference": 0.0, "nll_rtol": 1e-05, "nll_atol": 1e-05, "utc": "2026-10-01T22:56:03.694021+00:00"} diff --git a/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/audit.json b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/audit.json new file mode 100644 index 0000000000000000000000000000000000000000..8e4122a560feb53b8d08478ac08681eef2168ea8 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/audit.json @@ -0,0 +1,18 @@ +{ + "passed": true, + "dataset_rebuilt_and_archived_exact": true, + "initial_model_exact": true, + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "endpoint_tokens_exact": true, + "all_nodes_exposure_counters_exact": true, + "stream_state_continuation_exact": true, + "max_nll_difference": 0.0, + "nll_rtol": 1e-05, + "nll_atol": 1e-05, + "utc": "2026-10-01T22:56:03.694021+00:00" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/complete.json b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..7da49351a49b2c8b9f83115c733b5838be7f2a98 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/complete.json @@ -0,0 +1,204 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 6, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "initial_model_sha256": "ccce6313473be962ccad03c41f2765df095f8c98b3fc90befc1cc8137b7b1d21", + "checkpoint_sha256": "7c12e3a22c9669fcc7c2ea6a9e898750caa4dd7c522eb0d28d857ed20443f3d9", + "finished_utc": "2026-10-01T22:55:59.177821+00:00", + "parameters": 1200256, + "strata_counts": { + "atomic": 256, + "train_2": 444, + "train_3": 768, + "train_4": 768 + }, + "endpoint": { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.2024634997942485e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.2600617083080579e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.43548387096774194, + "answer_accuracy": 0.43548387096774194, + "answer_nll": 3.6187164783477783, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.43548387096774194, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 10.09887981414795, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.645965858187992e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.4316109422492401, + "answer_accuracy": 0.4316109422492401, + "answer_nll": 3.8475441932678223, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.4316109422492401, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.05084745762711865, + "answer_accuracy": 0.05084745762711865, + "answer_nll": 11.340723991394043, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.05084745762711865, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.851769229688216e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2926829268292683, + "answer_accuracy": 0.2926829268292683, + "answer_nll": 5.807528018951416, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2926829268292683, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 10.842447280883789, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.172713279724121, + "training_seconds": 97.10575855895877, + "estimated_training_flops": 472312184832000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + }, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000, + "estimated_training_flops": 472312184832000, + "training_seconds": 97.10575855895877, + "process_seconds": 103.23956141993403, + "environment": { + "torch": "2.6.0+cu126", + "numpy": "1.23.5", + "cuda": "12.6", + "gpu": "NVIDIA L20X", + "tf32": true + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/input-spec.json b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/input-spec.json new file mode 100644 index 0000000000000000000000000000000000000000..b845befdbe791852fcd6b94b915b65e7c2ff8392 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/input-spec.json @@ -0,0 +1,65 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 6, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + } +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/learning.json b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..94aa7dfc890d3eedd10c37d9caf62409095282f6 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/learning.json @@ -0,0 +1,1162 @@ +[ + { + "step": 0, + "lr": 0.0, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.325507164001465 + }, + "train_2": { + "n": 444, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.319766521453857, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.284360885620117, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.339944362640381, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.307010650634766, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.3240580558776855, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.36638879776001, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.317715167999268, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.313957691192627, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 4.459013938903809, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.0, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": null, + "training_seconds": 0.0, + "estimated_training_flops": 0, + "supervised_tokens": 0, + "padded_input_tokens": 0 + }, + { + "step": 256, + "lr": 0.0009999982891312849, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.12109375, + "answer_accuracy": 0.12109375, + "answer_nll": 3.3804068565368652 + }, + "train_2": { + "n": 444, + "accuracy": 0.11711711711711711, + "answer_accuracy": 0.11711711711711711, + "answer_nll": 3.3225808143615723, + "atomic_correct_coverage": 0.03153153153153153, + "conditional_accuracy": 0.8571428571428571, + "autonomous_two_calls": 0.07657657657657657, + "autonomous_path_accuracy": 0.03153153153153153, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.12903225806451613, + "answer_accuracy": 0.12903225806451613, + "answer_nll": 3.3378098011016846, + "atomic_correct_coverage": 0.024193548387096774, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 0.07258064516129033, + "autonomous_path_accuracy": 0.024193548387096774, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 4.6006340980529785, + "atomic_correct_coverage": 0.046875, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.0625, + "autonomous_path_accuracy": 0.046875, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.11067708333333333, + "answer_accuracy": 0.11067708333333333, + "answer_nll": 3.326934576034546, + "atomic_correct_coverage": 0.006510416666666667, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 0.06901041666666667, + "autonomous_path_accuracy": 0.006510416666666667, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.11550151975683891, + "answer_accuracy": 0.11550151975683891, + "answer_nll": 3.382375717163086, + "atomic_correct_coverage": 0.0121580547112462, + "conditional_accuracy": 0.75, + "autonomous_two_calls": 0.06990881458966565, + "autonomous_path_accuracy": 0.0121580547112462, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 4.89717960357666, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.01694915254237288, + "autonomous_path_accuracy": 0.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.11197916666666667, + "answer_accuracy": 0.11197916666666667, + "answer_nll": 3.340317964553833, + "atomic_correct_coverage": 0.0026041666666666665, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.0703125, + "autonomous_path_accuracy": 0.0026041666666666665, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.09658536585365854, + "answer_accuracy": 0.09658536585365854, + "answer_nll": 3.4405999183654785, + "atomic_correct_coverage": 0.002926829268292683, + "conditional_accuracy": 0.6666666666666666, + "autonomous_two_calls": 0.05853658536585366, + "autonomous_path_accuracy": 0.002926829268292683, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 5.06142520904541, + "atomic_correct_coverage": 0.0, + "conditional_accuracy": null, + "autonomous_two_calls": 0.018867924528301886, + "autonomous_path_accuracy": 0.0, + "hop_count": 4 + } + }, + "loss": 1.898321270942688, + "training_seconds": 0.3889327682554722, + "estimated_training_flops": 1889248739328, + "supervised_tokens": 212992, + "padded_input_tokens": 262144 + }, + { + "step": 512, + "lr": 0.0009999468942493638, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.6953125, + "answer_accuracy": 0.6953125, + "answer_nll": 1.3947553634643555 + }, + "train_2": { + "n": 444, + "accuracy": 0.4144144144144144, + "answer_accuracy": 0.4144144144144144, + "answer_nll": 1.9680007696151733, + "atomic_correct_coverage": 0.481981981981982, + "conditional_accuracy": 0.5607476635514018, + "autonomous_two_calls": 0.5022522522522522, + "autonomous_path_accuracy": 0.481981981981982, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.21774193548387097, + "answer_accuracy": 0.21774193548387097, + "answer_nll": 2.923063278198242, + "atomic_correct_coverage": 0.45161290322580644, + "conditional_accuracy": 0.2857142857142857, + "autonomous_two_calls": 0.46774193548387094, + "autonomous_path_accuracy": 0.45161290322580644, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 5.278639316558838, + "atomic_correct_coverage": 0.453125, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.453125, + "autonomous_path_accuracy": 0.453125, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.2760416666666667, + "answer_accuracy": 0.2760416666666667, + "answer_nll": 2.4977529048919678, + "atomic_correct_coverage": 0.32421875, + "conditional_accuracy": 0.41365461847389556, + "autonomous_two_calls": 0.3580729166666667, + "autonomous_path_accuracy": 0.32421875, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.182370820668693, + "answer_accuracy": 0.182370820668693, + "answer_nll": 3.0333783626556396, + "atomic_correct_coverage": 0.3404255319148936, + "conditional_accuracy": 0.29464285714285715, + "autonomous_two_calls": 0.3738601823708207, + "autonomous_path_accuracy": 0.3404255319148936, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 5.669049263000488, + "atomic_correct_coverage": 0.3389830508474576, + "conditional_accuracy": 0.05, + "autonomous_two_calls": 0.3389830508474576, + "autonomous_path_accuracy": 0.3389830508474576, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.2552083333333333, + "answer_accuracy": 0.2552083333333333, + "answer_nll": 2.6033384799957275, + "atomic_correct_coverage": 0.22005208333333334, + "conditional_accuracy": 0.39644970414201186, + "autonomous_two_calls": 0.265625, + "autonomous_path_accuracy": 0.22005208333333334, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.144390243902439, + "answer_accuracy": 0.144390243902439, + "answer_nll": 3.279921531677246, + "atomic_correct_coverage": 0.20195121951219513, + "conditional_accuracy": 0.2608695652173913, + "autonomous_two_calls": 0.23609756097560974, + "autonomous_path_accuracy": 0.20195121951219513, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 5.763339996337891, + "atomic_correct_coverage": 0.2641509433962264, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 0.2641509433962264, + "autonomous_path_accuracy": 0.2641509433962264, + "hop_count": 4 + } + }, + "loss": 1.6958215236663818, + "training_seconds": 0.7776633463799953, + "estimated_training_flops": 3778497478656, + "supervised_tokens": 425984, + "padded_input_tokens": 524288 + }, + { + "step": 1000, + "lr": 0.0009996508880478938, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.99609375, + "answer_accuracy": 0.99609375, + "answer_nll": 0.08035209774971008 + }, + "train_2": { + "n": 444, + "accuracy": 0.9662162162162162, + "answer_accuracy": 0.9662162162162162, + "answer_nll": 0.15757180750370026, + "atomic_correct_coverage": 0.9954954954954955, + "conditional_accuracy": 0.9705882352941176, + "autonomous_two_calls": 0.9954954954954955, + "autonomous_path_accuracy": 0.9954954954954955, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.31451612903225806, + "answer_accuracy": 0.31451612903225806, + "answer_nll": 3.2607178688049316, + "atomic_correct_coverage": 0.9758064516129032, + "conditional_accuracy": 0.32231404958677684, + "autonomous_two_calls": 0.9758064516129032, + "autonomous_path_accuracy": 0.9758064516129032, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 6.878332614898682, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.8658854166666666, + "answer_accuracy": 0.8658854166666666, + "answer_nll": 0.4835202693939209, + "atomic_correct_coverage": 0.9921875, + "conditional_accuracy": 0.868766404199475, + "autonomous_two_calls": 0.9921875, + "autonomous_path_accuracy": 0.9921875, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.2735562310030395, + "answer_accuracy": 0.2735562310030395, + "answer_nll": 3.107224941253662, + "atomic_correct_coverage": 0.9848024316109423, + "conditional_accuracy": 0.2777777777777778, + "autonomous_two_calls": 0.9878419452887538, + "autonomous_path_accuracy": 0.9848024316109423, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 7.35269832611084, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.8697916666666666, + "answer_accuracy": 0.8697916666666666, + "answer_nll": 0.506087601184845, + "atomic_correct_coverage": 0.9869791666666666, + "conditional_accuracy": 0.8693931398416886, + "autonomous_two_calls": 0.9869791666666666, + "autonomous_path_accuracy": 0.9869791666666666, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.1873170731707317, + "answer_accuracy": 0.1873170731707317, + "answer_nll": 4.085374355316162, + "atomic_correct_coverage": 0.9921951219512195, + "conditional_accuracy": 0.1848574237954769, + "autonomous_two_calls": 0.9960975609756098, + "autonomous_path_accuracy": 0.9921951219512195, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 7.10129451751709, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.39474618434906, + "training_seconds": 1.518224086612463, + "estimated_training_flops": 7379877888000, + "supervised_tokens": 832000, + "padded_input_tokens": 1024000 + }, + { + "step": 2000, + "lr": 0.000998233549067816, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 0.99609375, + "answer_accuracy": 0.99609375, + "answer_nll": 0.02101029083132744 + }, + "train_2": { + "n": 444, + "accuracy": 0.9842342342342343, + "answer_accuracy": 0.9842342342342343, + "answer_nll": 0.0679488480091095, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9842342342342343, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3467741935483871, + "answer_accuracy": 0.3467741935483871, + "answer_nll": 3.5927846431732178, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3467741935483871, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 8.518200874328613, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.9869791666666666, + "answer_accuracy": 0.9869791666666666, + "answer_nll": 0.05622510984539986, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9869791666666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3617021276595745, + "answer_accuracy": 0.3617021276595745, + "answer_nll": 3.609973192214966, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3617021276595745, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.01694915254237288, + "answer_accuracy": 0.01694915254237288, + "answer_nll": 8.127506256103516, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.01694915254237288, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9830729166666666, + "answer_accuracy": 0.9830729166666666, + "answer_nll": 0.06406467407941818, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9830729166666666, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.24780487804878049, + "answer_accuracy": 0.24780487804878049, + "answer_nll": 4.8192596435546875, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.24780487804878049, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.07547169811320754, + "answer_accuracy": 0.07547169811320754, + "answer_nll": 7.973460674285889, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.07547169811320754, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.238229751586914, + "training_seconds": 3.0360970199108124, + "estimated_training_flops": 14759755776000, + "supervised_tokens": 1664000, + "padded_input_tokens": 2048000 + }, + { + "step": 4000, + "lr": 0.0009921451014991594, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.018862461671233177 + }, + "train_2": { + "n": 444, + "accuracy": 0.9954954954954955, + "answer_accuracy": 0.9954954954954955, + "answer_nll": 0.024480221793055534, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9954954954954955, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.28225806451612906, + "answer_accuracy": 0.28225806451612906, + "answer_nll": 3.8973870277404785, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.28225806451612906, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 8.366085052490234, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 0.98046875, + "answer_accuracy": 0.98046875, + "answer_nll": 0.07144998759031296, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.98046875, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.3677811550151976, + "answer_accuracy": 0.3677811550151976, + "answer_nll": 3.5021345615386963, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3677811550151976, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 8.861101150512695, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 0.9778645833333334, + "answer_accuracy": 0.9778645833333334, + "answer_nll": 0.07496077567338943, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.9778645833333334, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.23121951219512196, + "answer_accuracy": 0.23121951219512196, + "answer_nll": 4.963169574737549, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.23121951219512196, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 8.709355354309082, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.2295842170715332, + "training_seconds": 6.071580674499273, + "estimated_training_flops": 29519511552000, + "supervised_tokens": 3328000, + "padded_input_tokens": 4096000 + }, + { + "step": 8000, + "lr": 0.0009672142859549292, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0005414263578131795 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.000559392326977104, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.3870967741935484, + "answer_accuracy": 0.3870967741935484, + "answer_nll": 3.3132071495056152, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.3870967741935484, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 9.177901268005371, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.000902135216165334, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.40425531914893614, + "answer_accuracy": 0.40425531914893614, + "answer_nll": 3.5331530570983887, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.40425531914893614, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.05084745762711865, + "answer_accuracy": 0.05084745762711865, + "answer_nll": 9.505393028259277, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.05084745762711865, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0010487515246495605, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2526829268292683, + "answer_accuracy": 0.2526829268292683, + "answer_nll": 5.14402437210083, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2526829268292683, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 8.932140350341797, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.178358793258667, + "training_seconds": 12.137985989451408, + "estimated_training_flops": 59039023104000, + "supervised_tokens": 6656000, + "padded_input_tokens": 8192000 + }, + { + "step": 16000, + "lr": 0.0008705396215758866, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00017963579739443958 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0002154070243705064, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.4274193548387097, + "answer_accuracy": 0.4274193548387097, + "answer_nll": 3.088803291320801, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.4274193548387097, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 9.569730758666992, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0003183299850206822, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.4316109422492401, + "answer_accuracy": 0.4316109422492401, + "answer_nll": 3.2463483810424805, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.4316109422492401, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.06779661016949153, + "answer_accuracy": 0.06779661016949153, + "answer_nll": 10.558448791503906, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.06779661016949153, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.0003886332269757986, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.26146341463414635, + "answer_accuracy": 0.26146341463414635, + "answer_nll": 5.291752338409424, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.26146341463414635, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.0, + "answer_accuracy": 0.0, + "answer_nll": 9.538727760314941, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1783027648925781, + "training_seconds": 24.26953185349703, + "estimated_training_flops": 118078046208000, + "supervised_tokens": 13312000, + "padded_input_tokens": 16384000 + }, + { + "step": 32000, + "lr": 0.0005522158479326845, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 5.226611756370403e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 7.016080780886114e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.4032258064516129, + "answer_accuracy": 0.4032258064516129, + "answer_nll": 3.2233357429504395, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.4032258064516129, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.03125, + "answer_accuracy": 0.03125, + "answer_nll": 9.716135025024414, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03125, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 9.257639612769708e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.4194528875379939, + "answer_accuracy": 0.4194528875379939, + "answer_nll": 3.543325662612915, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.4194528875379939, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.03389830508474576, + "answer_accuracy": 0.03389830508474576, + "answer_nll": 11.49050521850586, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.03389830508474576, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 0.00010625371942296624, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2751219512195122, + "answer_accuracy": 0.2751219512195122, + "answer_nll": 5.528270721435547, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2751219512195122, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 10.286964416503906, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.1736468076705933, + "training_seconds": 48.54910933971405, + "estimated_training_flops": 236156092416000, + "supervised_tokens": 26624000, + "padded_input_tokens": 32768000 + }, + { + "step": 64000, + "lr": 0.0001, + "metrics": { + "atomic": { + "n": 256, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.2024634997942485e-05 + }, + "train_2": { + "n": 444, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.2600617083080579e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "familiar_2": { + "n": 124, + "accuracy": 0.43548387096774194, + "answer_accuracy": 0.43548387096774194, + "answer_nll": 3.6187164783477783, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.43548387096774194, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "strict_2": { + "n": 64, + "accuracy": 0.015625, + "answer_accuracy": 0.015625, + "answer_nll": 10.09887981414795, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.015625, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 2 + }, + "train_3": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.645965858187992e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "familiar_3": { + "n": 329, + "accuracy": 0.4316109422492401, + "answer_accuracy": 0.4316109422492401, + "answer_nll": 3.8475441932678223, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.4316109422492401, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "strict_3": { + "n": 59, + "accuracy": 0.05084745762711865, + "answer_accuracy": 0.05084745762711865, + "answer_nll": 11.340723991394043, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.05084745762711865, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 3 + }, + "train_4": { + "n": 768, + "accuracy": 1.0, + "answer_accuracy": 1.0, + "answer_nll": 1.851769229688216e-05, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 1.0, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "familiar_4": { + "n": 1025, + "accuracy": 0.2926829268292683, + "answer_accuracy": 0.2926829268292683, + "answer_nll": 5.807528018951416, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.2926829268292683, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + }, + "strict_4": { + "n": 53, + "accuracy": 0.018867924528301886, + "answer_accuracy": 0.018867924528301886, + "answer_nll": 10.842447280883789, + "atomic_correct_coverage": 1.0, + "conditional_accuracy": 0.018867924528301886, + "autonomous_two_calls": 1.0, + "autonomous_path_accuracy": 1.0, + "hop_count": 4 + } + }, + "loss": 1.172713279724121, + "training_seconds": 97.10575855895877, + "estimated_training_flops": 472312184832000, + "supervised_tokens": 53248000, + "padded_input_tokens": 65536000 + } +] diff --git a/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/spec.json b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/spec.json new file mode 100644 index 0000000000000000000000000000000000000000..e07b05afda36bec061a16ddb6de61c2039f4c26e --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/spec.json @@ -0,0 +1,66 @@ +{ + "spec": { + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "width": 128, + "heads": 4, + "dropout": 0.0, + "initialization": 752011, + "stream_seed": 753011, + "model_initialization": "scaled_effective", + "batch_size": 128, + "steps": 64000, + "nodes": [ + 0, + 256, + 512, + 1000, + 2000, + 4000, + 8000, + 16000, + 32000, + 64000 + ], + "checkpoint_nodes": [ + 0, + 8000, + 32000, + 64000 + ], + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "clip": 1.0, + "layers": 6, + "repeats": 1, + "frozen_data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" + }, + "source": { + "src/llm_memory_editability/depth_step.py": "bd69879d5ec6124c05ca28a62c2c2459734e5b4b17d32ae92005308de63b8279", + "src/llm_memory_editability/bios_model.py": "99efb7feeeb15f33dd3f08174c1190f4aa470e3877d8ac6692b2d43fed4c5f4d", + "src/llm_memory_editability/grok_depth.py": "7d6d5af38a5dc4438b1e7ff44df8e833169d500f0d60d8933932bdb8822aca26", + "src/llm_memory_editability/grok_depth_data.py": "c1451a0647ef7c25567398efd63848dbb44fdf066d07718c02f7e556e6c8b94a", + "src/llm_memory_editability/grok_multihop_data.py": "d417b4d39e70cfa4010a8cd737a362d8159d73c2377330b04bf471a5079da851", + "src/llm_memory_editability/grok_loop_data.py": "504de57da94618578cf792a3963f99e2dac587424d74ceae6b4c02c1d9680a8e", + "src/llm_memory_editability/grok_loop_model.py": "07e84388997a1710e5c821e54cf6d23726e4289aab178347761e060851fea6cc", + "src/llm_memory_editability/storage_composition.py": "fa4d8b073ecb3ac69a3204ee446a4bc1ecf0c36f9d8dd1dcd0b6835c245e4c5a", + "src/llm_memory_editability/storage_frontier.py": "2a1adcbbb0439ed771e17090878b9f7c9861d2fef4544172a88c35bd037d4a22", + "src/llm_memory_editability/latent_scaling.py": "231050e859da58c52b9ea47d09fb5de91271df0d24cbab42dead3f911adc6119", + "src/llm_memory_editability/text_pretrain.py": "cd777a56ba270d3c71ed3260f68501ee0685d4cc58a4f7b952719236adf874cb", + "scripts/run_depth_step.py": "a61c5db1daa97a42ed91033592ec1aa61e387dfc70f9e769b8bd60a888180b86", + "scripts/execute_depth_step.py": "5c1b77ed80c793949c4b13ddf500723e722a367aa711bd218cf59d73d4990965", + "scripts/report_depth_step.py": "ec543ad3dcb843923b682b8fcd1d8b3c95c4838ef02ad90abf57a454573b2094", + "tests/test_depth_step.py": "08a8018a6ac98f4211130f51f64dfcb34c15f9e616d4fdb8bd4c2c2ce22756f8", + "tests/test_depth_step_report.py": "632b298d6bf1bb564b0057b958b4c944514bd6c25c2d1712a0fe890535f98137" + }, + "data_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57" +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/status.json b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/status.json new file mode 100644 index 0000000000000000000000000000000000000000..d332dc2b8bde7c33219e9f3a7045f6466b684b92 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/status.json @@ -0,0 +1,4 @@ +{ + "step": 64000, + "budget": 64000 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/train-process-status.json b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/train-process-status.json new file mode 100644 index 0000000000000000000000000000000000000000..0f2d62ee39f880c8c226435908b12c7205fcd277 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/train-process-status.json @@ -0,0 +1,6 @@ +{ + "stage": "train", + "gpu": 4, + "returncode": 0, + "seconds": 112.33830105140805 +} diff --git a/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/train-process.log b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/train-process.log new file mode 100644 index 0000000000000000000000000000000000000000..e6bdbdb454e78a10425875a3cc19e1da28a3bcc5 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/train-process.log @@ -0,0 +1,10 @@ +{"run": "w751011-i752011-d128-l6-r1-s64000", "step": 0, "atomic": 0.0, "familiar": {"2": 0.0, "3": 0.0, "4": 0.0}} +{"run": "w751011-i752011-d128-l6-r1-s64000", "step": 256, "atomic": 0.12109375, "familiar": {"2": 0.12903225806451613, "3": 0.11550151975683891, "4": 0.09658536585365854}} +{"run": "w751011-i752011-d128-l6-r1-s64000", "step": 512, "atomic": 0.6953125, "familiar": {"2": 0.21774193548387097, "3": 0.182370820668693, "4": 0.144390243902439}} +{"run": "w751011-i752011-d128-l6-r1-s64000", "step": 1000, "atomic": 0.99609375, "familiar": {"2": 0.31451612903225806, "3": 0.2735562310030395, "4": 0.1873170731707317}} +{"run": "w751011-i752011-d128-l6-r1-s64000", "step": 2000, "atomic": 0.99609375, "familiar": {"2": 0.3467741935483871, "3": 0.3617021276595745, "4": 0.24780487804878049}} +{"run": "w751011-i752011-d128-l6-r1-s64000", "step": 4000, "atomic": 1.0, "familiar": {"2": 0.28225806451612906, "3": 0.3677811550151976, "4": 0.23121951219512196}} +{"run": "w751011-i752011-d128-l6-r1-s64000", "step": 8000, "atomic": 1.0, "familiar": {"2": 0.3870967741935484, "3": 0.40425531914893614, "4": 0.2526829268292683}} +{"run": "w751011-i752011-d128-l6-r1-s64000", "step": 16000, "atomic": 1.0, "familiar": {"2": 0.4274193548387097, "3": 0.4316109422492401, "4": 0.26146341463414635}} +{"run": "w751011-i752011-d128-l6-r1-s64000", "step": 32000, "atomic": 1.0, "familiar": {"2": 0.4032258064516129, "3": 0.4194528875379939, "4": 0.2751219512195122}} +{"run": "w751011-i752011-d128-l6-r1-s64000", "step": 64000, "atomic": 1.0, "familiar": {"2": 0.43548387096774194, "3": 0.4316109422492401, "4": 0.2926829268292683}} diff --git a/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/world-metadata.json b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/world-metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0d160c9e2f6a49b4d5ec9ef5ade290343346beb5 --- /dev/null +++ b/results/depth-step-v1/w751011-i752011-d128-l6-r1-s64000/world-metadata.json @@ -0,0 +1,11519 @@ +{ + "world_seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "evaluation_size": 512, + "id_mask": [ + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + true, + true, + false, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + true, + true, + false, + false, + false, + true, + true, + true, + false, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + false, + true, + true, + false, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + false, + true, + true, + false, + true, + true, + true, + false, + true, + false, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + false, + true, + true, + true, + false, + true, + true, + true, + true, + true, + true + ], + "source_worlds": { + "2": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": true, + "phi_actual": 2.3125, + "mixed_composite_excluded": 392, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 444, + "test_composite": 124, + "test_full_composite": 124, + "ood_composite": 64, + "unused_composite": 0 + }, + "dataset_sha256": "59e810faf8478e02f02ffd785bce119413d62608e48c5d41a4c24032dda4abc2", + "warnings": [ + "Training request capped at eligible pool" + ], + "hops": 2, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 568, + "all_paths_total": 1024, + "training_fraction_of_id_paths": 0.7816901408450704, + "training_fraction_of_nonreserved_id_paths": 1.0, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 29, + 49, + 14, + 32, + 62, + 86, + 66, + 5, + 8, + 83, + 50, + 88, + 116, + 23, + 87, + 80, + 100, + 9, + 117, + 81, + 79, + 54, + 91, + 111, + 19, + 4, + 68, + 2, + 113, + 40, + 65, + 27, + 38, + 0, + 41, + 21, + 1, + 78, + 82, + 101, + 15, + 20, + 59, + 35, + 99, + 53, + 84, + 123, + 114, + 56, + 108, + 72, + 55, + 104, + 92, + 22, + 89, + 43, + 18, + 11, + 74, + 13, + 52, + 60, + 25, + 109, + 48, + 57, + 71, + 115, + 30, + 110, + 61, + 119, + 44, + 95, + 106, + 47, + 121, + 24, + 69, + 118, + 98, + 39, + 34, + 112, + 26, + 102, + 36, + 75, + 33, + 105, + 96, + 51, + 94, + 58, + 90, + 12, + 10, + 97, + 76, + 107, + 93, + 42, + 6, + 17, + 46, + 122, + 64, + 67, + 73, + 85, + 77, + 28, + 7, + 45, + 3, + 120, + 63, + 70, + 37, + 16, + 31, + 103 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 444, + "any_repeated_entity_n": 45, + "any_repeated_entity_fraction": 0.10135135135135136, + "answer_equals_preceding_entity_n": 33, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 185, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 0, + 4, + 2, + 0, + 1, + 0, + 2, + 0, + 3, + 2, + 0, + 1, + 2, + 0, + 0, + 2, + 3, + 3, + 2, + 1, + 3, + 3, + 0, + 3, + 2, + 2, + 0, + 2, + 3, + 1, + 2, + 4, + 3, + 3, + 2, + 0, + 0, + 1, + 3, + 0, + 0, + 4, + 4, + 1, + 0, + 2, + 2, + 0, + 0, + 0, + 1, + 4, + 3, + 0, + 0, + 1, + 0, + 3, + 0, + 0, + 4, + 2, + 2, + 2, + 0, + 2, + 2, + 0, + 2, + 3, + 0, + 0, + 2, + 3, + 3, + 4, + 0, + 3, + 4, + 2, + 3, + 0, + 2, + 2, + 0, + 3, + 1, + 3, + 3, + 3, + 0, + 2, + 3, + 1, + 0, + 3, + 2, + 3, + 3, + 3, + 1, + 2, + 2, + 2, + 0, + 3, + 2, + 4, + 2, + 2, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 3, + 3, + 0, + 3, + 3, + 2, + 3, + 3, + 0, + 1, + 3, + 3, + 1, + 2, + 3, + 1, + 1, + 1, + 4, + 3, + 3, + 0, + 2, + 3, + 2, + 3, + 1, + 3, + 0, + 3, + 2, + 0, + 0, + 2, + 2, + 4, + 1, + 3, + 3, + 3, + 0, + 2, + 2, + 2, + 2, + 2, + 0, + 3, + 0, + 0, + 0, + 3, + 2, + 1, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 0, + 2, + 0, + 3, + 2, + 2, + 4, + 2, + 0, + 4, + 2, + 3, + 4, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 4, + 2, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 2, + 2, + 3, + 1, + 2, + 2, + 2, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 2, + 1, + 0, + 1, + 3, + 4, + 2, + 2, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 182, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 0, + 3, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 0, + 5, + 3, + 0, + 1, + 1, + 1, + 3, + 0, + 4, + 4, + 4, + 0, + 5, + 4, + 1, + 2, + 1, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 3, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 5, + 4, + 0, + 1, + 2, + 0, + 0, + 4, + 6, + 5, + 5, + 0, + 2, + 2, + 2, + 1, + 0, + 2, + 3, + 3, + 2, + 2, + 2, + 2, + 2, + 0, + 2, + 2, + 4, + 0, + 4, + 3, + 1, + 1, + 1, + 1, + 2, + 2, + 1, + 0, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 0, + 2, + 3, + 0, + 4, + 0, + 1, + 1, + 2, + 3, + 0, + 3, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 2, + 1, + 3, + 3, + 3, + 2, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 2, + 2, + 2, + 2, + 2, + 1, + 2, + 0, + 4, + 3, + 4, + 3, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 3, + 2, + 0, + 3, + 2, + 2, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 2, + 3, + 1, + 5, + 6, + 7, + 6, + 3, + 2, + 0, + 3, + 2, + 3, + 2, + 3, + 0, + 4, + 3, + 3, + 1, + 0, + 2, + 1, + 0, + 2, + 2, + 0, + 1, + 2, + 2, + 0, + 5, + 0, + 6, + 0, + 0, + 4, + 4, + 3, + 1, + 3, + 2, + 2, + 0, + 2, + 3, + 2, + 4, + 0, + 3, + 3, + 2, + 0, + 2, + 3, + 4, + 4, + 4, + 3 + ], + "id_count_min": 0, + "id_count_max": 7 + } + ] + }, + "test_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + }, + "test_full_composite": { + "n": 124, + "any_repeated_entity_n": 9, + "any_repeated_entity_fraction": 0.07258064516129033, + "answer_equals_preceding_entity_n": 7, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 98, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 1, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 4, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 1, + 2, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 2, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 2, + 1, + 1, + 1, + 0, + 2, + 2, + 0, + 1, + 0, + 2, + 0, + 2, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "id_count_min": 0, + "id_count_max": 4 + }, + { + "hop": 2, + "id_edges_covered": 92, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 4, + 3, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 0, + 1, + 0, + 2, + 3, + 2, + 1, + 2, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 1, + 1, + 2 + ], + "id_count_min": 0, + "id_count_max": 4 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 3, + 0, + 4, + 0, + 4, + 3, + 2, + 3, + 0, + 3, + 4, + 0, + 8, + 5, + 4, + 4, + 0, + 5, + 0, + 5, + 3, + 0, + 3, + 4, + 0, + 0, + 7, + 6, + 3, + 3, + 2, + 4, + 6, + 0, + 7, + 6, + 6, + 0, + 7, + 7, + 2, + 4, + 5, + 4, + 4, + 4, + 0, + 0, + 2, + 4, + 0, + 0, + 8, + 9, + 6, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 6, + 5, + 0, + 0, + 4, + 0, + 4, + 0, + 0, + 5, + 4, + 4, + 3, + 0, + 7, + 6, + 0, + 3, + 5, + 0, + 0, + 6, + 9, + 8, + 9, + 0, + 5, + 6, + 4, + 4, + 0, + 4, + 5, + 3, + 5, + 3, + 5, + 5, + 5, + 0, + 4, + 5, + 5, + 0, + 7, + 5, + 4, + 4, + 4, + 2, + 4, + 4, + 3, + 0, + 4, + 3, + 5, + 2, + 4, + 4, + 0, + 0, + 4, + 3, + 0, + 7, + 0, + 3, + 3, + 5, + 6, + 0, + 6, + 4, + 3, + 4, + 4, + 0, + 1, + 3, + 3, + 1, + 4, + 5, + 3, + 2, + 4, + 7, + 6, + 5, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 7, + 5, + 0, + 0, + 4, + 4, + 6, + 3, + 5, + 4, + 5, + 0, + 6, + 5, + 6, + 5, + 5, + 0, + 6, + 0, + 0, + 0, + 6, + 3, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 0, + 4, + 3, + 4, + 0, + 0, + 5, + 5, + 3, + 7, + 10, + 9, + 8, + 3, + 4, + 0, + 6, + 4, + 5, + 6, + 5, + 0, + 8, + 5, + 6, + 5, + 0, + 6, + 4, + 0, + 4, + 4, + 0, + 5, + 4, + 6, + 0, + 9, + 0, + 8, + 0, + 0, + 6, + 6, + 6, + 2, + 5, + 4, + 4, + 0, + 2, + 3, + 4, + 6, + 0, + 5, + 5, + 3, + 0, + 3, + 6, + 8, + 6, + 6, + 5 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 444, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 444, + "any_relevant_fact_in_composite_training_n": 444, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 444, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 185, + 182 + ], + "within_split_majority_tail": { + "target_token": 8, + "count": 16, + "fraction": 0.036036036036036036, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.036036036036036036, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08783783783783784, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08783783783783784, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 36, + 67, + 66, + 43 + ], + [ + 47, + 69, + 66, + 56 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.13063063063063063, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.13063063063063063, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 54, + 66, + 66, + 43 + ], + [ + 11, + 66, + 66, + 22 + ] + ] + } + ] + }, + "test_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 15, + 68, + 66, + 34 + ], + [ + 18, + 68, + 66, + 22 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 35, + 66, + 66, + 53 + ], + [ + 55, + 66, + 66, + 60 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 124, + "unique_relevant_atomic_facts": 137, + "relevant_atomic_fact_coverage_of_graph": 0.53515625, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 120, + "any_relevant_fact_in_composite_training_n": 124, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9838709677419355, + "all_id_queries": 124, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 98, + 92 + ], + "within_split_majority_tail": { + "target_token": 61, + "count": 8, + "fraction": 0.06451612903225806, + "distinct_targets": 48 + }, + "train_composite_majority_tail_fraction": 0.03225806451612903, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.14516129032258066, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14516129032258066, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 66, + 53 + ], + [ + 5, + 69, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.20161290322580644, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.20161290322580644, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 53 + ], + [ + 25, + 66, + 66, + 16 + ] + ] + } + ] + }, + "ood_composite": { + "n": 64, + "unique_relevant_atomic_facts": 53, + "relevant_atomic_fact_coverage_of_graph": 0.20703125, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 44, + 39 + ], + "within_split_majority_tail": { + "target_token": 58, + "count": 5, + "fraction": 0.078125, + "distinct_targets": 30 + }, + "train_composite_majority_tail_fraction": 0.0, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.25, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 6, + 67, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.328125, + "single_target_group_query_fraction": 0.03125, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.328125, + "multi_target_groups": 14, + "same_suffix_different_target_example": [ + [ + 4, + 66, + 66, + 58 + ], + [ + 13, + 66, + 66, + 13 + ] + ] + } + ] + }, + "unused_composite": { + "n": 0, + "unique_relevant_atomic_facts": 0, + "relevant_atomic_fact_coverage_of_graph": 0.0, + "all_relevant_facts_in_atomic_training_fraction": null, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": null, + "all_id_queries": 0, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 0, + 0 + ], + "within_split_majority_tail": { + "target_token": null, + "count": 0, + "fraction": null, + "distinct_targets": 0 + }, + "train_composite_majority_tail_fraction": null, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + }, + { + "suffix_relation_count": 2, + "groups": 0, + "empirical_modal_target_fraction": null, + "single_target_group_query_fraction": null, + "singleton_group_query_fraction": null, + "multi_query_groups": 0, + "multi_query_coverage_fraction": null, + "multi_query_empirical_modal_target_fraction": null, + "multi_target_groups": 0, + "same_suffix_different_target_example": null + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "3": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 2331, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 329, + "test_full_composite": 329, + "ood_composite": 59, + "unused_composite": 609 + }, + "dataset_sha256": "874230d99d7b1184953935d1476d34c3d69968bcc196b499299cf4c63dc75d6f", + "warnings": [], + "hops": 3, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 1706, + "all_paths_total": 4096, + "training_fraction_of_id_paths": 0.4501758499413834, + "training_fraction_of_nonreserved_id_paths": 0.5577342047930284, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 177, + 263, + 289, + 328, + 73, + 17, + 112, + 159, + 45, + 110, + 16, + 286, + 225, + 25, + 95, + 24, + 49, + 66, + 230, + 201, + 19, + 7, + 172, + 323, + 321, + 152, + 181, + 58, + 313, + 169, + 218, + 231, + 221, + 121, + 285, + 243, + 150, + 256, + 292, + 141, + 105, + 51, + 34, + 37, + 102, + 266, + 196, + 139, + 106, + 250, + 65, + 28, + 195, + 188, + 113, + 52, + 228, + 173, + 246, + 99, + 125, + 167, + 175, + 244, + 61, + 47, + 178, + 257, + 50, + 2, + 301, + 252, + 55, + 202, + 165, + 41, + 148, + 140, + 309, + 239, + 213, + 238, + 128, + 318, + 97, + 86, + 242, + 311, + 88, + 197, + 248, + 96, + 293, + 273, + 155, + 281, + 90, + 214, + 87, + 278, + 270, + 21, + 237, + 35, + 71, + 44, + 157, + 315, + 156, + 174, + 222, + 4, + 134, + 249, + 32, + 119, + 260, + 130, + 232, + 259, + 192, + 183, + 291, + 185, + 264, + 79, + 75, + 104, + 13, + 296, + 26, + 133, + 101, + 272, + 304, + 205, + 319, + 254, + 11, + 162, + 48, + 93, + 306, + 190, + 290, + 27, + 262, + 168, + 116, + 200, + 109, + 277, + 118, + 29, + 279, + 268, + 314, + 111, + 245, + 288, + 298, + 186, + 81, + 226, + 12, + 324, + 227, + 171, + 18, + 326, + 233, + 179, + 15, + 307, + 170, + 144, + 275, + 43, + 287, + 320, + 103, + 36, + 215, + 302, + 164, + 153, + 120, + 59, + 1, + 94, + 209, + 189, + 180, + 76, + 77, + 123, + 98, + 83, + 108, + 224, + 40, + 67, + 129, + 229, + 54, + 269, + 149, + 265, + 297, + 22, + 92, + 303, + 126, + 282, + 223, + 42, + 191, + 216, + 100, + 135, + 184, + 14, + 72, + 163, + 253, + 131, + 207, + 3, + 255, + 82, + 166, + 312, + 241, + 295, + 251, + 204, + 84, + 57, + 274, + 78, + 299, + 8, + 276, + 10, + 217, + 212, + 176, + 267, + 74, + 107, + 147, + 327, + 91, + 33, + 305, + 151, + 38, + 199, + 325, + 0, + 182, + 122, + 9, + 300, + 235, + 160, + 85, + 317, + 187, + 208, + 56, + 219, + 161, + 70, + 80, + 308, + 31, + 124, + 194, + 316, + 220, + 145, + 154, + 115, + 258, + 271, + 210, + 198, + 310, + 60, + 68, + 234, + 114, + 247, + 62, + 64, + 322, + 283, + 23, + 284, + 203, + 261, + 136, + 294, + 89, + 30, + 211, + 63, + 6, + 20, + 158, + 146, + 53, + 5, + 143, + 117, + 137, + 132, + 138, + 193, + 127, + 280, + 236, + 69, + 39, + 206, + 142, + 46, + 240 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 117, + "any_repeated_entity_fraction": 0.15234375, + "answer_equals_preceding_entity_n": 63, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 189, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 5, + 0, + 7, + 2, + 2, + 6, + 0, + 5, + 3, + 0, + 7, + 5, + 5, + 2, + 0, + 5, + 0, + 6, + 6, + 0, + 7, + 2, + 0, + 0, + 2, + 4, + 3, + 5, + 3, + 4, + 4, + 0, + 6, + 5, + 3, + 0, + 3, + 7, + 0, + 4, + 7, + 4, + 3, + 4, + 0, + 4, + 4, + 6, + 0, + 0, + 5, + 5, + 5, + 0, + 3, + 2, + 0, + 0, + 0, + 4, + 6, + 5, + 0, + 0, + 3, + 0, + 3, + 0, + 0, + 9, + 2, + 6, + 3, + 0, + 2, + 1, + 0, + 3, + 4, + 0, + 0, + 4, + 3, + 4, + 7, + 0, + 4, + 6, + 3, + 7, + 0, + 1, + 3, + 7, + 3, + 3, + 2, + 5, + 7, + 0, + 2, + 8, + 4, + 0, + 6, + 5, + 7, + 7, + 5, + 3, + 3, + 4, + 0, + 0, + 4, + 8, + 4, + 6, + 5, + 3, + 0, + 0, + 5, + 3, + 0, + 2, + 0, + 5, + 5, + 3, + 4, + 0, + 3, + 4, + 1, + 3, + 7, + 0, + 1, + 3, + 4, + 3, + 4, + 5, + 2, + 2, + 4, + 6, + 5, + 3, + 0, + 3, + 4, + 4, + 2, + 2, + 3, + 0, + 4, + 3, + 0, + 0, + 2, + 3, + 5, + 3, + 3, + 4, + 5, + 0, + 4, + 7, + 1, + 4, + 1, + 0, + 2, + 0, + 0, + 0, + 3, + 3, + 2, + 4, + 0, + 5, + 4, + 5, + 0, + 0, + 1, + 1, + 4, + 0, + 0, + 2, + 5, + 3, + 1, + 4, + 1, + 4, + 3, + 0, + 0, + 6, + 3, + 5, + 7, + 3, + 0, + 5, + 2, + 6, + 5, + 0, + 5, + 7, + 0, + 3, + 6, + 0, + 6, + 6, + 5, + 0, + 3, + 0, + 6, + 0, + 0, + 4, + 2, + 4, + 4, + 5, + 2, + 4, + 0, + 1, + 4, + 3, + 4, + 0, + 6, + 2, + 6, + 0, + 4, + 5, + 5, + 5, + 7, + 4 + ], + "id_count_min": 0, + "id_count_max": 9 + }, + { + "hop": 2, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 4, + 0, + 1, + 2, + 0, + 1, + 0, + 6, + 4, + 0, + 8, + 10, + 4, + 3, + 0, + 8, + 0, + 8, + 3, + 0, + 1, + 3, + 0, + 0, + 7, + 11, + 2, + 1, + 1, + 1, + 10, + 0, + 8, + 6, + 5, + 0, + 7, + 7, + 0, + 3, + 3, + 2, + 3, + 2, + 0, + 2, + 1, + 2, + 0, + 0, + 12, + 11, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 4, + 0, + 0, + 4, + 0, + 1, + 0, + 0, + 1, + 0, + 2, + 2, + 0, + 6, + 4, + 0, + 11, + 6, + 0, + 0, + 4, + 5, + 7, + 13, + 0, + 1, + 4, + 3, + 3, + 0, + 7, + 6, + 8, + 2, + 3, + 2, + 4, + 2, + 0, + 4, + 1, + 5, + 0, + 6, + 9, + 2, + 1, + 1, + 2, + 7, + 3, + 1, + 0, + 2, + 2, + 1, + 1, + 5, + 1, + 0, + 0, + 5, + 5, + 0, + 3, + 0, + 1, + 4, + 1, + 3, + 0, + 5, + 4, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 0, + 0, + 3, + 7, + 5, + 6, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 2, + 2, + 2, + 1, + 0, + 3, + 0, + 8, + 9, + 6, + 8, + 3, + 0, + 2, + 0, + 0, + 0, + 4, + 3, + 1, + 3, + 0, + 3, + 5, + 6, + 0, + 0, + 3, + 2, + 4, + 0, + 0, + 6, + 6, + 3, + 10, + 14, + 7, + 15, + 3, + 2, + 0, + 1, + 3, + 4, + 4, + 4, + 0, + 11, + 7, + 8, + 5, + 0, + 5, + 5, + 0, + 1, + 4, + 0, + 2, + 2, + 4, + 0, + 10, + 0, + 9, + 0, + 0, + 9, + 8, + 5, + 3, + 0, + 3, + 4, + 0, + 5, + 1, + 3, + 3, + 0, + 7, + 2, + 5, + 0, + 1, + 5, + 9, + 6, + 6, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 175, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 6, + 5, + 2, + 1, + 0, + 2, + 2, + 0, + 7, + 7, + 5, + 7, + 0, + 7, + 0, + 9, + 3, + 0, + 2, + 2, + 0, + 0, + 7, + 7, + 0, + 0, + 2, + 1, + 5, + 0, + 5, + 5, + 9, + 0, + 8, + 7, + 3, + 3, + 3, + 2, + 2, + 1, + 0, + 2, + 1, + 0, + 0, + 0, + 9, + 5, + 8, + 0, + 4, + 2, + 0, + 0, + 0, + 1, + 0, + 2, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 4, + 3, + 2, + 0, + 6, + 3, + 0, + 5, + 3, + 0, + 0, + 4, + 5, + 10, + 6, + 0, + 3, + 4, + 5, + 7, + 0, + 5, + 9, + 5, + 1, + 2, + 2, + 0, + 1, + 0, + 1, + 4, + 10, + 0, + 8, + 7, + 1, + 2, + 2, + 2, + 2, + 4, + 4, + 0, + 4, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 3, + 1, + 0, + 2, + 0, + 7, + 7, + 8, + 9, + 0, + 6, + 4, + 1, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 3, + 4, + 3, + 6, + 1, + 4, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 16, + 9, + 0, + 0, + 3, + 3, + 4, + 2, + 4, + 3, + 3, + 0, + 10, + 8, + 7, + 8, + 4, + 0, + 4, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 0, + 4, + 5, + 5, + 0, + 0, + 3, + 5, + 3, + 0, + 0, + 5, + 5, + 3, + 14, + 5, + 8, + 6, + 6, + 5, + 0, + 4, + 5, + 2, + 1, + 5, + 0, + 6, + 12, + 7, + 0, + 0, + 1, + 1, + 0, + 2, + 6, + 0, + 2, + 3, + 2, + 0, + 9, + 0, + 5, + 0, + 0, + 5, + 7, + 2, + 6, + 6, + 8, + 8, + 0, + 0, + 1, + 2, + 6, + 0, + 3, + 8, + 1, + 0, + 4, + 4, + 11, + 7, + 8, + 7 + ], + "id_count_min": 0, + "id_count_max": 16 + } + ] + }, + "test_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + }, + "test_full_composite": { + "n": 329, + "any_repeated_entity_n": 62, + "any_repeated_entity_fraction": 0.1884498480243161, + "answer_equals_preceding_entity_n": 37, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 154, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 2, + 0, + 3, + 3, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 1, + 3, + 0, + 0, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 0, + 4, + 4, + 1, + 0, + 1, + 3, + 3, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 2, + 1, + 2, + 3, + 2, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 3, + 1, + 2, + 2, + 0, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 5, + 5, + 2, + 0, + 3, + 0, + 5, + 2, + 0, + 3, + 2, + 2, + 1, + 2, + 5, + 3, + 1, + 0, + 0, + 1, + 0, + 0, + 2, + 2, + 4, + 0, + 4, + 0, + 2, + 1, + 0, + 0, + 2, + 0, + 3, + 1, + 1, + 2, + 0, + 0, + 1, + 1, + 0, + 3, + 0, + 1, + 2, + 4, + 1, + 0, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 3, + 1, + 1, + 0, + 2, + 0, + 1, + 1, + 0, + 3, + 2, + 0, + 1, + 3, + 1, + 1, + 2, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 1, + 2, + 3, + 1, + 2, + 0, + 1, + 0, + 1, + 1, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 2, + 0, + 3, + 0, + 0, + 2, + 4, + 0, + 0, + 2, + 1, + 2, + 0, + 0, + 2, + 0, + 0, + 3, + 4, + 0, + 2, + 1, + 2, + 0, + 2, + 0, + 4, + 3, + 2, + 0, + 2, + 3, + 3, + 1, + 0, + 2, + 2, + 0, + 0, + 3, + 0, + 2, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 1, + 3, + 3, + 2, + 1, + 1, + 0, + 4, + 0, + 1, + 1, + 0, + 3, + 3, + 1, + 0, + 0, + 1, + 5, + 1, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 5 + }, + { + "hop": 2, + "id_edges_covered": 146, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 1, + 2, + 2, + 0, + 0, + 0, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 4, + 4, + 0, + 0, + 0, + 2, + 2, + 0, + 3, + 0, + 3, + 0, + 4, + 5, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 4, + 5, + 5, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0, + 3, + 1, + 0, + 5, + 3, + 0, + 0, + 1, + 6, + 9, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 1, + 4, + 5, + 1, + 1, + 2, + 2, + 1, + 0, + 0, + 2, + 2, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 1, + 0, + 1, + 3, + 2, + 2, + 0, + 1, + 2, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 2, + 4, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 6, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 3, + 1, + 0, + 3, + 4, + 1, + 2, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 2, + 3, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 4, + 10, + 2, + 3, + 1, + 0, + 0, + 5, + 4, + 2, + 4, + 0, + 0, + 2, + 3, + 3, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 3, + 1, + 1, + 0, + 7, + 0, + 1, + 0, + 0, + 1, + 3, + 4, + 1, + 3, + 2, + 3, + 0, + 0, + 1, + 1, + 3, + 0, + 2, + 3, + 2, + 0, + 1, + 0, + 4, + 4, + 1, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 3, + "id_edges_covered": 148, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 2, + 2, + 3, + 3, + 0, + 1, + 1, + 0, + 1, + 0, + 1, + 2, + 0, + 2, + 0, + 3, + 1, + 0, + 0, + 3, + 0, + 0, + 7, + 5, + 1, + 0, + 0, + 0, + 4, + 0, + 3, + 4, + 2, + 0, + 8, + 4, + 0, + 1, + 0, + 0, + 0, + 2, + 0, + 1, + 0, + 0, + 0, + 0, + 3, + 3, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 2, + 0, + 2, + 4, + 0, + 2, + 5, + 0, + 0, + 3, + 6, + 1, + 4, + 0, + 1, + 3, + 2, + 2, + 0, + 2, + 0, + 4, + 1, + 1, + 2, + 1, + 2, + 0, + 0, + 0, + 1, + 0, + 4, + 4, + 1, + 1, + 1, + 0, + 1, + 3, + 1, + 0, + 0, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 0, + 1, + 0, + 2, + 4, + 1, + 1, + 0, + 2, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 0, + 2, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 1, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 1, + 1, + 2, + 0, + 4, + 5, + 4, + 2, + 2, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 3, + 0, + 0, + 0, + 2, + 0, + 3, + 4, + 3, + 3, + 1, + 3, + 0, + 1, + 4, + 3, + 4, + 3, + 0, + 2, + 2, + 4, + 2, + 0, + 1, + 1, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 0, + 1, + 0, + 2, + 0, + 0, + 3, + 1, + 2, + 2, + 4, + 4, + 3, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 2, + 3, + 0, + 1, + 2, + 1, + 2, + 1, + 3 + ], + "id_count_min": 0, + "id_count_max": 8 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 192, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 6, + 0, + 12, + 0, + 14, + 9, + 4, + 8, + 0, + 13, + 9, + 0, + 22, + 22, + 14, + 12, + 0, + 20, + 0, + 23, + 12, + 0, + 10, + 7, + 0, + 0, + 16, + 22, + 5, + 6, + 6, + 6, + 19, + 0, + 19, + 16, + 17, + 0, + 18, + 21, + 3, + 10, + 13, + 8, + 8, + 7, + 0, + 8, + 6, + 8, + 0, + 0, + 26, + 21, + 18, + 0, + 8, + 4, + 0, + 0, + 0, + 8, + 10, + 11, + 0, + 0, + 9, + 0, + 5, + 0, + 0, + 12, + 6, + 11, + 7, + 0, + 14, + 8, + 0, + 19, + 13, + 0, + 0, + 12, + 13, + 21, + 26, + 0, + 8, + 14, + 11, + 17, + 0, + 13, + 18, + 20, + 6, + 8, + 6, + 9, + 10, + 0, + 7, + 13, + 19, + 0, + 20, + 21, + 10, + 10, + 8, + 7, + 12, + 11, + 5, + 0, + 10, + 11, + 7, + 8, + 12, + 4, + 0, + 0, + 13, + 9, + 0, + 7, + 0, + 13, + 16, + 12, + 16, + 0, + 14, + 12, + 3, + 8, + 9, + 0, + 1, + 3, + 4, + 3, + 14, + 13, + 5, + 6, + 10, + 19, + 11, + 13, + 0, + 4, + 6, + 5, + 2, + 2, + 3, + 0, + 27, + 19, + 0, + 0, + 7, + 8, + 11, + 7, + 8, + 7, + 11, + 0, + 22, + 24, + 14, + 20, + 8, + 0, + 8, + 0, + 0, + 0, + 9, + 7, + 5, + 9, + 0, + 12, + 14, + 16, + 0, + 0, + 7, + 8, + 11, + 0, + 0, + 13, + 16, + 9, + 25, + 23, + 16, + 25, + 12, + 7, + 0, + 11, + 11, + 11, + 12, + 12, + 0, + 22, + 21, + 21, + 10, + 0, + 11, + 13, + 0, + 6, + 16, + 0, + 10, + 11, + 11, + 0, + 22, + 0, + 20, + 0, + 0, + 18, + 17, + 11, + 13, + 11, + 13, + 16, + 0, + 6, + 6, + 8, + 13, + 0, + 16, + 12, + 12, + 0, + 9, + 14, + 25, + 18, + 21, + 17 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.75, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.0234375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 192, + "any_relevant_fact_in_composite_training_n": 192, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.026041666666666668, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 189, + 177, + 175 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 43, + "fraction": 0.055989583333333336, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.055989583333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10807291666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10807291666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.1640625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.1640625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.23177083333333334, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23177083333333334, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 65, + 66, + 66, + 66, + 16 + ], + [ + 5, + 66, + 66, + 66, + 5 + ] + ] + } + ] + }, + "test_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 54, + 69, + 68, + 66, + 8 + ], + [ + 65, + 68, + 67, + 66, + 25 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 11, + 67, + 66, + 66, + 45 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 329, + "unique_relevant_atomic_facts": 187, + "relevant_atomic_fact_coverage_of_graph": 0.73046875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 329, + "any_relevant_fact_in_composite_training_n": 329, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 329, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 154, + 146, + 148 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 19, + "fraction": 0.057750759878419454, + "distinct_targets": 59 + }, + "train_composite_majority_tail_fraction": 0.02127659574468085, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.11550151975683891, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.11550151975683891, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 69, + 69, + 66, + 42 + ], + [ + 4, + 69, + 67, + 66, + 59 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.182370820668693, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.182370820668693, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 67, + 66, + 66, + 45 + ], + [ + 12, + 69, + 66, + 66, + 16 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.3161094224924012, + "single_target_group_query_fraction": 0.00911854103343465, + "singleton_group_query_fraction": 0.00911854103343465, + "multi_query_groups": 61, + "multi_query_coverage_fraction": 0.9908814589665653, + "multi_query_empirical_modal_target_fraction": 0.3098159509202454, + "multi_target_groups": 61, + "same_suffix_different_target_example": [ + [ + 29, + 66, + 66, + 66, + 10 + ], + [ + 62, + 66, + 66, + 66, + 42 + ] + ] + } + ] + }, + "ood_composite": { + "n": 59, + "unique_relevant_atomic_facts": 51, + "relevant_atomic_fact_coverage_of_graph": 0.19921875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 59, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 41, + 30, + 31 + ], + "within_split_majority_tail": { + "target_token": 60, + "count": 6, + "fraction": 0.1016949152542373, + "distinct_targets": 25 + }, + "train_composite_majority_tail_fraction": 0.03389830508474576, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.23728813559322035, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.23728813559322035, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 8, + 67, + 69, + 66, + 40 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.5423728813559322, + "single_target_group_query_fraction": 0.1016949152542373, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.5423728813559322, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 6, + 67, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 39, + "empirical_modal_target_fraction": 0.7288135593220338, + "single_target_group_query_fraction": 0.4745762711864407, + "singleton_group_query_fraction": 0.4067796610169492, + "multi_query_groups": 15, + "multi_query_coverage_fraction": 0.5932203389830508, + "multi_query_empirical_modal_target_fraction": 0.5428571428571428, + "multi_target_groups": 13, + "same_suffix_different_target_example": [ + [ + 13, + 66, + 66, + 66, + 13 + ], + [ + 18, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "unused_composite": { + "n": 609, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 609, + "any_relevant_fact_in_composite_training_n": 609, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 609, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 186, + 172, + 174 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 26, + "fraction": 0.042692939244663386, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03940886699507389, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07717569786535304, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07717569786535304, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 69, + 67, + 66, + 52 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14614121510673234, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14614121510673234, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 66, + 66, + 34 + ], + [ + 3, + 67, + 66, + 66, + 55 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.22660098522167488, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.22660098522167488, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 66, + 66, + 10 + ], + [ + 6, + 66, + 66, + 66, + 60 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + }, + "4": { + "seed": 751011, + "entities": 64, + "relations": 4, + "degree": 4, + "phi_requested": 4.0, + "id_fraction": 0.75, + "id_test_fraction": 0.2, + "pad_token": 0, + "eos_token": 1, + "entity_offset": 2, + "relation_offset": 66, + "vocab_size": 70, + "train_composite_requested": 768, + "train_composite_capped": false, + "phi_actual": 4.0, + "mixed_composite_excluded": 11180, + "source_url": "https://github.com/OSU-NLP-Group/GrokkedTransformer", + "source_commit": "734ca654ec7a71dd6737d640407fac14491d538c", + "source_file": "composition.ipynb", + "source_license": "MIT", + "construction_differences": [ + "same graph and atomic split as historical two-hop constructor", + "enumerated target length 2/3/4; only one length enters a run", + "fresh deterministic complete-path reserve and phi downsampling", + "fixed test probe at every node; entire reserve evaluated at endpoint" + ], + "counts": { + "atomic": 256, + "id_atomic": 192, + "ood_atomic": 64, + "train_composite": 768, + "test_composite": 512, + "test_full_composite": 1025, + "ood_composite": 53, + "unused_composite": 3358 + }, + "dataset_sha256": "11ec0124d665d8362ddc331d5c39bc251f7cada4bc5263b5524390fbb9319e85", + "warnings": [], + "hops": 4, + "task": "all atomic facts plus one target composition length", + "id_paths_total": 5151, + "all_paths_total": 16384, + "training_fraction_of_id_paths": 0.14909726266744322, + "training_fraction_of_nonreserved_id_paths": 0.1861366941347552, + "evaluation_size_requested": 512, + "probe_indices_in_full_test": [ + 560, + 766, + 474, + 184, + 609, + 39, + 576, + 63, + 547, + 821, + 853, + 222, + 688, + 718, + 268, + 448, + 856, + 266, + 593, + 433, + 505, + 736, + 138, + 300, + 982, + 250, + 165, + 817, + 112, + 984, + 545, + 654, + 773, + 700, + 312, + 651, + 154, + 297, + 224, + 639, + 16, + 411, + 440, + 225, + 825, + 972, + 709, + 355, + 903, + 846, + 10, + 353, + 449, + 498, + 782, + 803, + 106, + 85, + 810, + 528, + 58, + 194, + 514, + 488, + 289, + 789, + 424, + 889, + 1014, + 877, + 417, + 4, + 691, + 597, + 81, + 412, + 401, + 635, + 331, + 199, + 115, + 341, + 743, + 447, + 288, + 965, + 950, + 21, + 507, + 399, + 519, + 414, + 953, + 403, + 834, + 619, + 486, + 379, + 347, + 969, + 974, + 952, + 568, + 30, + 337, + 882, + 722, + 955, + 506, + 831, + 359, + 418, + 454, + 105, + 516, + 157, + 109, + 940, + 228, + 95, + 145, + 642, + 543, + 787, + 124, + 243, + 996, + 1007, + 464, + 571, + 721, + 921, + 745, + 340, + 710, + 634, + 253, + 947, + 838, + 986, + 520, + 442, + 841, + 429, + 948, + 126, + 605, + 744, + 922, + 181, + 1004, + 958, + 544, + 192, + 1016, + 75, + 430, + 247, + 238, + 649, + 800, + 600, + 103, + 76, + 352, + 827, + 296, + 606, + 369, + 441, + 842, + 848, + 357, + 406, + 670, + 416, + 293, + 677, + 973, + 910, + 264, + 434, + 196, + 113, + 149, + 515, + 939, + 808, + 131, + 871, + 720, + 478, + 586, + 936, + 906, + 432, + 724, + 822, + 160, + 933, + 62, + 561, + 633, + 824, + 407, + 226, + 33, + 248, + 680, + 804, + 740, + 208, + 167, + 214, + 476, + 233, + 302, + 292, + 220, + 6, + 750, + 189, + 503, + 90, + 91, + 914, + 937, + 93, + 187, + 366, + 951, + 373, + 18, + 695, + 203, + 310, + 625, + 398, + 339, + 241, + 556, + 570, + 812, + 944, + 14, + 562, + 327, + 667, + 303, + 100, + 173, + 623, + 860, + 781, + 283, + 924, + 1000, + 180, + 899, + 767, + 523, + 125, + 316, + 564, + 1, + 536, + 726, + 786, + 930, + 168, + 546, + 360, + 957, + 741, + 935, + 971, + 332, + 481, + 703, + 136, + 445, + 162, + 590, + 111, + 38, + 326, + 190, + 342, + 72, + 541, + 487, + 524, + 278, + 764, + 174, + 646, + 757, + 946, + 270, + 102, + 761, + 141, + 799, + 28, + 919, + 601, + 86, + 183, + 47, + 675, + 885, + 956, + 836, + 218, + 335, + 307, + 317, + 37, + 596, + 120, + 648, + 1003, + 702, + 291, + 96, + 839, + 943, + 807, + 9, + 32, + 828, + 732, + 542, + 36, + 908, + 855, + 279, + 538, + 768, + 754, + 587, + 987, + 142, + 598, + 287, + 678, + 880, + 589, + 71, + 370, + 469, + 473, + 553, + 143, + 427, + 404, + 391, + 286, + 869, + 928, + 621, + 462, + 338, + 133, + 52, + 525, + 857, + 334, + 477, + 41, + 423, + 615, + 459, + 784, + 508, + 826, + 815, + 567, + 79, + 656, + 261, + 329, + 219, + 620, + 415, + 636, + 832, + 756, + 27, + 425, + 663, + 309, + 734, + 867, + 497, + 169, + 659, + 932, + 452, + 193, + 475, + 118, + 495, + 176, + 161, + 275, + 44, + 992, + 466, + 1001, + 989, + 428, + 212, + 668, + 8, + 792, + 381, + 696, + 467, + 911, + 172, + 22, + 153, + 660, + 13, + 613, + 849, + 319, + 74, + 299, + 758, + 276, + 833, + 387, + 19, + 993, + 376, + 368, + 594, + 708, + 684, + 727, + 130, + 693, + 237, + 402, + 595, + 728, + 107, + 114, + 540, + 256, + 345, + 83, + 156, + 669, + 210, + 731, + 150, + 627, + 419, + 1024, + 51, + 491, + 672, + 874, + 762, + 797, + 844, + 585, + 938, + 980, + 901, + 273, + 470, + 554, + 121, + 671, + 60, + 915, + 351, + 909, + 61, + 321, + 479, + 284, + 492, + 674, + 765, + 178, + 875, + 348, + 661, + 234, + 249, + 723, + 1020, + 259, + 629, + 236, + 117, + 305, + 673, + 582, + 422, + 611, + 861, + 483, + 413, + 377, + 97, + 999 + ], + "split_rng": "default_rng(SeedSequence([world_seed,hops,144001]))", + "probe_rng": "default_rng(SeedSequence([world_seed,hops,144002]))", + "diagnostics": { + "train_composite": { + "n": 768, + "any_repeated_entity_n": 194, + "any_repeated_entity_fraction": 0.2526041666666667, + "answer_equals_preceding_entity_n": 84, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 184, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 0, + 0, + 3, + 0, + 6, + 3, + 0, + 3, + 0, + 3, + 4, + 0, + 7, + 10, + 0, + 3, + 0, + 6, + 0, + 5, + 3, + 0, + 6, + 4, + 0, + 0, + 4, + 7, + 2, + 4, + 3, + 2, + 5, + 0, + 4, + 6, + 1, + 0, + 7, + 6, + 3, + 3, + 6, + 6, + 6, + 4, + 0, + 1, + 3, + 3, + 0, + 0, + 5, + 6, + 4, + 0, + 1, + 1, + 0, + 0, + 0, + 4, + 6, + 7, + 0, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 1, + 3, + 4, + 0, + 3, + 1, + 0, + 4, + 3, + 0, + 0, + 0, + 6, + 6, + 10, + 0, + 5, + 6, + 5, + 5, + 0, + 4, + 5, + 5, + 5, + 1, + 5, + 4, + 4, + 0, + 0, + 2, + 2, + 0, + 4, + 3, + 3, + 4, + 4, + 4, + 3, + 6, + 1, + 0, + 4, + 7, + 5, + 6, + 2, + 4, + 0, + 0, + 5, + 1, + 0, + 3, + 0, + 4, + 6, + 3, + 1, + 0, + 4, + 5, + 1, + 2, + 7, + 0, + 0, + 3, + 6, + 1, + 3, + 4, + 0, + 0, + 4, + 2, + 4, + 3, + 0, + 2, + 6, + 5, + 4, + 4, + 7, + 0, + 1, + 1, + 0, + 0, + 2, + 2, + 4, + 2, + 4, + 4, + 4, + 0, + 3, + 8, + 1, + 3, + 7, + 0, + 3, + 0, + 0, + 0, + 5, + 5, + 3, + 5, + 0, + 6, + 9, + 11, + 0, + 0, + 2, + 1, + 7, + 0, + 0, + 2, + 2, + 6, + 6, + 3, + 5, + 7, + 3, + 3, + 0, + 5, + 5, + 5, + 7, + 3, + 0, + 2, + 3, + 5, + 8, + 0, + 8, + 7, + 0, + 3, + 7, + 0, + 4, + 3, + 6, + 0, + 4, + 0, + 3, + 0, + 0, + 3, + 7, + 3, + 8, + 3, + 4, + 1, + 0, + 3, + 2, + 2, + 3, + 0, + 4, + 2, + 4, + 0, + 4, + 8, + 8, + 8, + 3, + 5 + ], + "id_count_min": 0, + "id_count_max": 11 + }, + { + "hop": 2, + "id_edges_covered": 173, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 4, + 4, + 0, + 9, + 7, + 6, + 2, + 0, + 5, + 0, + 7, + 3, + 0, + 4, + 3, + 0, + 0, + 6, + 7, + 1, + 1, + 0, + 2, + 9, + 0, + 4, + 6, + 4, + 0, + 5, + 7, + 1, + 3, + 3, + 3, + 2, + 3, + 0, + 1, + 2, + 2, + 0, + 0, + 14, + 9, + 6, + 0, + 1, + 0, + 0, + 0, + 0, + 5, + 4, + 2, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 3, + 2, + 2, + 2, + 0, + 5, + 3, + 0, + 13, + 5, + 0, + 0, + 4, + 10, + 9, + 15, + 0, + 3, + 4, + 2, + 2, + 0, + 8, + 5, + 3, + 1, + 2, + 4, + 5, + 3, + 0, + 1, + 5, + 8, + 0, + 8, + 4, + 0, + 1, + 0, + 1, + 6, + 3, + 2, + 0, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 0, + 7, + 5, + 0, + 3, + 0, + 3, + 5, + 3, + 4, + 0, + 2, + 4, + 0, + 1, + 2, + 0, + 0, + 0, + 0, + 0, + 4, + 3, + 1, + 0, + 3, + 8, + 3, + 5, + 0, + 1, + 2, + 1, + 0, + 0, + 0, + 0, + 8, + 6, + 0, + 0, + 3, + 1, + 4, + 0, + 1, + 1, + 4, + 0, + 9, + 14, + 0, + 10, + 3, + 0, + 3, + 0, + 0, + 0, + 9, + 2, + 1, + 6, + 0, + 2, + 2, + 5, + 0, + 0, + 2, + 2, + 2, + 0, + 0, + 4, + 5, + 6, + 12, + 8, + 9, + 9, + 2, + 6, + 0, + 7, + 1, + 5, + 5, + 3, + 0, + 4, + 11, + 12, + 1, + 0, + 2, + 5, + 0, + 1, + 0, + 0, + 5, + 2, + 8, + 0, + 11, + 0, + 5, + 0, + 0, + 8, + 8, + 7, + 6, + 5, + 1, + 2, + 0, + 4, + 3, + 4, + 7, + 0, + 7, + 7, + 0, + 0, + 3, + 3, + 7, + 10, + 9, + 12 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 3, + "id_edges_covered": 172, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 4, + 0, + 5, + 2, + 0, + 1, + 0, + 3, + 2, + 0, + 6, + 4, + 3, + 2, + 0, + 9, + 0, + 12, + 6, + 0, + 6, + 3, + 0, + 0, + 7, + 15, + 1, + 0, + 2, + 1, + 7, + 0, + 5, + 5, + 13, + 0, + 8, + 13, + 2, + 3, + 2, + 1, + 1, + 2, + 0, + 1, + 2, + 1, + 0, + 0, + 5, + 7, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 2, + 0, + 2, + 0, + 0, + 1, + 1, + 1, + 3, + 0, + 8, + 2, + 0, + 10, + 3, + 0, + 0, + 2, + 10, + 11, + 3, + 0, + 5, + 8, + 4, + 4, + 0, + 5, + 4, + 5, + 3, + 0, + 1, + 2, + 0, + 0, + 1, + 4, + 4, + 0, + 9, + 8, + 2, + 1, + 3, + 2, + 2, + 1, + 2, + 0, + 1, + 1, + 1, + 1, + 0, + 2, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 7, + 5, + 5, + 0, + 5, + 11, + 1, + 4, + 2, + 0, + 0, + 0, + 0, + 0, + 6, + 5, + 3, + 2, + 4, + 4, + 4, + 3, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 11, + 12, + 0, + 0, + 4, + 5, + 6, + 0, + 4, + 5, + 5, + 0, + 7, + 12, + 6, + 10, + 4, + 0, + 1, + 0, + 0, + 0, + 1, + 5, + 5, + 4, + 0, + 2, + 1, + 5, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 5, + 5, + 5, + 12, + 8, + 7, + 4, + 4, + 7, + 0, + 6, + 4, + 6, + 6, + 3, + 0, + 10, + 6, + 13, + 4, + 0, + 3, + 2, + 0, + 4, + 3, + 0, + 1, + 2, + 2, + 0, + 12, + 0, + 3, + 0, + 0, + 5, + 3, + 2, + 10, + 4, + 6, + 5, + 0, + 1, + 0, + 1, + 6, + 0, + 9, + 4, + 5, + 0, + 2, + 3, + 8, + 7, + 5, + 9 + ], + "id_count_min": 0, + "id_count_max": 15 + }, + { + "hop": 4, + "id_edges_covered": 169, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 2, + 0, + 2, + 2, + 4, + 0, + 0, + 0, + 2, + 0, + 5, + 9, + 2, + 5, + 0, + 6, + 0, + 4, + 3, + 0, + 0, + 2, + 0, + 0, + 10, + 5, + 0, + 3, + 2, + 0, + 5, + 0, + 6, + 9, + 15, + 0, + 12, + 9, + 1, + 1, + 0, + 0, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 6, + 6, + 5, + 0, + 3, + 3, + 0, + 0, + 0, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 1, + 0, + 5, + 6, + 0, + 8, + 8, + 0, + 5, + 6, + 0, + 0, + 6, + 14, + 8, + 5, + 0, + 6, + 2, + 5, + 7, + 0, + 7, + 3, + 8, + 1, + 4, + 1, + 1, + 3, + 0, + 5, + 2, + 6, + 0, + 9, + 8, + 1, + 1, + 1, + 1, + 1, + 4, + 4, + 0, + 1, + 0, + 3, + 1, + 2, + 2, + 0, + 0, + 1, + 4, + 0, + 2, + 0, + 5, + 2, + 4, + 5, + 0, + 6, + 8, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 1, + 2, + 5, + 2, + 6, + 6, + 0, + 0, + 2, + 2, + 0, + 0, + 0, + 0, + 14, + 11, + 0, + 0, + 5, + 5, + 5, + 3, + 2, + 4, + 2, + 0, + 7, + 9, + 7, + 6, + 3, + 0, + 5, + 0, + 0, + 0, + 2, + 5, + 5, + 1, + 0, + 4, + 2, + 1, + 0, + 0, + 6, + 5, + 8, + 0, + 0, + 10, + 2, + 4, + 9, + 10, + 14, + 11, + 7, + 2, + 0, + 5, + 2, + 2, + 2, + 8, + 0, + 8, + 9, + 8, + 2, + 0, + 4, + 4, + 0, + 2, + 2, + 0, + 1, + 1, + 0, + 0, + 9, + 0, + 3, + 0, + 0, + 6, + 7, + 2, + 11, + 5, + 6, + 6, + 0, + 2, + 3, + 0, + 1, + 0, + 6, + 6, + 6, + 0, + 4, + 2, + 5, + 4, + 5, + 6 + ], + "id_count_min": 0, + "id_count_max": 15 + } + ] + }, + "test_composite": { + "n": 512, + "any_repeated_entity_n": 116, + "any_repeated_entity_fraction": 0.2265625, + "answer_equals_preceding_entity_n": 54, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 174, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 3, + 0, + 1, + 2, + 1, + 6, + 0, + 3, + 4, + 0, + 3, + 2, + 5, + 0, + 0, + 4, + 0, + 1, + 2, + 0, + 4, + 2, + 0, + 0, + 3, + 3, + 3, + 0, + 3, + 5, + 4, + 0, + 5, + 2, + 2, + 0, + 2, + 3, + 2, + 3, + 4, + 6, + 3, + 2, + 0, + 5, + 1, + 1, + 0, + 0, + 2, + 5, + 1, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 2, + 4, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 4, + 1, + 3, + 1, + 0, + 2, + 2, + 0, + 3, + 2, + 0, + 0, + 2, + 6, + 4, + 3, + 0, + 2, + 5, + 2, + 3, + 0, + 4, + 7, + 4, + 1, + 3, + 2, + 3, + 3, + 0, + 1, + 2, + 2, + 0, + 5, + 5, + 5, + 5, + 6, + 0, + 5, + 3, + 1, + 0, + 3, + 5, + 6, + 2, + 3, + 1, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 3, + 5, + 4, + 3, + 0, + 5, + 5, + 3, + 5, + 1, + 0, + 0, + 1, + 5, + 1, + 2, + 3, + 2, + 0, + 1, + 5, + 3, + 3, + 0, + 3, + 2, + 1, + 4, + 2, + 4, + 0, + 10, + 3, + 0, + 0, + 1, + 0, + 3, + 2, + 0, + 3, + 3, + 0, + 0, + 3, + 3, + 4, + 2, + 0, + 1, + 0, + 0, + 0, + 4, + 1, + 0, + 1, + 0, + 4, + 7, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 3, + 3, + 2, + 2, + 3, + 1, + 2, + 0, + 3, + 0, + 7, + 4, + 2, + 3, + 1, + 0, + 4, + 2, + 2, + 3, + 0, + 4, + 1, + 0, + 0, + 0, + 0, + 3, + 4, + 1, + 0, + 2, + 0, + 1, + 0, + 0, + 2, + 3, + 4, + 5, + 4, + 0, + 5, + 0, + 2, + 1, + 1, + 3, + 0, + 4, + 3, + 7, + 0, + 0, + 2, + 1, + 2, + 0, + 2 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 2, + "id_edges_covered": 155, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 0, + 2, + 2, + 0, + 4, + 7, + 2, + 2, + 0, + 7, + 0, + 7, + 2, + 0, + 2, + 1, + 0, + 0, + 6, + 3, + 0, + 2, + 0, + 1, + 5, + 0, + 5, + 2, + 3, + 0, + 7, + 13, + 2, + 2, + 2, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 9, + 9, + 3, + 0, + 1, + 2, + 0, + 0, + 0, + 3, + 2, + 3, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 2, + 0, + 3, + 0, + 0, + 5, + 1, + 0, + 6, + 1, + 0, + 0, + 0, + 5, + 7, + 6, + 0, + 0, + 2, + 4, + 1, + 0, + 2, + 3, + 7, + 2, + 4, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 0, + 2, + 7, + 2, + 1, + 2, + 0, + 3, + 0, + 7, + 0, + 2, + 0, + 2, + 1, + 0, + 1, + 0, + 0, + 4, + 2, + 0, + 7, + 0, + 2, + 3, + 0, + 5, + 0, + 3, + 4, + 2, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 2, + 1, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 12, + 2, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 1, + 3, + 0, + 1, + 3, + 2, + 7, + 3, + 0, + 0, + 0, + 0, + 0, + 2, + 1, + 2, + 1, + 0, + 3, + 1, + 0, + 0, + 0, + 2, + 1, + 4, + 0, + 0, + 3, + 7, + 2, + 10, + 12, + 3, + 7, + 2, + 0, + 0, + 4, + 4, + 2, + 3, + 1, + 0, + 5, + 2, + 6, + 2, + 0, + 3, + 1, + 0, + 2, + 2, + 0, + 4, + 6, + 3, + 0, + 6, + 0, + 5, + 0, + 0, + 4, + 6, + 4, + 3, + 1, + 2, + 3, + 0, + 2, + 2, + 0, + 2, + 0, + 4, + 4, + 4, + 0, + 2, + 5, + 6, + 9, + 3, + 2 + ], + "id_count_min": 0, + "id_count_max": 13 + }, + { + "hop": 3, + "id_edges_covered": 156, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 1, + 0, + 2, + 2, + 3, + 5, + 0, + 2, + 0, + 0, + 4, + 3, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 0, + 0, + 0, + 0, + 0, + 7, + 9, + 0, + 2, + 0, + 1, + 4, + 0, + 6, + 3, + 8, + 0, + 6, + 9, + 0, + 1, + 2, + 3, + 3, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 7, + 4, + 3, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 2, + 2, + 1, + 0, + 5, + 1, + 0, + 4, + 4, + 0, + 0, + 5, + 4, + 3, + 4, + 0, + 5, + 4, + 2, + 4, + 0, + 4, + 2, + 6, + 1, + 1, + 3, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 7, + 4, + 1, + 0, + 0, + 1, + 3, + 2, + 1, + 0, + 0, + 1, + 2, + 2, + 1, + 2, + 0, + 0, + 5, + 1, + 0, + 2, + 0, + 3, + 7, + 3, + 6, + 0, + 4, + 1, + 1, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 1, + 6, + 1, + 2, + 4, + 4, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 5, + 3, + 0, + 0, + 2, + 2, + 3, + 2, + 3, + 1, + 5, + 0, + 4, + 9, + 2, + 6, + 6, + 0, + 4, + 0, + 0, + 0, + 1, + 3, + 1, + 0, + 0, + 0, + 5, + 2, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 2, + 2, + 8, + 3, + 5, + 4, + 3, + 5, + 0, + 2, + 3, + 4, + 3, + 3, + 0, + 9, + 6, + 10, + 1, + 0, + 1, + 2, + 0, + 0, + 1, + 0, + 1, + 1, + 2, + 0, + 6, + 0, + 0, + 0, + 0, + 8, + 6, + 6, + 3, + 2, + 2, + 5, + 0, + 0, + 2, + 0, + 3, + 0, + 5, + 2, + 2, + 0, + 1, + 2, + 5, + 6, + 6, + 4 + ], + "id_count_min": 0, + "id_count_max": 10 + }, + { + "hop": 4, + "id_edges_covered": 164, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 2, + 0, + 1, + 0, + 1, + 0, + 0, + 2, + 0, + 1, + 2, + 0, + 3, + 2, + 6, + 4, + 0, + 4, + 0, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 4, + 5, + 2, + 1, + 1, + 1, + 2, + 0, + 5, + 3, + 4, + 0, + 4, + 10, + 1, + 1, + 1, + 1, + 1, + 3, + 0, + 2, + 1, + 1, + 0, + 0, + 2, + 4, + 4, + 0, + 0, + 2, + 0, + 0, + 0, + 2, + 1, + 1, + 0, + 0, + 4, + 0, + 0, + 0, + 0, + 0, + 4, + 0, + 2, + 0, + 6, + 1, + 0, + 6, + 2, + 0, + 0, + 7, + 4, + 8, + 9, + 0, + 4, + 6, + 1, + 3, + 0, + 4, + 3, + 4, + 3, + 1, + 0, + 1, + 5, + 0, + 3, + 1, + 5, + 0, + 4, + 7, + 1, + 1, + 0, + 2, + 1, + 3, + 1, + 0, + 1, + 2, + 2, + 1, + 1, + 0, + 0, + 0, + 2, + 2, + 0, + 2, + 0, + 2, + 5, + 4, + 7, + 0, + 3, + 3, + 2, + 3, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 4, + 2, + 2, + 1, + 3, + 5, + 2, + 0, + 1, + 0, + 2, + 0, + 0, + 0, + 0, + 4, + 8, + 0, + 0, + 0, + 2, + 4, + 3, + 2, + 2, + 4, + 0, + 5, + 1, + 9, + 9, + 3, + 0, + 1, + 0, + 0, + 0, + 1, + 1, + 4, + 3, + 0, + 2, + 2, + 0, + 0, + 0, + 4, + 3, + 2, + 0, + 0, + 2, + 3, + 6, + 9, + 4, + 7, + 2, + 6, + 4, + 0, + 5, + 1, + 2, + 1, + 0, + 0, + 7, + 5, + 5, + 0, + 0, + 0, + 0, + 0, + 5, + 1, + 0, + 4, + 3, + 1, + 0, + 2, + 0, + 3, + 0, + 0, + 3, + 2, + 1, + 5, + 4, + 6, + 4, + 0, + 0, + 0, + 2, + 5, + 0, + 3, + 4, + 3, + 0, + 2, + 3, + 6, + 3, + 5, + 1 + ], + "id_count_min": 0, + "id_count_max": 10 + } + ] + }, + "test_full_composite": { + "n": 1025, + "any_repeated_entity_n": 243, + "any_repeated_entity_fraction": 0.2370731707317073, + "answer_equals_preceding_entity_n": 116, + "edge_positions": [ + { + "hop": 1, + "id_edges_covered": 187, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 5, + 0, + 5, + 0, + 2, + 4, + 2, + 12, + 0, + 6, + 5, + 0, + 8, + 8, + 8, + 3, + 0, + 8, + 0, + 2, + 4, + 0, + 9, + 3, + 0, + 0, + 5, + 5, + 4, + 0, + 5, + 7, + 6, + 0, + 11, + 5, + 3, + 0, + 5, + 6, + 4, + 3, + 7, + 11, + 4, + 5, + 0, + 7, + 3, + 4, + 0, + 0, + 7, + 10, + 2, + 0, + 2, + 1, + 0, + 0, + 0, + 2, + 6, + 6, + 0, + 0, + 1, + 0, + 5, + 0, + 0, + 7, + 1, + 9, + 3, + 0, + 4, + 4, + 0, + 5, + 5, + 0, + 0, + 3, + 8, + 6, + 6, + 0, + 3, + 10, + 7, + 5, + 0, + 6, + 10, + 7, + 2, + 8, + 4, + 6, + 6, + 0, + 5, + 9, + 6, + 0, + 6, + 8, + 7, + 6, + 10, + 0, + 10, + 6, + 5, + 0, + 7, + 8, + 6, + 5, + 5, + 2, + 0, + 0, + 5, + 5, + 0, + 4, + 0, + 5, + 11, + 7, + 12, + 0, + 5, + 14, + 4, + 8, + 6, + 0, + 2, + 5, + 6, + 3, + 2, + 4, + 4, + 0, + 2, + 13, + 3, + 7, + 0, + 6, + 3, + 4, + 9, + 5, + 7, + 0, + 13, + 5, + 0, + 0, + 6, + 0, + 7, + 3, + 3, + 7, + 5, + 0, + 3, + 7, + 4, + 6, + 4, + 0, + 4, + 0, + 0, + 0, + 5, + 4, + 1, + 3, + 0, + 6, + 12, + 5, + 0, + 0, + 4, + 1, + 3, + 0, + 0, + 5, + 9, + 3, + 5, + 6, + 2, + 6, + 1, + 4, + 0, + 9, + 6, + 4, + 5, + 2, + 0, + 7, + 6, + 7, + 6, + 0, + 9, + 4, + 0, + 3, + 6, + 0, + 6, + 6, + 2, + 0, + 3, + 0, + 5, + 0, + 0, + 2, + 8, + 6, + 7, + 5, + 1, + 6, + 0, + 2, + 2, + 9, + 4, + 0, + 11, + 4, + 14, + 0, + 0, + 3, + 7, + 5, + 2, + 6 + ], + "id_count_min": 0, + "id_count_max": 14 + }, + { + "hop": 2, + "id_edges_covered": 179, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 3, + 0, + 1, + 2, + 1, + 2, + 0, + 5, + 3, + 0, + 10, + 10, + 5, + 4, + 0, + 13, + 0, + 12, + 2, + 0, + 4, + 2, + 0, + 0, + 11, + 9, + 1, + 2, + 0, + 2, + 10, + 0, + 7, + 5, + 9, + 0, + 9, + 21, + 4, + 3, + 3, + 6, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 0, + 12, + 19, + 8, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 4, + 3, + 0, + 0, + 5, + 0, + 0, + 0, + 0, + 3, + 0, + 4, + 2, + 0, + 10, + 2, + 0, + 11, + 3, + 0, + 0, + 4, + 10, + 11, + 10, + 0, + 2, + 6, + 7, + 2, + 0, + 7, + 7, + 12, + 2, + 5, + 2, + 2, + 3, + 0, + 3, + 2, + 2, + 0, + 5, + 13, + 5, + 2, + 4, + 2, + 4, + 3, + 10, + 0, + 5, + 0, + 3, + 3, + 3, + 2, + 0, + 0, + 17, + 4, + 0, + 11, + 0, + 4, + 4, + 3, + 6, + 0, + 8, + 7, + 4, + 0, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 3, + 4, + 2, + 4, + 5, + 1, + 8, + 0, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 20, + 5, + 0, + 0, + 2, + 2, + 5, + 1, + 2, + 2, + 6, + 0, + 8, + 7, + 3, + 12, + 7, + 0, + 7, + 0, + 0, + 0, + 3, + 4, + 3, + 4, + 0, + 7, + 4, + 1, + 0, + 0, + 2, + 4, + 6, + 0, + 0, + 3, + 9, + 3, + 15, + 28, + 5, + 20, + 4, + 1, + 0, + 8, + 6, + 3, + 6, + 3, + 0, + 14, + 7, + 10, + 6, + 0, + 9, + 3, + 0, + 3, + 4, + 0, + 9, + 9, + 5, + 0, + 15, + 0, + 11, + 0, + 0, + 8, + 10, + 9, + 7, + 2, + 3, + 5, + 0, + 5, + 4, + 1, + 7, + 0, + 9, + 4, + 6, + 0, + 2, + 6, + 14, + 12, + 13, + 5 + ], + "id_count_min": 0, + "id_count_max": 28 + }, + { + "hop": 3, + "id_edges_covered": 177, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 1, + 0, + 3, + 0, + 8, + 5, + 4, + 11, + 0, + 5, + 2, + 0, + 9, + 12, + 6, + 3, + 0, + 5, + 0, + 8, + 5, + 0, + 1, + 1, + 0, + 0, + 14, + 13, + 0, + 2, + 2, + 2, + 6, + 0, + 10, + 9, + 14, + 0, + 14, + 17, + 1, + 1, + 2, + 3, + 4, + 1, + 0, + 1, + 1, + 1, + 0, + 0, + 13, + 9, + 8, + 0, + 2, + 1, + 0, + 0, + 0, + 0, + 1, + 1, + 0, + 0, + 5, + 0, + 1, + 0, + 0, + 1, + 2, + 2, + 2, + 0, + 8, + 4, + 0, + 10, + 7, + 0, + 0, + 7, + 8, + 6, + 11, + 0, + 8, + 9, + 5, + 7, + 0, + 10, + 5, + 12, + 3, + 2, + 4, + 0, + 6, + 0, + 1, + 3, + 4, + 0, + 10, + 10, + 1, + 0, + 3, + 1, + 3, + 6, + 2, + 0, + 0, + 3, + 2, + 2, + 1, + 3, + 0, + 0, + 8, + 2, + 0, + 3, + 0, + 12, + 13, + 6, + 10, + 0, + 7, + 4, + 2, + 1, + 6, + 0, + 0, + 0, + 0, + 0, + 2, + 6, + 1, + 4, + 5, + 5, + 5, + 10, + 0, + 0, + 1, + 1, + 0, + 0, + 0, + 0, + 14, + 4, + 0, + 0, + 3, + 5, + 7, + 5, + 8, + 2, + 8, + 0, + 11, + 15, + 4, + 11, + 8, + 0, + 9, + 0, + 0, + 0, + 5, + 3, + 1, + 2, + 0, + 1, + 7, + 6, + 0, + 0, + 5, + 2, + 7, + 0, + 0, + 5, + 7, + 5, + 14, + 9, + 11, + 10, + 5, + 10, + 0, + 8, + 6, + 7, + 5, + 4, + 0, + 19, + 14, + 16, + 1, + 0, + 1, + 4, + 0, + 2, + 4, + 0, + 3, + 4, + 3, + 0, + 10, + 0, + 3, + 0, + 0, + 10, + 8, + 10, + 4, + 6, + 6, + 12, + 0, + 0, + 2, + 0, + 6, + 0, + 10, + 2, + 6, + 0, + 1, + 6, + 10, + 11, + 9, + 7 + ], + "id_count_min": 0, + "id_count_max": 19 + }, + { + "hop": 4, + "id_edges_covered": 181, + "id_edges_total": 192, + "counts_per_atomic_edge": [ + 3, + 0, + 1, + 0, + 4, + 0, + 1, + 4, + 0, + 1, + 2, + 0, + 8, + 6, + 10, + 8, + 0, + 10, + 0, + 8, + 1, + 0, + 2, + 4, + 0, + 0, + 7, + 8, + 3, + 1, + 1, + 3, + 5, + 0, + 11, + 7, + 10, + 0, + 11, + 17, + 1, + 1, + 1, + 1, + 1, + 4, + 0, + 5, + 1, + 2, + 0, + 0, + 7, + 11, + 6, + 0, + 1, + 3, + 0, + 0, + 0, + 4, + 1, + 2, + 0, + 0, + 6, + 0, + 0, + 0, + 0, + 1, + 6, + 2, + 3, + 0, + 14, + 11, + 0, + 11, + 6, + 0, + 0, + 10, + 7, + 12, + 12, + 0, + 5, + 10, + 6, + 4, + 0, + 9, + 8, + 8, + 5, + 1, + 0, + 1, + 6, + 0, + 5, + 4, + 14, + 0, + 12, + 12, + 1, + 1, + 1, + 2, + 5, + 6, + 2, + 0, + 2, + 4, + 3, + 1, + 3, + 1, + 0, + 0, + 3, + 4, + 0, + 4, + 0, + 5, + 12, + 7, + 14, + 0, + 8, + 5, + 5, + 3, + 2, + 0, + 0, + 0, + 0, + 0, + 2, + 4, + 5, + 3, + 4, + 10, + 7, + 3, + 0, + 4, + 1, + 3, + 0, + 0, + 0, + 0, + 9, + 15, + 0, + 0, + 3, + 4, + 5, + 5, + 6, + 4, + 7, + 0, + 8, + 8, + 12, + 14, + 3, + 0, + 3, + 0, + 0, + 0, + 3, + 1, + 7, + 6, + 0, + 4, + 3, + 2, + 0, + 0, + 9, + 6, + 5, + 0, + 0, + 2, + 4, + 8, + 16, + 10, + 15, + 9, + 10, + 8, + 0, + 9, + 3, + 3, + 2, + 1, + 0, + 14, + 9, + 10, + 2, + 0, + 0, + 2, + 0, + 6, + 5, + 0, + 5, + 3, + 2, + 0, + 5, + 0, + 4, + 0, + 0, + 7, + 5, + 9, + 8, + 7, + 9, + 9, + 0, + 1, + 1, + 2, + 10, + 0, + 4, + 6, + 4, + 0, + 4, + 10, + 9, + 10, + 11, + 10 + ], + "id_count_min": 0, + "id_count_max": 17 + } + ] + } + }, + "loop_data_diagnostics": { + "interpretation": { + "atomic_coverage": "data availability only; does not establish model mastery", + "ood": "all facts are atomic training facts; none has composite-training experience", + "suffix": "empirical within-split target concentration; singleton suffixes score 1; not a predictor, generalization bound, or evidence that the model ignores head", + "majority": "within-split descriptive ceiling plus fixed training-majority fraction" + }, + "atomic_facts": 256, + "id_facts": 192, + "ood_facts": 64, + "id_facts_seen_in_composite_training": 191, + "ood_facts_seen_in_composite_training": 0, + "train_composite_fact_occurrence_counts": [ + 5, + 0, + 10, + 0, + 14, + 7, + 4, + 6, + 0, + 10, + 12, + 0, + 27, + 30, + 11, + 12, + 0, + 26, + 0, + 28, + 15, + 0, + 16, + 12, + 0, + 0, + 27, + 34, + 4, + 8, + 7, + 5, + 26, + 0, + 19, + 26, + 33, + 0, + 32, + 35, + 7, + 10, + 11, + 10, + 13, + 12, + 0, + 5, + 9, + 6, + 0, + 0, + 30, + 28, + 17, + 0, + 5, + 4, + 0, + 0, + 0, + 13, + 12, + 9, + 0, + 0, + 6, + 0, + 10, + 0, + 0, + 7, + 4, + 11, + 15, + 0, + 24, + 14, + 0, + 32, + 17, + 0, + 0, + 12, + 40, + 34, + 33, + 0, + 19, + 20, + 16, + 18, + 0, + 24, + 17, + 21, + 10, + 7, + 11, + 12, + 10, + 0, + 7, + 13, + 20, + 0, + 30, + 23, + 6, + 7, + 8, + 8, + 12, + 14, + 9, + 0, + 7, + 9, + 10, + 9, + 5, + 11, + 0, + 0, + 15, + 12, + 0, + 10, + 0, + 15, + 20, + 15, + 15, + 0, + 17, + 28, + 2, + 8, + 12, + 0, + 0, + 3, + 6, + 1, + 14, + 14, + 5, + 4, + 16, + 16, + 17, + 17, + 0, + 3, + 10, + 9, + 4, + 4, + 7, + 0, + 34, + 30, + 0, + 0, + 14, + 13, + 19, + 5, + 11, + 14, + 15, + 0, + 26, + 43, + 14, + 29, + 17, + 0, + 12, + 0, + 0, + 0, + 17, + 17, + 14, + 16, + 0, + 14, + 14, + 22, + 0, + 0, + 11, + 8, + 22, + 0, + 0, + 21, + 14, + 21, + 39, + 29, + 35, + 31, + 16, + 18, + 0, + 23, + 12, + 18, + 20, + 17, + 0, + 24, + 29, + 38, + 15, + 0, + 17, + 18, + 0, + 10, + 12, + 0, + 11, + 8, + 16, + 0, + 36, + 0, + 14, + 0, + 0, + 22, + 25, + 14, + 35, + 17, + 17, + 14, + 0, + 10, + 8, + 7, + 17, + 0, + 26, + 19, + 15, + 0, + 13, + 16, + 28, + 29, + 22, + 32 + ], + "splits": { + "atomic": { + "n": 256, + "unique_relevant_atomic_facts": 256, + "relevant_atomic_fact_coverage_of_graph": 1.0, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.74609375, + "all_id_queries": 192, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 256 + ], + "within_split_majority_tail": { + "target_token": 22, + "count": 9, + "fraction": 0.03515625, + "distinct_targets": 64 + }, + "train_composite_majority_tail_fraction": 0.02734375, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.05859375, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.05859375, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 3, + 66, + 52 + ] + ] + } + ] + }, + "id_atomic": { + "n": 192, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 191, + "any_relevant_fact_in_composite_training_n": 191, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9947916666666666, + "all_id_queries": 192, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192 + ], + "within_split_majority_tail": { + "target_token": 52, + "count": 8, + "fraction": 0.041666666666666664, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03125, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.07291666666666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.07291666666666667, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 52 + ], + [ + 5, + 66, + 5 + ] + ] + } + ] + }, + "ood_atomic": { + "n": 64, + "unique_relevant_atomic_facts": 64, + "relevant_atomic_fact_coverage_of_graph": 0.25, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 64, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 64 + ], + "within_split_majority_tail": { + "target_token": 14, + "count": 4, + "fraction": 0.0625, + "distinct_targets": 40 + }, + "train_composite_majority_tail_fraction": 0.015625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.125, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.125, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 11 + ], + [ + 4, + 66, + 36 + ] + ] + } + ] + }, + "train_composite": { + "n": 768, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 768, + "any_relevant_fact_in_composite_training_n": 768, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 768, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 184, + 173, + 172, + 169 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 37, + "fraction": 0.048177083333333336, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.048177083333333336, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.10286458333333333, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.10286458333333333, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 7, + 67, + 67, + 69, + 66, + 59 + ], + [ + 46, + 68, + 66, + 69, + 66, + 44 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.17447916666666666, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.17447916666666666, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 56, + 67, + 69, + 66, + 66, + 43 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.2643229166666667, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.2643229166666667, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 11, + 68, + 66, + 66, + 66, + 44 + ], + [ + 31, + 68, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 246, + "empirical_modal_target_fraction": 0.421875, + "single_target_group_query_fraction": 0.06380208333333333, + "singleton_group_query_fraction": 0.045572916666666664, + "multi_query_groups": 211, + "multi_query_coverage_fraction": 0.9544270833333334, + "multi_query_empirical_modal_target_fraction": 0.3942701227830832, + "multi_target_groups": 204, + "same_suffix_different_target_example": [ + [ + 28, + 66, + 66, + 66, + 66, + 60 + ], + [ + 39, + 66, + 66, + 66, + 66, + 32 + ] + ] + } + ] + }, + "test_composite": { + "n": 512, + "unique_relevant_atomic_facts": 191, + "relevant_atomic_fact_coverage_of_graph": 0.74609375, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 512, + "any_relevant_fact_in_composite_training_n": 512, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 1.0, + "all_id_queries": 512, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 174, + 155, + 156, + 164 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 20, + "fraction": 0.0390625, + "distinct_targets": 61 + }, + "train_composite_majority_tail_fraction": 0.0390625, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.091796875, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.091796875, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 49, + 66, + 67, + 67, + 66, + 63 + ], + [ + 39, + 68, + 66, + 69, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.15625, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.15625, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 9, + 67, + 69, + 66, + 66, + 34 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.279296875, + "single_target_group_query_fraction": 0.001953125, + "singleton_group_query_fraction": 0.001953125, + "multi_query_groups": 63, + "multi_query_coverage_fraction": 0.998046875, + "multi_query_empirical_modal_target_fraction": 0.27788649706457924, + "multi_target_groups": 63, + "same_suffix_different_target_example": [ + [ + 43, + 66, + 66, + 66, + 66, + 43 + ], + [ + 13, + 67, + 66, + 66, + 66, + 42 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 217, + "empirical_modal_target_fraction": 0.490234375, + "single_target_group_query_fraction": 0.138671875, + "singleton_group_query_fraction": 0.115234375, + "multi_query_groups": 158, + "multi_query_coverage_fraction": 0.884765625, + "multi_query_empirical_modal_target_fraction": 0.423841059602649, + "multi_target_groups": 152, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 68, + 65 + ], + [ + 12, + 66, + 66, + 66, + 68, + 42 + ] + ] + } + ] + }, + "test_full_composite": { + "n": 1025, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 1023, + "any_relevant_fact_in_composite_training_n": 1025, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9995121951219512, + "all_id_queries": 1025, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 187, + 179, + 177, + 181 + ], + "within_split_majority_tail": { + "target_token": 42, + "count": 44, + "fraction": 0.042926829268292686, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.042926829268292686, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.08195121951219513, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.08195121951219513, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 69, + 66, + 25 + ], + [ + 2, + 67, + 68, + 67, + 66, + 57 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14146341463414633, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14146341463414633, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 3, + 66, + 67, + 66, + 66, + 53 + ], + [ + 4, + 68, + 66, + 66, + 66, + 60 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.24, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.24, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 4, + 68, + 66, + 66, + 66, + 60 + ], + [ + 6, + 66, + 66, + 66, + 66, + 36 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 249, + "empirical_modal_target_fraction": 0.3648780487804878, + "single_target_group_query_fraction": 0.02048780487804878, + "singleton_group_query_fraction": 0.014634146341463415, + "multi_query_groups": 234, + "multi_query_coverage_fraction": 0.9853658536585366, + "multi_query_empirical_modal_target_fraction": 0.35544554455445543, + "multi_target_groups": 231, + "same_suffix_different_target_example": [ + [ + 6, + 66, + 66, + 66, + 66, + 36 + ], + [ + 43, + 66, + 66, + 66, + 66, + 43 + ] + ] + } + ] + }, + "ood_composite": { + "n": 53, + "unique_relevant_atomic_facts": 48, + "relevant_atomic_fact_coverage_of_graph": 0.1875, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 0, + "any_relevant_fact_in_composite_training_n": 0, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.0, + "all_id_queries": 0, + "all_ood_queries": 53, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 35, + 27, + 24, + 26 + ], + "within_split_majority_tail": { + "target_token": 54, + "count": 7, + "fraction": 0.1320754716981132, + "distinct_targets": 22 + }, + "train_composite_majority_tail_fraction": 0.018867924528301886, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.32075471698113206, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.32075471698113206, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 66, + 69, + 68, + 66, + 60 + ], + [ + 7, + 68, + 68, + 69, + 66, + 65 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 15, + "empirical_modal_target_fraction": 0.6981132075471698, + "single_target_group_query_fraction": 0.18867924528301888, + "singleton_group_query_fraction": 0.05660377358490566, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.9433962264150944, + "multi_query_empirical_modal_target_fraction": 0.68, + "multi_target_groups": 9, + "same_suffix_different_target_example": [ + [ + 8, + 67, + 69, + 66, + 66, + 41 + ], + [ + 13, + 66, + 66, + 66, + 66, + 13 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 32, + "empirical_modal_target_fraction": 0.9056603773584906, + "single_target_group_query_fraction": 0.7169811320754716, + "singleton_group_query_fraction": 0.37735849056603776, + "multi_query_groups": 12, + "multi_query_coverage_fraction": 0.6226415094339622, + "multi_query_empirical_modal_target_fraction": 0.8484848484848485, + "multi_target_groups": 5, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 47, + "empirical_modal_target_fraction": 0.9622641509433962, + "single_target_group_query_fraction": 0.9056603773584906, + "singleton_group_query_fraction": 0.7924528301886793, + "multi_query_groups": 5, + "multi_query_coverage_fraction": 0.20754716981132076, + "multi_query_empirical_modal_target_fraction": 0.8181818181818182, + "multi_target_groups": 2, + "same_suffix_different_target_example": [ + [ + 15, + 66, + 66, + 69, + 68, + 46 + ], + [ + 57, + 66, + 66, + 69, + 68, + 60 + ] + ] + } + ] + }, + "unused_composite": { + "n": 3358, + "unique_relevant_atomic_facts": 192, + "relevant_atomic_fact_coverage_of_graph": 0.75, + "all_relevant_facts_in_atomic_training_fraction": 1.0, + "all_relevant_facts_in_composite_training_n": 3354, + "any_relevant_fact_in_composite_training_n": 3358, + "relevant_fact_occurrences_seen_in_composite_training_fraction": 0.9997022036926743, + "all_id_queries": 3358, + "all_ood_queries": 0, + "mixed_queries": 0, + "unique_relevant_facts_by_hop": [ + 192, + 185, + 185, + 184 + ], + "within_split_majority_tail": { + "target_token": 11, + "count": 143, + "fraction": 0.04258487194758785, + "distinct_targets": 62 + }, + "train_composite_majority_tail_fraction": 0.03335318642048839, + "suffix_without_head": [ + { + "suffix_relation_count": 1, + "groups": 4, + "empirical_modal_target_fraction": 0.09380583680762358, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 4, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.09380583680762358, + "multi_target_groups": 4, + "same_suffix_different_target_example": [ + [ + 2, + 67, + 66, + 67, + 66, + 57 + ], + [ + 2, + 67, + 66, + 68, + 66, + 50 + ] + ] + }, + { + "suffix_relation_count": 2, + "groups": 16, + "empirical_modal_target_fraction": 0.14502680166765933, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 16, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.14502680166765933, + "multi_target_groups": 16, + "same_suffix_different_target_example": [ + [ + 2, + 68, + 67, + 66, + 66, + 10 + ], + [ + 3, + 69, + 67, + 66, + 66, + 53 + ] + ] + }, + { + "suffix_relation_count": 3, + "groups": 64, + "empirical_modal_target_fraction": 0.197736748064324, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 64, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.197736748064324, + "multi_target_groups": 64, + "same_suffix_different_target_example": [ + [ + 3, + 67, + 66, + 66, + 66, + 44 + ], + [ + 5, + 66, + 66, + 66, + 66, + 5 + ] + ] + }, + { + "suffix_relation_count": 4, + "groups": 256, + "empirical_modal_target_fraction": 0.25431804645622397, + "single_target_group_query_fraction": 0.0, + "singleton_group_query_fraction": 0.0, + "multi_query_groups": 256, + "multi_query_coverage_fraction": 1.0, + "multi_query_empirical_modal_target_fraction": 0.25431804645622397, + "multi_target_groups": 256, + "same_suffix_different_target_example": [ + [ + 5, + 66, + 66, + 66, + 66, + 5 + ], + [ + 7, + 66, + 66, + 66, + 66, + 45 + ] + ] + } + ] + } + } + }, + "loop_data_contract": { + "constructor": "grok_multihop_data.build_world", + "world_selection": "fixed supplied seed; no diagnostic or model-based selection", + "all_atomic_rows_are_training_facts": true, + "ood_definition": "all constituent facts absent from composite training by split", + "query_fact_indices": "evaluation truth only; no intermediate-entity supervision", + "suffix_statistics": "within-split descriptive counts; not fitted or held-out predictors" + } + } + }, + "same_atomic_and_id_mask_all_lengths": true, + "source_entity_offset": 2, + "entity_offset": 3, + "source_token_shift": 1, + "separator_token": 71, + "vocab_size": 72, + "evaluation_pools": "Complete test_full_composite and ood_composite", + "composition_supervision": "Terminal entity only; no intermediate entity", + "training_objective": "All nonpadding next tokens including EOS", + "holdout": "Complete queries held out within each length; not subpaths across lengths", + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "independent_audit": { + "passed": true, + "counts": { + "atomic": 256, + "train_2": 444, + "familiar_2": 124, + "strict_2": 64, + "train_3": 768, + "familiar_3": 329, + "strict_3": 59, + "train_4": 768, + "familiar_4": 1025, + "strict_4": 53 + }, + "dataset_sha256": "fd85d27d2edd68d4733b3b3435daf494d4bce96680d2fa8a251f2da67b994a57", + "truth_edges_independently_traversed": true, + "complete_query_overlap": 0, + "all_strict_facts_absent_from_composition_training": true, + "cross_length_subpath_holdout": false + } +} diff --git a/results/experiment-review-20261002/grokking-snapshot-045430.json b/results/experiment-review-20261002/grokking-snapshot-045430.json new file mode 100644 index 0000000000000000000000000000000000000000..03db8c40110f3715488d26cde26be1d0f7abd216 --- /dev/null +++ b/results/experiment-review-20261002/grokking-snapshot-045430.json @@ -0,0 +1,126 @@ +{ + "snapshot_utc": "2026-10-02T04:54:30.262387+00:00", + "runs": [ + { + "name": "standard8-phi3.6-wd0.1", + "step": 448000, + "created_utc": "2026-10-02T04:53:37.022999+00:00", + "accuracy_percent": { + "atomic_id": 99.93333333333332, + "atomic_ood": 99.85000000000001, + "train_ii": 99.83333333333333, + "test_ii": 10.233333333333333, + "test_io": 1.8333333333333333, + "test_oi": 1.7999999999999998, + "test_oo": 0.249500998003992 + }, + "first_common_panel_fit_ge99_step": 8000 + }, + { + "name": "loop4x2-phi3.6-wd0.1", + "step": 496000, + "created_utc": "2026-10-02T04:53:57.566505+00:00", + "accuracy_percent": { + "atomic_id": 99.93333333333332, + "atomic_ood": 99.95, + "train_ii": 99.93333333333332, + "test_ii": 24.566666666666666, + "test_io": 4.833333333333333, + "test_oi": 4.533333333333333, + "test_oo": 0.5988023952095809 + }, + "first_common_panel_fit_ge99_step": 9000 + }, + { + "name": "standard8-phi7.2-wd0.1", + "step": 476000, + "created_utc": "2026-10-02T04:53:48.580394+00:00", + "accuracy_percent": { + "atomic_id": 99.93333333333332, + "atomic_ood": 99.8, + "train_ii": 99.9, + "test_ii": 92.66666666666666, + "test_io": 2.933333333333333, + "test_oi": 3.933333333333333, + "test_oo": 0.14970059880239522 + }, + "first_common_panel_fit_ge99_step": 13000 + }, + { + "name": "loop4x2-phi7.2-wd0.1", + "step": 496000, + "created_utc": "2026-10-02T04:53:49.202638+00:00", + "accuracy_percent": { + "atomic_id": 99.96666666666667, + "atomic_ood": 99.95, + "train_ii": 99.93333333333332, + "test_ii": 99.9, + "test_io": 75.43333333333334, + "test_oi": 41.5, + "test_oo": 10.978043912175648 + }, + "first_common_panel_fit_ge99_step": 16000 + }, + { + "name": "standard8-phi12.6-wd0.1", + "step": 476000, + "created_utc": "2026-10-02T04:54:10.321038+00:00", + "accuracy_percent": { + "atomic_id": 99.96666666666667, + "atomic_ood": 98.25, + "train_ii": 99.93333333333332, + "test_ii": 99.9, + "test_io": 0.46666666666666673, + "test_oi": 9.733333333333333, + "test_oo": 0.19960079840319359 + }, + "first_common_panel_fit_ge99_step": 18000 + }, + { + "name": "loop4x2-phi12.6-wd0.1", + "step": 492000, + "created_utc": "2026-10-02T04:54:02.344566+00:00", + "accuracy_percent": { + "atomic_id": 99.96666666666667, + "atomic_ood": 99.1, + "train_ii": 99.93333333333332, + "test_ii": 99.96666666666667, + "test_io": 78.93333333333334, + "test_oi": 44.7, + "test_oo": 14.520958083832337 + }, + "first_common_panel_fit_ge99_step": 23000 + }, + { + "name": "standard8-phi7.2-wd0.3", + "step": 472000, + "created_utc": "2026-10-02T04:54:00.627999+00:00", + "accuracy_percent": { + "atomic_id": 99.63333333333333, + "atomic_ood": 97.6, + "train_ii": 99.76666666666667, + "test_ii": 99.33333333333333, + "test_io": 2.1333333333333333, + "test_oi": 7.199999999999999, + "test_oo": 0.29940119760479045 + }, + "first_common_panel_fit_ge99_step": 13000 + }, + { + "name": "loop4x2-phi7.2-wd0.3", + "step": 492000, + "created_utc": "2026-10-02T04:53:51.219531+00:00", + "accuracy_percent": { + "atomic_id": 99.86666666666667, + "atomic_ood": 98.0, + "train_ii": 99.83333333333333, + "test_ii": 99.73333333333333, + "test_io": 91.43333333333334, + "test_oi": 71.73333333333333, + "test_oo": 49.05189620758483 + }, + "first_common_panel_fit_ge99_step": 16000 + } + ], + "aggregate_progress_percent": 32.06666666666666 +} \ No newline at end of file diff --git a/results/experiment-review-20261002/grokking-snapshot-045430.pdf b/results/experiment-review-20261002/grokking-snapshot-045430.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f8de9489a8fd8f6c7b91c4c2ee4ac7529bc654c2 Binary files /dev/null and b/results/experiment-review-20261002/grokking-snapshot-045430.pdf differ diff --git a/results/experiment-review-20261002/grokking-snapshot-045430.png b/results/experiment-review-20261002/grokking-snapshot-045430.png new file mode 100644 index 0000000000000000000000000000000000000000..13742dd6919dc03c780dbca25674aaed97839ea7 --- /dev/null +++ b/results/experiment-review-20261002/grokking-snapshot-045430.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d90c4ff6b0979a0b1033412b284ee5b567018381427172391cb13ee7c0e3a67 +size 175548 diff --git a/results/first-principles-review-20261004/theory-sources/composition2024.pdf b/results/first-principles-review-20261004/theory-sources/composition2024.pdf new file mode 100644 index 0000000000000000000000000000000000000000..08a1b07d66ed02a8c8f8b70d99e256f3c8a07cc2 --- /dev/null +++ b/results/first-principles-review-20261004/theory-sources/composition2024.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e1b13a0dc9b2ccb41af98b305c03835d10fd9fad781c2f98dce49607bdc9f30 +size 8618212 diff --git a/results/first-principles-review-20261004/theory-sources/composition2024.txt b/results/first-principles-review-20261004/theory-sources/composition2024.txt new file mode 100644 index 0000000000000000000000000000000000000000..5fbc34371abc818b662250fdbc22d6d788272d1a --- /dev/null +++ b/results/first-principles-review-20261004/theory-sources/composition2024.txt @@ -0,0 +1,4431 @@ +PAGE 1 +Compositional Capabilities of Autoregressive Transformers: +A Study on Synthetic, Interpretable Tasks +Rahul Ramesh 1 † Ekdeep Singh Lubana 2 3 4 Mikail Khona 5 † Robert P. Dick 2 Hidenori Tanaka 3 4 +Abstract +Transformers trained on huge text corpora exhibit +a remarkable set of capabilities, e.g., perform- +ing basic arithmetic. Given the inherent compo- +sitional nature of language, one can expect the +model to learn to compose these capabilities, po- +tentially yielding a combinatorial explosion of +what operations it can perform on an input. Moti- +vated by the above, we train autoregressive Trans- +former models on a synthetic data-generating pro- +cess that involves compositions of a set of well- +defined monolithic capabilities. Through a series +of extensive and systematic experiments on this +data-generating process, we show that: (1) autore- +gressive Transformers can learn linear chains of +compositions from small amounts of training data +and generalize to exponentially or even combina- +torially many functions; (2) generating interme- +diate outputs when composing functions is more +effective for generalizing to new, unseen com- +positions than not generating any intermediate +outputs (3) biases in the order of the composi- +tions in the training data result in Transformers +that fail to compose some combinations of func- +tions; and (4) the attention layers select which +capability to apply while the feed-forward layers +execute the selected capability. Code is available +at https://github.com/rahul13ramesh/composition +al capabilities. +1. Introduction +Large scale Transformers pretrained on huge text corpora +have revolutionized machine learning in recent years (Rad- +†Work done during internship at NTT Research 1Computer and +Information Science, University of Pennsylvania 2Electrical Engi- +neering and Computer Science, University of Michigan 3Physics& +Information Labotratories, NTT Research 4Center for Brain Sci- +ence, Harvard University 5Physics, MIT. Correspondence to: +Rahul Ramesh . +Proceedings of the 41 st International Conference on Machine +Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by +the author(s). +Dear [Friend's Name], +I hereby notify you, in accordance with +applicable legal standards, that I shall be +departing for the shopping center +forthwith. +Sincerely, +[Your Name] +Tell my friend that I am going to the mall. Write +it in legalese. +The sum of the digits of the square of the +cube of 8 is 1. +Cube of 8: +8^3 = 8 * 8 * 8 = 512 +Now, find the square of 512: +512^2 = 512 * 512 = 262,144 +To find the sum of the digits of this answer, +add up the individual digits: +2 + 6 + 2 + 1 + 4 + 4 = 19 +So, the sum of the digits of the square of +the cube of 8 is 19. +What is the sum of the digits of the square of +the cube of 8. Give the answer step-by-step. +What is the sum of the digits of the square of +the cube of 8. Give the answer directly. +Figure 1: Signatures of compositionality. Language mod- +els have shown a remarkable ability to compose different +capabilities (Bubeck et al., 2023) and correctly respond to +prompts that require compositions of atomic arithmetic ca- +pabilities (sum, cube, square)—we argue these prompts are +unlikely to be in the training data since there are a combi- +natorial number of combinations of capabilities (Arora & +Goyal, 2023). However, the model does not always com- +pose reliably (top-right panel). This motivates us to study +the extent to which a Transformer can learn to compose its +capabilities by mere pretraining on a synthetic data generat- +ing process with compositional structure. +ford et al., 2018; 2019; Brown et al., 2020; Sanh et al., 2021; +Wei et al., 2021; Thoppilan et al., 2022; Touvron et al., 2023). +Due to an ever-increasing interest in adopting these models +in our daily lives, evaluating and predicting their capabilities +has become increasingly important (Bommasani et al., 2021; +Ganguli et al., 2022; Shevlane et al., 2023; Rae et al., 2021; +Hoffmann et al., 2022; Tay et al., 2022; Henighan et al., +2020; Hernandez et al., 2021; Sharma & Kaplan, 2020). +Motivated by this, recent works have performed extensive +empirical analyses to understand the possibilities and limita- +tions of using these models in practical tasks of interest. For +example, such works show large language models (LLMs) +can generate coherent text completions based on a provided +context, perform code generation and debugging, use online +APIs and tools in an automated manner, and even solve +multimodal problems such as image captioning (Wei et al., +2022a; Bubeck et al., 2023; Austin et al., 2021; Chen et al., +2021; Lee et al., 2023; Liang et al., 2022; Qin et al., 2023; +Liu et al., 2023; Suzgun et al., 2022; Srivastava et al., 2022). +1 + +PAGE 2 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +While such benchmarking of pretrained models is extremely +valuable, it often focuses on evaluating rather “narrow” or +“atomic” capabilities; for example, the ability to identify +whether a given passage of text is biased or toxic (Gehman +et al., 2020; Liang et al., 2022). However, given the compo- +sitional nature of training data (such as language), a model +could learn to compose its atomic capabilities and perform +complex tasks that it was never explicitly trained for. This +can lead to an underestimation of the capabilities of the +model; vice versa, if the model does not learn to compose, +we can be certain that benchmarking for atomic capabilities +is sufficient to characterize the model. +Motivated by the above, we analyze if a Transformer trained +on a compositional data-generating process, without any +special modifications to the usual training pipeline, can +learn both relevant atomic capabilities and an ability to +compose those capabilities. Bubeck et al. (2023) recently +show that LLMs exhibit “sparks” of such compositionality, +e.g., generating text that merges content of varying styles or +evaluate mathematical expressions through the application +of a sequence of functions (Fig. 1). However, due to their +black-box nature, it is unclear if an LLM actually learns to +compose capabilities or merely memorizes relevant samples +from its training data. Moreover, while interacting with an +LLM, it can be difficult to guarantee that we are utilizing a +prompt that will appropriately guide the model to use the +capabilities we desire, let alone compose them. +To circumvent challenges faced with LLMs pretrained on +real world data and focus on our specific motivation, “can +an autoregressive Transformer trained on compositional +data learn to compose its capabilities”, we choose to limit +the purview of this work to a well-defined synthetic do- +main. This is similar in spirit to recent works that utilize +synthetic datasets generated using objects like first-order +logic machines, context-free grammars, linear regressors, +modular arithmetic, and even board games to establish and +understand phenomenology of modern neural networks (Liu +et al., 2022; Allen-Zhu & Li, 2023c;a;b; Garg et al., 2022; +Li et al., 2023c; Saparov & He, 2022; Chan et al., 2022; +Bhattamishra et al., 2020; Zhou et al., 2023; Nanda et al., +2023a;b; Li et al., 2023a; Lubana et al., 2023; Jones, 2021). +The goal of such works, including ours, is to develop inter- +pretable demonstrations and mechanistic hypotheses that +enable a characterization of the target phenomenology in a +controlled setting. Accordingly, we emphasize that we do +not intend to develop novel protocols for improving Trans- +formers’ ability to compositionally generalize, but rather +to demonstrate its existence and understand what drives it. +Overall, we make the following contributions. +• A minimal synthetic setup for characterizing Trans- +formers’ ability to compose. We propose a minimal +setup involving linear chains of compositions of pre- +defined functions F (bijections and permutations) that +operate on a string of arbitrary tokens (Section 3), which +allows us to precisely study the ability of Transformers +to compose functions. Motivated by instruction induc- +tion and tuning in LLMs (Honovich et al., 2022; Wei +et al., 2021), we instantiate a notion of “task tokens” +which specify what functions are to be applied to the +input string. This helps us avoid any ambiguity in task- +specification (Shah et al., 2022). +• Transformers show explosion of capabilities. We char- +acterize the ability of a Transformer trained on our pro- +posed setup to compositionally generalize, i.e., to apply +a composition of specific functions chosen from F, to +an input string. We show that a Transformer, trained on +very few compositions, can generalize to exponentially +or even combinatorially many functions (Section 4.1)— +these functions are entirely “out-of-distribution”, i.e., +the model never sees them in its training data and hence +was not explicitly trained to learn them. Crucially, al- +lowing the model to recursively process its intermediate +outputs—i.e., stepwise inference (Kojima et al., 2022; +Wei et al., 2022b)—significantly improves composi- +tional generalization (Section 4.3 and appendix C.3). +• Characterizing limitations and mechanisms of com- +positionality in a Transformer. We formalize a no- +tion of “distance” between the functions seen by the +model during pretraining and the ones it is evaluated on, +hence enabling a precise characterization of when the +model struggles to compose (Section 4.2). As we show, +the training data determines whether the Transformer +generalizes to an exponential or combinatorial set of +functions—which we call in-order and and out-of-order +generalization respectively. Furthermore, linear prob- +ing (Tenney et al., 2019; Li et al., 2023a), and an analy- +sis of the attention maps suggests the following mech- +anism for solving our task: the attention layer selects +the task token and the fully connected layers compute +the function corresponding to it (Section 4.4). We also +prove the existence of Transformers that can composi- +tionally generalize to our task and analyze why stepwise +inference helps with it (Appendix C). Our mechanistic +analysis and theoretical construction align extremely +well. +2. Related Work +Capabilities in a Transformer. +Transformers pretrained +on large-scale, web-crawled datasets have been shown to +exhibit a slew of interesting capabilities, such as basic arith- +metic, question answering, commonsense knowledge rea- +soning, stylistic transformation of a piece of text, and even +multimodal reasoning (Radford et al., 2018; 2019; Brown +et al., 2020; Bubeck et al., 2023; Wei et al., 2022a; 2021; +2 + +PAGE 3 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +Rae et al., 2021; Chowdhery et al., 2022; Austin et al., +2021; Chen et al., 2021; Bommasani et al., 2021). How- +ever, this generality can come at the cost of a model also +learning capabilities that are undesirable (Bommasani et al., +2021; Tamkin et al., 2021; Chan et al., 2023), e.g., pro- +ducing sensitive, biased, or toxic outputs (Weidinger et al., +2021; McGuffie & Newhouse, 2020; Garrido-Mu˜noz et al., +2021; Lin et al., 2021; Jiang et al., 2021; Abid et al., 2021; +Parrish et al., 2021; Xu et al., 2021; Huang et al., 2019; +Sheng et al., 2019; Gehman et al., 2020; Xu et al., 2020; +Tamkin et al., 2021). This has motivated several works fo- +cused on understanding capabilities of a pretrained model, +including (i) predicting capabilities of a future model, e.g., +via fitting power laws to data/model scaling results (Rae +et al., 2021; Hoffmann et al., 2022; Hernandez et al., 2021; +Sharma & Kaplan, 2020; Arora & Goyal, 2023) and (ii) elic- +iting capabilities of a given model, e.g., via identification +of appropriate prompts or via step-wise inference protocols +such as chain-of-thought, to understand what tasks a model +can be reliably used for (Liang et al., 2022; Suzgun et al., +2022; Lee et al., 2023). However, we argue that measuring +a language model’s performance on benchmarks to identify +the existence of a set of capabilities is bound to be insuffi- +cient for characterizing what tasks it can perform: given the +compositional nature of data these models are trained on, +it is possible that they learn to compose capabilities, hence +learning to perform several more tasks than we explicitly +train them on. In fact, with a related motivation, Yu et al. +(2023) design a benchmark for evaluating a model’s ability +to combine its skills in a recent contemporary work. +Compositionality in neural networks. +The ability to +compositionally reason has been touted as a cornerstone +of human intelligence (Fodor & Lepore, 2002; Fodor & +Pylyshyn, 1988; Fodor, 1975; Schulz et al., 2016). Accord- +ingly, several works have studied the ability of a neural net- +work to compositionally generalize, usually demonstrating +a negative result, and correspondingly developing explicit +strategies that help improve the model’s ability to general- +ize (Liˇska et al., 2018; Hupkes et al., 2018; Lake & Baroni, +2018; Csord´as et al., 2021b;a; 2022; Ontan´on et al., 2021; +Lepori et al., 2023; Lewis et al., 2022; Yun et al., 2022; +Okawa et al., 2023; Hosseini et al., 2022). Our work differs +from prior literature in several ways. First, we do not intend +to develop protocols for improving compositional general- +ization in a Transformer; instead, we show that Transformers +can learn to compose its capabilities and perform tasks it +was never explicitly trained on, with autoregressive training +on tokens from a compositional data-generating process. To +this end, we define a synthetic task that allows for perfect +task specification and which avoids ambiguity from prompt +misspecification. While similar to the compositional table +lookup task used in prior work (Liˇska et al., 2018; Csord´as +et al., 2022), our task involves a much larger set of capa- +bilities to train and test for (3125 or 4 million, depending +on the setup, compared to 128 capabilities in prior work). +Second, we aim to understand the extent of compositional +generalization in a Transformer trained on our proposed +domain, i.e., what kind of compositions does the model fail +to perform and when. We define a framework to precisely +characterize these failures modes and use the popular linear +probing protocol for understanding model internals to show +the critical role of attention layers in enabling composition- +ality (Li et al., 2023a). Finally, we analyze the impact of +step-wise inference protocols, wherein intermediate outputs +generated by the model are recursively passed to it as inputs, +and which has been used for solving several challenging +benchmark tasks recently (Suzgun et al., 2022; Wei et al., +2022b). +Similar to our work, Li et al. (2023c) study step-wise in- +ference in Transformers trained on synthetic data from a +compositional data generating process. However, there are +notable differences—we show that Transformers composi- +tionally generalize to combinatorially many new functions +and carefully controlling the training data allows us to high- +light the benefit of step-wise inference. Furthermore, Li +et al. (2023b) study compositionality with prompts used +for in-context learning (Garg et al., 2022), while our syn- +thetic setup avoids ambiguity in specifying the compositions. +Many other works that study whether Transformers can com- +positionally generalize (Csord´as et al., 2021a; Ontan´on et al., +2021), focus on compositionality within a single forward +pass, i.e., the model is not allowed to recursively process +its inputs. We find the use of intermediate outputs signif- +icantly simplifies the problem and, given its popularity in +practical scenarios (Kojima et al., 2022; Wei et al., 2022b), +our results serve as a demonstration that inference protocols +that allow Transformers to recursively refine their outputs +can lead to a wide range of capabilities, especially ones that +we never explicitly train the model for. Finally, our work +studies compositions of linear chains of functions such as +F1 ◦F2 ◦F3, but compositions can be defined over more +complex structures like trees (Andreas, 2019) which include +functions like F3(F2(·), F1(·)). Murty et al. (2022) seek to +characterize such tree-structured compositional derivations +implemented by a Transformer, however, they only consider +a single forward pass through the Transformer. In contrast +to Murty et al. (2022) our goals are different, which is to +understand properties of the training data that allow us to +successfully compose functions. +3. Formalizing capabilities and compositions +As noted by Hupkes et al. (2020), despite extensive work +exploring compositionality in neural networks, the term is +often used for several related concepts. To avoid ambiguity, +we thus present a definition of a “compositional model” that +3 + +PAGE 4 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +captures our intended notion and, correspondingly, describe +the data-generating process used in this work to understand +Transformers’ ability to compose. Let F denote a set of +predefined automorphisms, i.e., any given function F from +the set defines a map between points from its input space +to the same space. This is motivated by the fact that the +input and output domain of a language model are generally +the same. We define an input x as a combination of two +strings [xf, xd], where xf ∈XL +f is a sequence of L tokens +that specify a series of L functions from F, and xd ∈XK +d +denotes a sequence of K tokens to which the series of L +functions are applied to. We refer to xf as task tokens and +to xd as data tokens. For example, let xFi be the identifier +that denotes that function Fi is applied to the data tokens and +xdk denote the kth token from the vocabulary Xd. Assume +L = 2 and k = 1 and define a sample x = [xF1, xF2, xd1]. +Then, a model M : XL +f × XK +d 7→XK +d that takes x as input, +is expected to produce the output F2 ◦F1 (xd1). We use [L] +to denote the ordered set (1, 2, . . . , L). +A capability, in our setup, is defined as the ability of a +model to accurately represent a function F ∈F. We em- +phasize that we do not expect pretrained models in practice +to perfectly implement an arbitrary function; however, this +idealized definition affords us precision and allows us to +use accuracy over a random set of inputs to claim a model +possesses a certain capability. Based on this definition, we +intend to understand the set of capabilities—or the set of +functions—that a Transformer can implement by composing +them. In this work, we restrict our attention to the ability to +implement linear chains of compositions which we formal- +ize as follows. +Definition 3.1 (Compositionality on linear chains.). We +say a model M(.) compositionally generalizes to linear +chains if, for any subset of functions Fi ∈F, where i ∈[L], +M ([xF1, xF2, · · · xFL, xd]) = FL ◦· · · ◦F2 ◦F1 (xd). +In practical scenarios, we would not expect the pretraining +data to present a capability in all possible scenarios that +it can be used in. For example, simple arithmetic tasks +like multiplication are often only seen in the context of +numbers with 1–3 digits in web-crawled data (Razeghi et al., +2022), which leads to an inability of the model to perform +multiplication in higher order numbers. To model this in our +setup, we create a spurious correlation between a subset of +the functions from F and the position of their identifiers in +the task tokens xf. Specifically, we define F(l) ⊂F as the +set of functions that are allowed at the position l in the task +tokens xf. We let |F(l)| = N for all locations l, i.e., F is +partitioned into equally sized subsets and |F| = N ×L. The +notation F (l) +i , where i ∈[N] and l ∈[L], is used to denote +the ith possible function at position l. Based on the above, +we define two ways to compose L functions: in-order and +out-of-order (see Fig. 2). +I +F(5) +1 +F(5) +2 +F(5) +3 +F(5) +4 +F(4) +1 +F(4) +2 +F(4) +3 +F(4) +4 +F(3) +1 +F(3) +2 +F(3) +3 +F(3) +4 +F(2) +1 +F(2) +2 +F(2) +3 +F(2) +4 +F(1) +1 +F(1) +2 +F(1) +3 +F(1) +4 +(x) +(a). 21 Basis of compositional functions +I +I +I +I +I +I +I +I +I +I +(b). In-order composition +F(5) +2 +F(5) +4 +F(5) +2 +F(4) +1 +F(4) +3 +F(3) +3 +F(3) +2 +F(3) +2 +F(3) +1 +F(2) +4 +F(2) +2 +F(2) +3 +F(1) +4 +F(1) +2 (x) +(x) +(x) +(x) +# of compositions +5 +2 +3 +4 +# of displacements +F(5) +2 +F(4) +3 +F(2) +2 +F(1) +4 +I +I +I +I +F(5) +4 +F(4) +3 +F(3) +4 +F(2) +2 +F(1) +4 +F(1) +4 +F(4) +1 +F(4) +1 +F(5) +2 +F(5) +4 +F(3) +1 +F(1) +1 (x) +(x) +(x) +(x) +1 +1 +3 +4 +(c). Out-of-order composition +Figure 2: Data generating process for in-order and out- +of-order compositions. (a) Each of the L = 5 positions +is associated with N = 4 functions f [l] +i , in addition to an +identity function, resulting in a total of 5×4+1 = 21 basis +functions for composition. (b) The in-order compositions +select functions within the same position while (c) out-of- +order compositions allow for selecting functions across po- +sitions. Each position also includes the identity function +since it allows us to compute compositions of fewer than +5 functions. In the examples presented in (c), displaced +functions are surrounded by a black line, and we then count +the number of displaced functions. +Definition 3.2 (In-order vs. out-of-order Compositions.). +Consider the composition eF = F (l1) ◦F (l2) ◦· · ·◦F (lL) (.), +where li ∈[L]. Denote the ordered set (l1, l2, . . . , lL) as +order( eF). If order( eF) equals the set [L], we say eF is an +in-order composition; else, we say it is out-of-order. +To understand the number of in-order and out-of-order com- +positions, let us consider a composition of L functions and L +sets of functions denoted by F1, · · · , FL. Each set contains +exactly N functions, i.e., |Fi| = N. For an in-order compo- +sition, the function at position i (ith step of the composition) +belongs to the set Fi. There are a total of N L in-order +compositions since each position has N choices. On the +other hand, for an out-of-order composition the function at +position i, need not belong to Fi, but can instead belong +to any of the L sets of functions, totalling to (N × L)L +out-of-order compositions. +Consider a model M that perfectly encodes all N × L func- +tions from the set F. If the model can generalize to in-order +compositions of these functions, then its set of capabilities +will in fact grow to exponentially many functions (N L). Fur- +ther, the ability to compose out-of-order can increase this +set combinatorially, i.e., proportional to (N × L)L, growing +even more quickly compared to the set of in-order compo- +sitions. Such an “explosion of capabilities” would imply +that it is difficult to characterize the set of all tasks that a +pretrained model can perform, especially since the pretrain- +ing data used for training a model is generally unknown and +hence it is hard to even characterize what “atomic” capabili- +ties the model possesses. In our experiments, we find that +while Transformers can generalize to both in-order and out- +4 + +PAGE 5 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +𝚇𝚍𝟼𝚇𝚍𝟻𝚇𝚍𝟼𝚇𝚍𝟺𝚇𝚍𝟼𝚇𝚍𝟿 +𝚇𝚍𝟶𝚇𝚍𝟽𝚇𝚍𝟶𝚇𝚍𝟻𝚇𝚍𝟶𝚇𝚍𝟾 +F(5) +3 +F(4) +3 +F(3) +2 +F(2) +4 +F(1) +1 (x) +(b). Step-by-step prompting: +(a). Direct prompting: +F(1) +1 +e.g.) bijection: +step-by-step intermediate outputs + + + +𝚂𝚇𝚏(𝟷) +𝟷𝚇𝚏(𝟸) +𝟺𝚇𝚏(𝟹) +𝟸𝚇𝚏(𝟺) +𝟹𝚇𝚏(𝟻) +𝟹𝚇𝚍𝟼𝚇𝚍𝟻𝚇𝚍𝟼𝚇𝚍𝟺𝚇𝚍𝟼𝚇𝚍𝟿𝚇𝚍𝟿𝚇𝚍𝟽𝚇𝚍𝟿𝚇𝚍𝟺𝚇𝚍𝟿𝚇𝚍𝟶 + + + + … + +𝚂𝚇𝚏(𝟷) +𝟷𝚇𝚏(𝟸) +𝟺𝚇𝚏(𝟹) +𝟸𝚇𝚏(𝟺) +𝟹𝚇𝚏(𝟻) +𝟹𝚇𝚍𝟼𝚇𝚍𝟻𝚇𝚍𝟼𝚇𝚍𝟺𝚇𝚍𝟼𝚇𝚍𝟿𝚇𝚍𝟶𝚇𝚍𝟽𝚇𝚍𝟶𝚇𝚍𝟻𝚇𝚍𝟶𝚇𝚍𝟾 +𝚇𝚍𝟷𝚇𝚍𝟸𝚇𝚍𝟷𝚇𝚍𝟺𝚇𝚍𝟷𝚇𝚍𝟼𝚇𝚍𝟿𝚇𝚍𝟽𝚇𝚍𝟿𝚇𝚍𝟺𝚇𝚍𝟿𝚇𝚍𝟶 +Figure 3: Direct v.s. Step-by-step prompts. The task +(rainbow) and data (blue) tokens can be completed in two +ways. They are followed by: (a) the intermediate outputs of +the composition in the step-by-step format or (b) directly by +the final result of compositions in the direct format. +of-order compositions, the pretraining dataset for enabling +out-of-order generalization must exhibit some—albeit not +huge—diversity (we quantify this further when discussing +our results). To empirically characterize out-of-order com- +positions and discuss the failure modes thereof, we find +it useful to define the following notion of displacement +(see Fig. 2). +Definition 3.3 (Displacement.). Let D(s, s′) denote the +hamming distance between two ordered sets s and s′. +Then, the displacement of a composition eF is defined as +D(order( eF), [L]). +3.1. Experimental Setup and Data-Generating process +Having defined our notion of compositionality in a pre- +trained model, we now briefly discuss the experimental +setup used in this work (see Appendix A for details). Specif- +ically, our data-generating process yields inputs consisting +of a sequence of 6 data tokens, xd ∈X6 +d, where each token +is drawn from a vocabulary of size |Xd| = 10. Each of the +6 elements are drawn uniformly at random, with replace- +ment, from Xd. We consider two families of functions +defined over these data tokens: bijections and permutations +(see Fig. 10). Specifically, the set Fb (which we refer to as +bijections) consists of all functions that apply a bijection +on each of the 6 tokens in an element-wise manner. The +number of such functions is the number of bijections on a +single token: there are 10! such functions when |Xd| = 10. +The second set is Fp, which is the set of all permutations +of 6 elements (|Fp| = 6!). The rationale for selecting these +function families is that both Fb and Fp are groups with +function composition as the group operator. Consequently, +the composition of two functions is also a group element. +We consider two formats for representing a sample +(see Fig. 3). Both formats start with task tokens xf, that +specify the sequence of functions to compose, followed by +the data tokens xd. The direct prompt format follows this +with the final output of the function composition, while +the step-by-step prompt format follows this with all in- +termediate outputs of the function composition, similar to +chain-of-thought and related protocols (Kojima et al., 2022; +Nye et al., 2021; Wei et al., 2022b). +We also control the set of task tokens seen during training. +In particular, we control compositions in the training data to +either only contain in-order compositions, or also include +out-of-order compositions. The training data for random +contains task tokens corresponding to a random subset of +the set of all possible in-order compositions. The training +data for base contains task tokens where at most one po- +sition in the composition is not the identity function. For +example, if we consider N = 4 and L = 5 like in Fig. 2, +then base contains compositions of functions where at least +four of the five positions are identity, totalling to overall 21 +functions. The set of functions base helps us assess whether +mere learning of “atomic” capabilities is sufficient to yield +compositionality in a model. (See Appendix A.2) +We generate 100K samples using the process above for a +given prompt format (step-by-step or direct) and with re- +strictions on the task tokens (in-order, out-of-order, base, +random). The model is autoregressively trained on this +data using the cross-entropy loss (see Appendix A). After +training, we evaluate whether the model possesses a capa- +bility corresponding to a set of composition of functions, by +computing the accuracy of the model completion on 1000 +different data tokens (see Appendix A.2). The accuracy of a +completion is the average accuracy over the last 6 tokens. +4. Results +In this section, we systematically investigate the capabilities +of an autoregressive Transformer trained on synthetic tasks +with compositional structure. Broadly, we would like to +understand how this structure in the data manifests in the +network. We focus on addressing the following questions: +(1) Do Transformers compositionally generalize to func- +tions not present in the training data and to what extent +do they exhibit in-order and out-of-order generaliza- +tion? +(2) How do properties of the training data influence in- +order and out-of-order generalization? +(3) Are there differences between direct and step-by-step +prompt formats? +(4) Do Transformers first learn to compose fewer functions +before learning to compose many of them? +(5) What is the role of the attention and feed-forward lay- +ers? +(6) Can another popularly used architecture for autoregres- +sive modeling, e.g., LSTMs, compositionally general- +ize in our setup? +We use nanoGPT (Appendix A), a Transformer with 12 +layers with each Transformer block identical to the one +in Vaswani et al. (2017). We use the same architecture across +all our experiments in this section, but provide ablations that +5 + +PAGE 6 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +vary the number of layers, attention heads, and embedding +dimension in Appendix B.1. +4.1. Combinatorial explosion and Exponential growth in +capabilities +Do Transformers only generalize to functions present in +the training data or do they reflect compositional structure +present in data? In Fig. 4, we train on data consisting of a +small subset of in-order compositions of bijections Fb, in the +step-by-step prompt format. We consider the composition +of 5 functions in both Figs. 4a and 4b. Each position of +the composition can be one of four choices, with the four +choices at different positions being different in Fig. 4a and +the same in Fig. 4b. In addition, any position can also be +selected to be identity. +We find that Transformers can capture the composi- +tional structure in data and generalize to exponential +and combinatorial sets of functions in Figs. 4a and 4b, de- +spite being trained on an extremely small subset of func- +tion compositions. For example, a Transformer trained on +30–100 function compositions, generalizes to 3125 unseen +compositions of these functions almost perfectly. +In contrast, we note that LSTMs fail to compositionally +generalize in this same setup (Appendix B.2), while Trans- +formers with different numbers of layers and attention heads +show compositional generalization (Appendix B.1). This +indicates that the inductive bias of the architecture con- +tributes to compositional generalization and any autore- +gressive model is not guaranteed to succeed. We also +observe that base—which serves as a null model that only +trains on the atomic capabilities (or functions)—does not +compositionally generalize. Overall, then, we note that +compositional generalization occurs with the step-by-step +prompt format, provided the right architecture and training +data are used. +4.2. In-order vs. Out-of-order generalization +How do biases in the training data influence a Transformer’s +ability to compose? Are Transformers capable of both in- +order and out-of-order generalization or does it depend on +the nature of training data? For the functions in Fig. 4a, +the number of in-order compositions is 55 = 3125 and +the number of out-of-order compositions is a whopping +(21)5 = 4084101; essentially all of these functions are dif- +ferent from the ones seen in the training data. Like in Sec- +tion 4.1, we only consider Transformers trained with the +step-by-step prompt format on functions from the set of bi- +jections Fb. In Fig. 5, we consider the training data to have +functions from base, some in-order and some out-of-order +compositions. We fail to see in-order or out-of-order gen- +eralization unless the data also includes in-order or out-of- +order compositions respectively. However, a small number +0 +10000 +20000 +Number of iterations +0 +20 +40 +60 +80 +100 +Accuracy on in-order compositions +Train data +21 base + 0 random (14%) +21 base + 5 random (76%) +21 base + 10 random (93%) +25 random (75%) +50 random (98%) +100 random (100%) +(a) +0 +10000 +20000 +Number of iterations +0 +20 +40 +60 +80 +100 +Accuracy on all compositions +Train data +21 base + 0 random (20%) +21 base + 10 random (76%) +25 random (72%) +50 random (100%) +(b) +Figure 4: Transformers trained on the step-by-step for- +mat can generalize to an exponential (a) or combinato- +rial (b) number of new functions. We plot the accuracy +averaged over all compositions of L = 5 bijections, where +each position of composition has 4+1 choices, with one of +them being the identity function. Each curve corresponds to +training data generated by a different subset of functions and +the model is trained using the step-by-step prompt format. +(a) The choice of 5 functions are different at different posi- +tions of composition—there are 21 different functions which +can be composed (in-order) in 3125 different ways. (b) The +choice of 5 functions are identical across all 5 positions +of the composition which means there are 3125 different +ways to compose them; only 1365 of them are unique. Both +figures are evidence that one can train on a small number of +compositions of functions (around 31-100) and generalize +to exponentially (a) and combinatorially (b) many functions +that would be considered ”out-of-distribution”. +of in-order (10 of them) or out-of-order compositions +(100 of them) in the training data results in in-order gen- +eralization or limited out-of-order generalization. All +scenarios in Fig. 5 do not fully generalize to out-of-order +compositions. This indicates that out-of-order compositions +may require a lot more data compared to in-order composi- +tions. +4.3. Direct vs. step-by-step compositions +Both Sections 4.1 and 4.2 discuss experiments using the +step-by-step prompt format, but do these results also hold +for direct prompting? Fig. 6 (left) and Fig. 15 answer this +in the negative. Specifically, in Fig. 6 (left), we consider a +setup identical to Fig. 4a and train on a different number of +random functions. Transformers fail to generalize to new +in-order compositions with direct prompting when we +consider compositions of bijections from Fb. We observe +this failure even if we train on 2000 of the 3125 possible +in-order compositions of functions, i.e., even if the data has +high diversity. In contrast, in Fig. 4a, a mere 100 composi- +tions in the step-by-step format suffices to generalize to all +possible in-order compositions. +6 + +PAGE 7 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +Accuracy0 +20 +40 +60 +80 +100 +0 1 2 3 4 5 +0 +1 +2 +3 +4 +5 +11 10 10 10 10 10 +10 10 10 10 10 +14 10 10 10 +47 10 10 +100 12 +100 +21 base functions +0 1 2 3 4 5 +0 +1 +2 +3 +4 +5 +88 10 10 10 10 10 +94 11 10 10 10 +97 13 10 10 +99 14 11 +100 14 +100 +21 base + + 10 in-order functions +0 1 2 3 4 5 +0 +1 +2 +3 +4 +5 +74 68 62 59 55 48 +84 75 67 61 57 +92 79 71 64 +98 82 74 +100 83 +100 +21 base + 10 in-order + +100 out-of-order functions +0 1 2 3 4 5 +0 +1 +2 +3 +4 +5 +100 11 10 10 10 10 +100 11 10 10 10 +100 12 10 10 +100 12 11 +100 13 +100 +100 in-order functions +0 1 2 3 4 5 +0 +1 +2 +3 +4 +5 +32 32 30 31 31 30 +38 37 35 33 33 +48 42 40 37 +60 49 44 +77 61 +100 +100 out-of-order +functions +0 1 2 3 4 5 +0 +1 +2 +3 +4 +5 +69 65 59 55 49 42 +82 72 63 56 50 +92 75 65 57 +98 79 67 +100 81 +100 +21 base + +100 out-of-order functions +No. of identity functions in out-of-order composition +No. of displacements in out-of-order compostion +Figure 5: The training data determines if a Transformer +generalizes to an exponential (in-order generalization) +or combinatorial (out-of-order generalization) number +of functions. Each sub-plot uses a different subset of func- +tions (from Fb) to generate the training data and we evaluate +them on combinatorial set of functions generated from 20+1 +functions (one of them being identity). The x-axis varies the +number of displacements and the y-axis varies the number +of compositions—equivalently the number of functions that +are not identity. We make the following observations: (1) A +Transformer trained on just 31 functions (top-middle) gener- +alize to nearly exponentially many or 3125 compositions of +functions. (2) All the above configurations do not general- +ize perfectly to the entire combinatorial set. They however +partially generalize to nearly 4 million compositions of func- +tions. The generalization is worse if we increase the number +of compositions or displacements (see Fig. 2 for pictorial +description of displacements). +On the other hand, we see in-order generalization if a +Transformer is trained on a composition of a permuta- +tion function from Fp and a bijection function from Fb. +In Fig. 6 (right), we train on compositions of two functions, +where one position is one of 25 bijections, and the other is +one of 25 permutations. We vary the number of composi- +tions seen in the training data and find that 250 compositions +in the training data are enough for the model to generalize +to all 625 possible compositions of the two functions. We +note that bijections and permutations operate on orthogonal +features of the input: bijections operate on the value of the +token while permutations operate on the position of the to- +ken. We speculate that this is important for compositional +generalization in the direct prompt format. +Why is compositional generalization harder for direct +prompts? (Appendix C.3) +The ability to run multiple +forward passes through the model allows us tackle a richer +class of problems (Merrill & Sabharwal, 2023). The step- +by-step and direct prompt formats differ because the former +0 +10000 +20000 +Number of iterations +0 +20 +40 +60 +80 +100 +Accuracy on in-order compositions +Train data +100 functions (9%) +500 functions (21%) +1000 functions (38%) +2000 functions (66%) +0 +10000 +20000 +Number of iterations +0 +20 +40 +60 +80 +100 +Accuracy on all compositions +Train data +50 functions (41%) +100 functions (87%) +250 functions (99%) +Figure 6: Compositional generalization is less frequently +seen in the direct prompt format. (Left.) We train a Trans- +former using the direct prompt format on 20+1 bijections +with 5 compositions with 4 choices at each position. The +model fails to generalize to all 3125 compositions even if it +trained on 2000 such functions. (Right.) We train a Trans- +former using the direct prompt format on a composition of +two functions, with one function being one of 25 bijections +and the other function being one of 25 permutations (to- +talling to 625 compositions). The model is able to compose +previously unseen combinations of functions when trained +on 250 of these functions in this scenario. +allows L forward passes through the model, while the latter +only allows one forward pass. As a result, we expect for +the direct prompt format to enable compositional general- +ization, it must compute the L steps of the composition in +the intermediate layers of the model within a single forward +pass itself. For example, consider a model that computes +the functions F and G, and is able to compositionally gen- +eralize to function G ◦F. Since G ◦F is computed using +a single forward pass, G must occur in a layer after F (see +also Fig. 11b). However, this model may not generalize +to F ◦G, since that will require F to occur after G in it +model’s layers. Hence, to compositionally generalize to +both combinations of F and G, a model may have to learn +copies of F and G at multiple layers. This will likely re- +quire training data with large amounts of data diversity so +that most combinations of functions are seen by the model +during training itself. +We further formalize the intuition above in Appendix C. +Specifically, in Appendix C.3, we argue that a model trained +with the direct prompt format requires more compositions +in the training data, by a factor of O(L), compared to a +model trained with the step-by-step format. In Theorem C.2, +we prove that there exists an L-layer Transformer that can +compositionally generalize with direct prompting. However, +empirically, we find that even with the additional training +data, the direct prompt format fails to generalize in Fig. 6 +(left). This is because the existence of a solution need not +guarantee that a Transformer trained with gradient descent +converges to that particular minima. The weights can instead +converge to a minima that only memorizes compositions +7 + +PAGE 8 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +present in the training data. +4.4. Towards a mechanistic understanding +In this section, we try to uncover the underlying mechanism +for compositional generalization exhibited by Transformers +in our setup—particularly for compositions of bijections in +the step-by-step prompt format. Prior work on mechanistic +interpretability often studies smaller neural networks to ex- +tract insights for larger networks (Nelson et al., 2021; Wang +et al., 2022; Chughtai et al., 2023). The rationale relates +to the universality hypothesis (Li et al., 2015; Olah et al., +2020), which states that networks of different scales are +likely to learn similar functions when trained on the same +data. In line with this direction, we attempt to understand a +1-layer Transformer1 trained on our data generating process. +To develop a hypothesis for our mechanistic evaluation, we +first show in Appendix C.1 the existence of 1-layer Trans- +formers that can compositionally generalize to a simplified +version of our task via the step-by-step prompt format. In +particular, our construction uses the attention layer to copy +the relevant task token—similar to an induction head (Ols- +son et al., 2022)—and the feed-forward layer to compute a +single step of the function composition. The model is run +L times serially, where each run computes one step of the +function composition. The attention layer uses a position +encoding as the key and query to determine which tokens to +attend to and propagates the task token as the value. +We next evaluate if the theoretical construction, even though +a simplification, lines up with empirical evaluations on the +actual task. Specifically, we first use linear probing to un- +derstand which layers contribute to improvements in the +accuracy and then visualize the attention maps to under- +stand which tokens the model attends to. +Linear probe accuracy. In Fig. 7 (left), we use a linear +probe to analyze the importance of attention layers and +MLP layers in a 12-layer Transformer. Following Geva et al. +(2022), we fix the parameters of probe to the last linear layer, +i.e., the unembedding layer of the trained model. We use a +Transformer trained on 100 random in-order compositions +of 5 functions identical to the model in Fig. 4a. In Fig. 14 +we show similar linear probe experiments on Transformers +of different sizes and consistently find a sharp increase in +accuracy right after an MLP layer, i.e., the accuracy rarely +increases after an attention layer. +Visualizing attention maps. Analyzing the attention maps +of a 12-layer Transformer for a discernible pattern can be +1In fact, we use a deeper model in most experiments in the +main paper to elicit maximal performance when using the direct +format; the step-by-step format, as we argue in Appendix C, can +generalize compositionally with fewer layers (one, for in-order +generalization). +5 +10 +Transformer Layer +20 +40 +60 +80 +100 +Linear probe accuracy (%) +After attention layer +After MLP layer +xf +xd +f1 +f2 +f3 +f4 +f5 +xf +xd +f1 +f2 +f3 +f4 +f5 +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Figure 7: (Left.) Attention layer picks a function to apply +given the current input, and MLP applies the selected +function for Transformers trained on compositions of +bijections in the step-by-step prompt format. We see +a sharp increases in accuracy after MLP layers in the +last few layers of the Transformer. +We compute the +linear probe accuracy—averaged over in-order compositions +of functions—after the MLP and attention layers at every +layer of the 12-layer Transformer. We observe a similar +trend in Transformers of different depths (fig. 14). (Right.) +Attention is largest at the relevant data and task token. +We plot the causal attention mask of a 1-layer Transformer +trained using the step-by-step format on compositions of 5 +in-order bijections (setup of Fig. 4). Keeping the prompt +fixed to a specific composition of functions, we plot the +attention map averaged over 1000 samples. We observe that +the current data token attends to the a specific task relevant +to compute the next step of the composition. +difficult. We hence analyze the attention maps of a 1-layer +Transformer trained for step-by-step prompts, which also +exhibits in-order generalization. In Fig. 7 (right), we plot +the attention map for a predefined composition of functions +from the set Fb. Keeping the task tokens to be fixed corre- +sponding to the predefined composition, we sample 1000 +data tokens and compute the attention map for the 1-layer +model. The average of these maps is reported in the figure. +We see that all data tokens attend to: (i) the task token that +specifies the current function to be computed and (ii) the +data token that the function is to be applied to. +The results above remarkably line up with our theoretical +construction. For example, the attention maps in Fig. 7 al- +ways attend to the relevant task tokens and data token when +computing the next step of the composition. The task and +data tokens are all embedded in orthogonal spaces, similar +to our construction, with the exception of 5 tokens which all +correspond to the the identity function (see Appendix B.7). +In parallel, the linear probe accuracy for a 1-layer Trans- +former in Fig. 14 shows no increase in accuracy after the +attention layer (similar to results in Fig. 7), but a sharp in- +crease in accuracy occurs after the MLP layers, indicating +that the function is entirely computed in the MLP layers. +8 + +PAGE 9 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +0 +10000 +20000 +0 +25 +50 +75 +100 +21 base + 0 random +0 +10000 +20000 +0 +25 +50 +75 +100 +21 base + 10 random +0 +10000 +20000 +0 +25 +50 +75 +100 +25 random +0 +10000 +20000 +0 +25 +50 +75 +100 +50 random +No. of compositions +5 +4 +3 +2 +1 +0 +Accuracy on compositions of k functions (%) +Number of iterations +Figure 8: Transformers trained on baseand some ran- +dom functions generalizes first to a composition of more +functions before it generalizes to a composition of few of +them. Each line is the average accuracy over all composi- +tion of k functions and each subplot is a Transformer trained +on a different subset of functions. The base is trained on +the individual functions and these Transformers learn to +compose a smaller set of functions (more functions in com- +position are identity) before learning to compose many of +them. The opposite is true when the model is trained on a +random subset of 25 compositions of functions. +4.5. Training dynamics +We would like to study how compositional capabilities +evolve over the course of training (Okawa et al., 2023) and +understand if Transformers learn functions F1 and F2 be- +fore learning compositions like F1 ◦F2. In Fig. 8, we track +the accuracy over the course of training to understand if +compositions of fewer functions are learned before com- +positions of many functions. The setup for this figure is +identical to Fig. 4a with the accuracy faceted by the num- +ber of function compositions. We find that the order in +which functions are learned depends entirely on the training +data. If the training data consists of base and very few in- +order compositions, then a Transformer generalizes to fewer +compositions (more identities) first before generalizing to +compositions of multiple functions. On the other hand, if +the model is trained on 25 random in-order compositions, +then it is better at generalizing to more complex composi- +tions of these functions; this trend is lost when we train on +50 random in-order compositions. +5. Conclusion +Given several recent works focused on prediction or elici- +tation of capabilities in pretrained models, we ask whether +the very motivation guiding these works is tractable: can +we possibly characterize all capabilities of a model, specif- +ically a Transformer, pretrained on a compositional data +domain? To address this question, we proposed a syn- +thetic, but well-defined, data domain and formalized the +notion of a capability as representing a function defined +over the domain. Breaking compositional generalization +into two relevant scenarios (in-order vs. out-of-order), we +showed that the compositional structure of the data forces +a model to learn to compose at relatively minimal data di- +versity, which indicatively address our primary question: +an appropriate prompt could make the model compose its +capabilities, yielding an “explosion of capabilities”. This +can arguably make tractable analysis of capabilities in a +pretrained model relatively difficult. +Impact Statement +This paper presents work whose goal is to advance the field +of Machine Learning. There are many potential societal +consequences of our work, none which we feel must be +specifically highlighted here. +Acknowledgements +RR thanks Kento Nishi, Gautam Reddy and Eric Bigelow +for their discussions at the early stages of this project. RR +thanks AWS AI, for their gift to Penn Engineering’s ASSET +Center for Trustworthy AI. ESL was partially supported by +the National Science Foundation (IIS-2008151). +Author Contributions +ESL and RR conceived the initial project direction and +defined the problem setup with with inputs from HT and +MK. The experiments were led by RR with inputs from ESL, +HT and MK. The writing of the introduction and related +work was led by ESL with help from HT and RR. RR, ESL +and HT extensively collaborated on the methods section. +The results and appendix were led by RR. The expository +figures were created by HT and RR. HT and RPD acted as +advisors in the work. +References +Abid, A., Farooqi, M., and Zou, J. Persistent anti-muslim +bias in large language models. In Proceedings of the +2021 AAAI/ACM Conference on AI, Ethics, and Society, +pp. 298–306, 2021. +Ahn, K., Cheng, X., Daneshmand, H., and Sra, S. +Transformers learn to implement preconditioned gra- +dient descent for in-context learning. +arXiv preprint +arXiv:2306.00297, 2023. +9 + +PAGE 10 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +Allen-Zhu, Z. and Li, Y. Physics of language models: Part +3.1, knowledge storage and extraction. arXiv preprint +arXiv:2309.14316, 2023a. +Allen-Zhu, Z. and Li, Y. +Physics of language mod- +els: Part 3.2, knowledge manipulation. arXiv preprint +arXiv:2309.14402, 2023b. +Allen-Zhu, Z. and Li, Y. Physics of language models: Part 1, +context-free grammar. arXiv preprint arXiv:2305.13673, +2023c. +Andreas, J. Measuring compositionality in representation +learning. arXiv preprint arXiv:1902.07181, 2019. +Arora, S. and Goyal, A. +A theory for emergence of +complex skills in language models. +arXiv preprint +arXiv:2307.15936, 2023. +Austin, J., Odena, A., Nye, M., Bosma, M., Michalewski, +H., Dohan, D., Jiang, E., Cai, C., Terry, M., Le, Q., et al. +Program synthesis with large language models. arXiv +preprint arXiv:2108.07732, 2021. +Bhattamishra, S., Ahuja, K., and Goyal, N. On the abil- +ity and limitations of transformers to recognize formal +languages. arXiv preprint arXiv:2009.11264, 2020. +Bommasani, R., Hudson, D. A., Adeli, E., Altman, R., +Arora, S., von Arx, S., Bernstein, M. S., Bohg, J., Bosse- +lut, A., Brunskill, E., et al. On the opportunities and risks +of foundation models. arXiv preprint. arXiv:2108.07258, +2021. +Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., +Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., +Askell, A., et al. Language models are few-shot learners. +Advances in neural information processing systems, 33: +1877–1901, 2020. +Bubeck, S., Chandrasekaran, V., Eldan, R., Gehrke, J., +Horvitz, E., Kamar, E., Lee, P., Lee, Y. T., Li, Y., +Lundberg, S., et al. Sparks of artificial general intel- +ligence: Early experiments with gpt-4. arXiv preprint +arXiv:2303.12712, 2023. +Chan, A., Salganik, R., Markelius, A., Pang, C., Rajkumar, +N., Krasheninnikov, D., Langosco, L., He, Z., Duan, +Y., Carroll, M., et al. Harms from increasingly agentic +algorithmic systems. arXiv preprint arXiv:2302.10329, +2023. +Chan, S., Santoro, A., Lampinen, A., Wang, J., Singh, A., +Richemond, P., McClelland, J., and Hill, F. Data distri- +butional properties drive emergent in-context learning in +transformers. Advances in Neural Information Processing +Systems, 35:18878–18891, 2022. +Chen, M., Tworek, J., Jun, H., Yuan, Q., Pinto, H. P. d. O., +Kaplan, J., Edwards, H., Burda, Y., Joseph, N., Brockman, +G., et al. Evaluating large language models trained on +code. arXiv preprint arXiv:2107.03374, 2021. +Chowdhery, A., Narang, S., Devlin, J., Bosma, M., Mishra, +G., Roberts, A., Barham, P., Chung, H. W., Sutton, C., +Gehrmann, S., et al. Palm: Scaling language modeling +with pathways. arXiv preprint arXiv:2204.02311, 2022. +Chughtai, B., Chan, L., and Nanda, N. A toy model of uni- +versality: Reverse engineering how networks learn group +operations, may 2023. URL http://arxiv. org/abs/2302, +3025, 2023. +Csord´as, R., Irie, K., and Schmidhuber, J. The devil is in the +detail: Simple tricks improve systematic generalization of +transformers. arXiv preprint arXiv:2108.12284, 2021a. +Csord´as, R., Irie, K., and Schmidhuber, J. +The neu- +ral data router: Adaptive control flow in transform- +ers improves systematic generalization. arXiv preprint +arXiv:2110.07732, 2021b. +Csord´as, R., Irie, K., and Schmidhuber, J. Ctl++: Evaluating +generalization on never-seen compositional patterns of +known functions, and compatibility of neural representa- +tions. arXiv preprint arXiv:2210.06350, 2022. +Fodor, J. A. The language of thought, volume 5. Harvard +university press, 1975. +Fodor, J. A. and Lepore, E. The compositionality papers. +Oxford University Press, 2002. +Fodor, J. A. and Pylyshyn, Z. W. Connectionism and cogni- +tive architecture: A critical analysis. Cognition, 28(1-2): +3–71, 1988. +Ganguli, D., Hernandez, D., Lovitt, L., Askell, A., Bai, Y., +Chen, A., Conerly, T., Dassarma, N., Drain, D., Elhage, +N., et al. Predictability and surprise in large generative +models. In Proceedings of the 2022 ACM Conference +on Fairness, Accountability, and Transparency, pp. 1747– +1764, 2022. +Garg, S., Tsipras, D., Liang, P. S., and Valiant, G. What +can transformers learn in-context? a case study of sim- +ple function classes. Advances in Neural Information +Processing Systems, 35:30583–30598, 2022. +Garrido-Mu˜noz, I., Montejo-R´aez, A., Mart´ınez-Santiago, +F., and Ure˜na-L´opez, L. A. A survey on bias in deep nlp. +Applied Sciences, 11(7):3184, 2021. +Gehman, S., Gururangan, S., Sap, M., Choi, Y., and +Smith, N. A. Realtoxicityprompts: Evaluating neural +toxic degeneration in language models. arXiv preprint +arXiv:2009.11462, 2020. +10 + +PAGE 11 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +Geva, M., Caciularu, A., Dar, G., Roit, P., Sadde, S., Shlain, +M., Tamir, B., and Goldberg, Y. Lm-debugger: An inter- +active tool for inspection and intervention in transformer- +based language models. arXiv preprint arXiv:2204.12130, +2022. +Hendrycks, D. and Gimpel, K. Gaussian error linear units +(gelus). arXiv preprint arXiv:1606.08415, 2016. +Henighan, T., Kaplan, J., Katz, M., Chen, M., Hesse, C., +Jackson, J., Jun, H., Brown, T. B., Dhariwal, P., Gray, S., +et al. Scaling laws for autoregressive generative modeling. +arXiv preprint arXiv:2010.14701, 2020. +Hernandez, D., Kaplan, J., Henighan, T., and McCan- +dlish, S. +Scaling laws for transfer. +arXiv preprint +arXiv:2102.01293, 2021. +Hoffmann, J., Borgeaud, S., Mensch, A., Buchatskaya, E., +Cai, T., Rutherford, E., Casas, D. d. L., Hendricks, L. A., +Welbl, J., Clark, A., et al. Training compute-optimal +large language models. arXiv preprint arXiv:2203.15556, +2022. +Honovich, O., Shaham, U., Bowman, S. R., and Levy, +O. +Instruction induction: +From few examples to +natural language task descriptions. +arXiv preprint +arXiv:2205.10782, 2022. +Hosseini, A., Vani, A., Bahdanau, D., Sordoni, A., and +Courville, A. On the compositional generalization gap +of in-context learning. arXiv preprint arXiv:2211.08473, +2022. +Huang, P.-S., Zhang, H., Jiang, R., Stanforth, R., Welbl, J., +Rae, J., Maini, V., Yogatama, D., and Kohli, P. Reducing +sentiment bias in language models via counterfactual +evaluation. arXiv preprint arXiv:1911.03064, 2019. +Hupkes, D., Singh, A., Korrel, K., Kruszewski, G., and +Bruni, E. Learning compositionally through attentive +guidance. arXiv preprint arXiv:1805.09657, 2018. +Hupkes, D., Dankers, V., Mul, M., and Bruni, E. Compo- +sitionality decomposed: How do neural networks gen- +eralise? Journal of Artificial Intelligence Research, 67: +757–795, 2020. +Jiang, L., Hwang, J. D., Bhagavatula, C., Le Bras, R., Liang, +J., Dodge, J., Sakaguchi, K., Forbes, M., Borchardt, J., +Gabriel, S., et al. Can machines learn morality? the +delphi experiment. arXiv e-prints, pp. arXiv–2110, 2021. +Jones, A. L. Scaling scaling laws with board games. arXiv +preprint arXiv:2104.03113, 2021. +Kojima, T., Gu, S. S., Reid, M., Matsuo, Y., and Iwasawa, +Y. Large language models are zero-shot reasoners. arXiv +preprint arXiv:2205.11916, 2022. +Lake, B. and Baroni, M. Generalization without systematic- +ity: On the compositional skills of sequence-to-sequence +recurrent networks. In International conference on ma- +chine learning, pp. 2873–2882. PMLR, 2018. +Lee, T., Yasunaga, M., Meng, C., Mai, Y., Park, J. S., Gupta, +A., Zhang, Y., Narayanan, D., Teufel, H. B., Bellagente, +M., et al. Holistic evaluation of text-to-image models. +arXiv preprint arXiv:2311.04287, 2023. +Lepori, M. A., Serre, T., and Pavlick, E. Break it down: Ev- +idence for structural compositionality in neural networks. +arXiv preprint arXiv:2301.10884, 2023. +Lewis, M., Yu, Q., Merullo, J., and Pavlick, E. Does clip +bind concepts? probing compositionality in large image +models. arXiv preprint arXiv:2212.10537, 2022. +Li, K., Hopkins, A. K., Bau, D., Vi´egas, F., Pfister, H., +and Wattenberg, M. Emergent World Representations: +Exploring a Sequence Model Trained on a Synthetic Task, +2023a. Comment: ICLR 2023 oral (notable-top-5%): +https://openreview.net/forum?id=DeG07 TcZvT ; code: +https://github.com/likenneth/othello world. +Li, Y., Yosinski, J., Clune, J., Lipson, H., and Hopcroft, +J. +Convergent learning: +Do different neural net- +works learn the same representations? +arXiv preprint +arXiv:1511.07543, 2015. +Li, Y., Ildiz, M. E., Papailiopoulos, D., and Oymak, S. +Transformers as algorithms: Generalization and implicit +model selection in in-context learning. arXiv preprint +arXiv:2301.07067, 2023b. +Li, Y., Sreenivasan, K., Giannou, A., Papailiopoulos, D., +and Oymak, S. Dissecting chain-of-thought: A study on +compositional in-context learning of mlps. arXiv preprint +arXiv:2305.18869, 2023c. +Liang, P., Bommasani, R., Lee, T., Tsipras, D., Soylu, D., +Yasunaga, M., Zhang, Y., Narayanan, D., Wu, Y., Kumar, +A., et al. Holistic evaluation of language models. arXiv +preprint arXiv:2211.09110, 2022. +Lin, S., Hilton, J., and Evans, O. Truthfulqa: Measuring +how models mimic human falsehoods. arXiv preprint +arXiv:2109.07958, 2021. +Liˇska, A., Kruszewski, G., and Baroni, M. Memorize or gen- +eralize? searching for a compositional rnn in a haystack. +arXiv preprint arXiv:1802.06467, 2018. +Liu, B., Ash, J. T., Goel, S., Krishnamurthy, A., and Zhang, +C. +Transformers learn shortcuts to automata. +arXiv +preprint arXiv:2210.10749, 2022. +Liu, H., Li, C., Wu, Q., and Lee, Y. J. Visual instruction +tuning. arXiv preprint arXiv:2304.08485, 2023. +11 + +PAGE 12 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +Lubana, E. S., Bigelow, E. J., Dick, R. P., Krueger, D., and +Tanaka, H. Mechanistic mode connectivity. In Inter- +national Conference on Machine Learning, pp. 22965– +23004. PMLR, 2023. +McGuffie, K. and Newhouse, A. The radicalization risks +of gpt-3 and advanced neural language models. arXiv +preprint arXiv:2009.06807, 2020. +Merrill, W. and Sabharwal, A. +The expresssive power +of transformers with chain of thought. arXiv preprint +arXiv:2310.07923, 2023. +Murty, S., Sharma, P., Andreas, J., and Manning, C. D. +Characterizing intrinsic compositionality in transformers +with tree projections. arXiv preprint arXiv:2211.01288, +2022. +Myers, A. N. and Wilf, H. S. Some new aspects of the +coupon collector’s problem. SIAM review, 48(3):549– +565, 2006. +Nanda, N., Chan, L., Liberum, T., Smith, J., and Stein- +hardt, J. Progress measures for grokking via mechanistic +interpretability. arXiv preprint arXiv:2301.05217, 2023a. +Nanda, N., Lee, A., and Wattenberg, M. Emergent linear rep- +resentations in world models of self-supervised sequence +models. arXiv preprint arXiv:2309.00941, 2023b. +Nelson, E., Neel, N., Catherine, O., Tom, H., Nicholas, J., +Ben, M., Amanda, A., Yuntao, B., Anna, C., Tom, C., +et al. A mathematical framework for transformer circuits. +Transformer Circuits Thread, 2021. +Nye, M., Andreassen, A. J., Gur-Ari, G., Michalewski, H., +Austin, J., Bieber, D., Dohan, D., Lewkowycz, A., Bosma, +M., Luan, D., et al. Show your work: Scratchpads for +intermediate computation with language models. arXiv +preprint arXiv:2112.00114, 2021. +Okawa, M., Lubana, E. S., Dick, R. P., and Tanaka, H. +Compositional abilities emerge multiplicatively: Explor- +ing diffusion models on a synthetic task. arXiv preprint +arXiv:2310.09336, 2023. +Olah, C., Cammarata, N., Schubert, L., Goh, G., Petrov, +M., and Carter, S. Zoom in: An introduction to circuits. +Distill, 5(3):e00024–001, 2020. +Olsson, C., Elhage, N., Nanda, N., Joseph, N., DasSarma, +N., Henighan, T., Mann, B., Askell, A., Bai, Y., Chen, +A., Conerly, T., Drain, D., Ganguli, D., Hatfield-Dodds, +Z., Hernandez, D., Johnston, S., Jones, A., Kernion, J., +Lovitt, L., Ndousse, K., Amodei, D., Brown, T., Clark, J., +Kaplan, J., McCandlish, S., and Olah, C. In-context learn- +ing and induction heads. Transformer Circuits Thread, +2022. https://transformer-circuits.pub/2022/in-context- +learning-and-induction-heads/index.html. +Ontan´on, S., Ainslie, J., Cvicek, V., and Fisher, Z. Making +transformers solve compositional tasks. arXiv preprint +arXiv:2108.04378, 2021. +Parrish, A., Chen, A., Nangia, N., Padmakumar, V., Phang, +J., Thompson, J., Htut, P. M., and Bowman, S. R. Bbq: A +hand-built bias benchmark for question answering. arXiv +preprint arXiv:2110.08193, 2021. +Press, O. and Wolf, L. Using the output embedding to im- +prove language models. arXiv preprint arXiv:1608.05859, +2016. +Qin, Y., Liang, S., Ye, Y., Zhu, K., Yan, L., Lu, Y., Lin, Y., +Cong, X., Tang, X., Qian, B., et al. Toolllm: Facilitating +large language models to master 16000+ real-world apis. +arXiv preprint arXiv:2307.16789, 2023. +Radford, A., Narasimhan, K., Salimans, T., Sutskever, I., +et al. Improving language understanding by generative +pre-training. 2018. +Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., +Sutskever, I., et al. Language models are unsupervised +multitask learners. OpenAI blog, 1(8):9, 2019. +Rae, J. W., Borgeaud, S., Cai, T., Millican, K., Hoffmann, +J., Song, F., Aslanides, J., Henderson, S., Ring, R., +Young, S., et al. Scaling language models: Methods, +analysis & insights from training gopher. arXiv preprint +arXiv:2112.11446, 2021. +Razeghi, Y., Logan IV, R. L., Gardner, M., and Singh, S. +Impact of pretraining term frequencies on few-shot rea- +soning. arXiv preprint arXiv:2202.07206, 2022. +Sanh, V., Webson, A., Raffel, C., Bach, S. H., Sutawika, L., +Alyafeai, Z., Chaffin, A., Stiegler, A., Scao, T. L., Raja, +A., et al. Multitask prompted training enables zero-shot +task generalization. arXiv preprint arXiv:2110.08207, +2021. +Saparov, A. and He, H. Language models are greedy rea- +soners: A systematic formal analysis of chain-of-thought. +arXiv preprint arXiv:2210.01240, 2022. +Schulz, E., Tenenbaum, J., Duvenaud, D. K., Speekenbrink, +M., and Gershman, S. J. Probing the compositionality +of intuitive functions. Advances in neural information +processing systems, 29, 2016. +Shah, R., Varma, V., Kumar, R., Phuong, M., Krakovna, +V., Uesato, J., and Kenton, Z. Goal misgeneralization: +Why correct specifications aren’t enough for correct goals. +arXiv preprint arXiv:2210.01790, 2022. +Sharma, U. and Kaplan, J. +A neural scaling law from +the dimension of the data manifold. +arXiv preprint +arXiv:2004.10802, 2020. +12 + +PAGE 13 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +Sheng, E., Chang, K.-W., Natarajan, P., and Peng, N. The +woman worked as a babysitter: On biases in language +generation. arXiv preprint arXiv:1909.01326, 2019. +Shevlane, T., Farquhar, S., Garfinkel, B., Phuong, M., Whit- +tlestone, J., Leung, J., Kokotajlo, D., Marchal, N., An- +derljung, M., Kolt, N., et al. Model evaluation for extreme +risks. arXiv preprint arXiv:2305.15324, 2023. +Srivastava, A., Rastogi, A., Rao, A., Shoeb, A. A. M., Abid, +A., Fisch, A., Brown, A. R., Santoro, A., Gupta, A., +Garriga-Alonso, A., et al. Beyond the imitation game: +Quantifying and extrapolating the capabilities of language +models. arXiv preprint arXiv:2206.04615, 2022. +Suzgun, M., Scales, N., Sch¨arli, N., Gehrmann, S., Tay, +Y., Chung, H. W., Chowdhery, A., Le, Q. V., Chi, +E. H., Zhou, D., et al. Challenging big-bench tasks and +whether chain-of-thought can solve them. arXiv preprint +arXiv:2210.09261, 2022. +Tamkin, A., Brundage, M., Clark, J., and Ganguli, D. +Understanding the capabilities, limitations, and soci- +etal impact of large language models. arXiv preprint +arXiv:2102.02503, 2021. +Tay, Y., Wei, J., Chung, H. W., Tran, V. Q., So, D. R., +Shakeri, S., Garcia, X., Zheng, H. S., Rao, J., Chowdhery, +A., et al. Transcending scaling laws with 0.1% extra +compute. arXiv preprint arXiv:2210.11399, 2022. +Tenney, I., Das, D., and Pavlick, E. Bert rediscovers the +classical nlp pipeline. arXiv preprint arXiv:1905.05950, +2019. +Thoppilan, R., De Freitas, D., Hall, J., Shazeer, N., Kul- +shreshtha, A., Cheng, H.-T., Jin, A., Bos, T., Baker, L., +Du, Y., et al. Lamda: Language models for dialog appli- +cations. arXiv preprint arXiv:2201.08239, 2022. +Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, +M.-A., Lacroix, T., Rozi`ere, B., Goyal, N., Hambro, E., +Azhar, F., et al. Llama: Open and efficient foundation lan- +guage models. arXiv preprint arXiv:2302.13971, 2023. +Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, +L., Gomez, A. N., Kaiser, L., and Polosukhin, I. Atten- +tion is all you need. Advances in neural information +processing systems, 30, 2017. +Von Oswald, J., Niklasson, E., Randazzo, E., Sacramento, +J., Mordvintsev, A., Zhmoginov, A., and Vladymyrov, +M. Transformers learn in-context by gradient descent. +In International Conference on Machine Learning, pp. +35151–35174. PMLR, 2023. +Wang, K., Variengien, A., Conmy, A., Shlegeris, B., and +Steinhardt, J. Interpretability in the wild: a circuit for +indirect object identification in gpt-2 small. arXiv preprint +arXiv:2211.00593, 2022. +Wei, J., Bosma, M., Zhao, V. Y., Guu, K., Yu, A. W., Lester, +B., Du, N., Dai, A. M., and Le, Q. V. Finetuned lan- +guage models are zero-shot learners. +arXiv preprint +arXiv:2109.01652, 2021. +Wei, J., Tay, Y., Bommasani, R., Raffel, C., Zoph, B., +Borgeaud, S., Yogatama, D., Bosma, M., Zhou, D., Met- +zler, D., et al. Emergent abilities of large language models. +arXiv preprint arXiv:2206.07682, 2022a. +Wei, J., Wang, X., Schuurmans, D., Bosma, M., Chi, E., +Le, Q., and Zhou, D. Chain of thought prompting elic- +its reasoning in large language models. arXiv preprint +arXiv:2201.11903, 2022b. +Weidinger, L., Mellor, J., Rauh, M., Griffin, C., Uesato, +J., Huang, P.-S., Cheng, M., Glaese, M., Balle, B., +Kasirzadeh, A., et al. Ethical and social risks of harm +from language models. arXiv preprint arXiv:2112.04359, +2021. +Weiss, G., Goldberg, Y., and Yahav, E. Thinking like trans- +formers. In International Conference on Machine Learn- +ing, pp. 11080–11090. PMLR, 2021. +Xu, A., Pathak, E., Wallace, E., Gururangan, S., Sap, +M., and Klein, D. +Detoxifying language models +risks marginalizing minority voices. +arXiv preprint +arXiv:2104.06390, 2021. +Xu, J., Ju, D., Li, M., Boureau, Y.-L., Weston, J., and Dinan, +E. Recipes for safety in open-domain chatbots. arXiv +preprint arXiv:2010.07079, 2020. +Xu, W. and Tang, A. K. A generalized coupon collector prob- +lem. Journal of Applied Probability, 48(4):1081–1094, +2011. doi: 10.1239/jap/1324046020. +Yu, D., Kaur, S., Gupta, A., Brown-Cohen, J., Goyal, +A., and Arora, S. +Skill-mix: A flexible and expand- +able family of evaluations for ai models. arXiv preprint +arXiv:2310.17567, 2023. +Yun, T., Bhalla, U., Pavlick, E., and Sun, C. Do vision- +language pretrained models learn composable primitive +concepts? arXiv preprint arXiv:2203.17271, 2022. +Zhou, H., Bradley, A., Littwin, E., Razin, N., Saremi, O., +Susskind, J., Bengio, S., and Nakkiran, P. What algo- +rithms can transformers learn? a study in length general- +ization. arXiv preprint arXiv:2310.16028, 2023. +13 + +PAGE 14 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +A. Experimental Details +A.1. Training methodology +Inputs ++ +Learnable +Position Encoding +Causal Attention +Layer Norm +MLP + GeLU +N layers +Layer Norm ++ ++ +Embedding +Softmax +Embedding +Figure 9: We use nanoGPT as the Transformer architecture +in all our experiments. The core Transformer block is a Lay- +erNorm, a causal attention block, followed by another layer- +norm and a 2-layer multi-layer perceptron (MLP). The Trans- +former block has two residual connections. +Transformer architecture +We use nanoGPT2 with 12 +layers, 12 attention heads and an embedding dimension of +size 120. Each transformer block contains a causal atten- +tion layer, layer-norms, residual connections and an MLP +(see Fig. 9). The MLP contains two fully-connected lay- +ers sandwiched by a GELU layer (Hendrycks & Gimpel, +2016) The first fully-connected layers has a hidden layer +with size 4 times the embedding dimension (480) and the +second hidden layer has a size equal to the embedding +dimension (120). +The input tokens are converted to one-hot vectors be- +fore being passed through to the model. +We do not +use dropout or biases in the LayerNorm layers. We use +weight-tying (Press & Wolf, 2016), i.e., the input and +the output embedding layers share weights. Finally, we +make use of mixed-precision (bf16 in torch) to speed-up +training. +Loss and Optimizer +Models are trained using an au- +toregressive objective to predict the next token using the +cross-entropy loss. Specifically, assume a sequence of +tokens of t tokens denoted by x1:t. Let pw(y | x1:t) de- +note the probability distribution over the next token as +predicted by a model with weights w. For a sequence +x1:T of length T, the autoregressive objective is +L(w) = − +T −1 +X +t=1 +log pw (y = xt+1 | x1:t) . +Training is performed for 100 epochs with a cosine-annealed scheduled with warmup. We use an initial learning rate of 3e-4 +annealed eventually to 6e-5. We use AdamW as the optimizer (β1 = 0.9 and β2 = 0.95) with a weight decay of 10−3 and a +batch-size of 512. We also make use of gradient clipping with a magnitude of 1. +A.2. Data generating process +Data and task tokens. +Both data and task tokens are converted to one-hot vectors before being fed to the Transformer. +The set of data tokens is denoted by Xd and the size of the vocabulary, |Xd|, is 10 in all our experiments. The data tokens +in the input xd ∈X6 +d is a sequence of 6 tokens and is the input to the function composition. The 6 tokens are sampled +uniformly at random from Xd with replacement. +There are two sets of functions considered in this work. The set of functions Fb (which we refer to as bijections) applies a +lookup table in an element-wise fashion to each of the 6 tokens in xd. The set of functions in Fp permute the 6 tokens in xd. +The family of functions in Fb and Fp are described in Fig. 10. Each function from Fp and Xb has its own task token in XF . +The input starts with a sequence of L task tokens xf ∈XL +F . The number of compositions is generally L = 5, but in a few +experiments like Figs. 15, 6 (Right), L = 2. +Sampling task tokens +The task tokens can be sampled such that they satisfy certain properties. For example, let us +consider the composition of two functions—one from the set F1 ⊂Fp and another from F2 ⊂Fb (which is the setting in +Fig. 6 (Right)). We can restrict the training data to compositions from the set F2 ◦F1 which are in-order compositions +2https://github.com/karpathy/nanoGPT +14 + +PAGE 15 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +(see Fig. 2). Alternatively, we can also choose to include out-of-order compositions, which include compositions from +F1 ◦F1, F2 ◦F2 and F1 ◦F2. In Fig. 6 (Right), we restrict our training and evaluation to in-order compositions of functions +and we observe that training on a subset of the elements from F2 ◦F1 suffices to compositionally generalize all functions in +the set. +Two other commonly used subsets of functions are base and random. Consider F1, F2, . . . , F5 ⊂Fb. The set random con- +siders k functions from the set F5 ◦F4 ◦· · · ◦F1 which are drawn uniformly at random. +base is used to test if the compositionality is seen when the Transformer is trained on the individual functions from +Fi for all i ∈[5]. In the training data, all compositions have 4 of the 5 functions to be the identity function I, i.e it +considers compositions of the form I ◦I ◦F3 ◦I ◦I or I ◦F4 ◦· · · ◦I. There are a total of 1 + P5 +i=1 Fi such functions; +the 1 is when all 5 functions in the composition are identity. The model is never trained on the composition of two or +more functions, and at least compositions of 3 functions are necessary to generalize to all in-order compositions Fig. 18. +xd3 +xd9 +xd2 +xd8 +xd7 +xd3 +xd8 +xd3 +xd9 +xd3 +xd2 +xd7 +xd +Fp(xd) +Fp ∈ℱp += += +xd +Fb(xd) +Fb ∈ℱb += + Set of Bijections ℱb + Set of Permutations ℱp +g +g +g +g +g +g +g : Xd ↦Xd +xd1 →xd10 +xd2 →xd4 +xd3 →xd6 +xd4 →xd9 +xd5 →xd3 +xd6 →xd2 +xd7 →xd5 +xd8 →xd7 +xd9 →xd1 +xd10 →xd8 +xd8 +xd3 +xd9 +xd3 +xd2 +xd7 += +xd7 +xd6 +xd1 +xd6 +xd4 +xd5 +Figure 10: A permutation from Fp permutes the 6 tokens in the input +xd. A bijection from Fb applies a lookup table to each of the 6 tokens +individually. +Generating a sequence of tokens +A se- +quence starts with a sequence of two task +tokens xf = [xF1, xF2] followed by a se- +quence of data tokens xd. +The sequence +can either be presented in: (i) The step-by- +step format, where the intermediate outputs +are also included in the sequence; e.g., the +sequence in the step-by-step format would +look like [xF1, xF2, xd, F1(xd), F2(F1(xd))] +(see Fig. 11a) or (ii) The direct format, +which does not include the intermediate out- +puts of the composition in the sequence +and an example of such a sequence is +[xF1, xF2, xd, F2(F1(xg))] (see Fig. 11b). +The step-by-step and direct formats are also +discussed in Fig. 3. The training data consists +of 100,000 sequences for all experiments in +one of the two formats. +g1 h2 x +f2(x) +f2 +f2(x) +g1(f2(x)) +h1((g1(f2(x))) +f1 +f2 +f3 +h2 +g1 +h1 +g2 +h3 +g1 h2 x +f2 +f2(x) +g1 h2 x +f2 +g1(f2(x)) +f1 +f2 +f3 +h2 +g1 +h1 +g2 +h3 +f1 +f2 +f3 +h2 +g1 +h1 +g2 +h3 +(a) +h1((g1(f2(x))) +f1 +f2 +f3 +h2 +g1 +h1 +g2 +h3 +g1 h2 x +f2 +(b) +Figure 11: Step-by-step composition v.s. Direct composition. We test two possible routes for compositions. (a) Step-by- +step prompting, which allows for generating intermediate outputs. (b) Direct prompting, where the model must compose the +functions without the intermediate outputs. +Evaluating compositions +When evaluating trained models, we evaluate on 1000 different inputs for every composition +of functions. Since Fig. 5 requires us to evaluate on a combinatorial set of functions, we sample 1000 functions (or the +15 + +PAGE 16 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +total number of functions, whichever was lower) for each cell which can be identified by the displacement and number +of compositions; we then compute the accuracy averaged over those functions to populate the cell. The accuracy of a +completion is calculated by averaging the accuracy of the last six tokens. We see that qualitative trends do not change when +we use different metrics Fig. 19. +Computing linear probe accuracy +We consider the outputs after every attention block and every MLP block (including +the residual stream in both cases). We then pass these outputs through the final embedding layer and a Softmax layer to get +predictions over the next token. We use these predictions to compute the accuracy at that layer. The accuracy is averaged +over 1000 different input data tokens and for 200 different compositions of functions. +B. Additional Experiments +B.1. Sweeping hyper-parameters of the Transformer +2 +4 +6 +8 +10 +12 +Number of layers +0 +20 +40 +60 +80 +100 +Accuracy (%) +Accuracy of a 1-layer Transformer +Figure 12: Transformers requires at least 2-3 layers for +compositional generalization with the direct prompt for- +mat. We vary the number of layers in the Transformer and +train on direct composition in a setup identical to Fig. 6 (Right). +We vary the number of layers, the number of attention +heads, and the embedding dimension of the nanoGPT +model in Fig. 13. We consider a setup identical to Fig. 4; +all models are trained on 50 random in-order composi- +tions of 5 bijections. We report accuracy averaged over +all 3125 in-order compositions. +We make the following observations. (1) Most surpris- +ingly, the accuracy reduces as the number of layers be- +come huge for this compositional task; we expect that this +is due to issues with optimization of a large depth model. +(2) The accuracy does not change with the number of at- +tention heads for a 1-layer Transformer. (3) The accuracy +increases as we increase the embedding dimension and +the model under fits the training data when the embedding +dimension is too small. +0 +20 +40 +60 +Number of layers +0 +20 +40 +60 +80 +100 +Accuracy (%) +Accuracy of Transformer with 1 Attention-head +2 +4 +6 +8 +10 +12 +Number of heads +0 +20 +40 +60 +80 +100 +Accuracy (%) +Accuracy of a 1-layer Transformer +Figure 13: We see compositionality in Transformers even if we change the number of layers and attention heads. +Compositionality is seen even in a 1-layer Transformer when trained with the step-by-step prompt format on 50 in-order +compositions of bijections. However the ability to compose degrades as we increase the number of layers in the Transformer. +B.2. LSTMs do not learn to compose +We report results on autoregressively trained LSTMs using the direct prompt format from Table 1 and the step-by-step prompt +format in Table 3. LSTMs fail to generalize outside of the training data while Transformers generalize compositionally +in both these scenarios. This points to an inductive bias that helps Transformers trained with an autoregressive objective +generalize. Specifically, our mechanistic evaluation in Sec. 4.4 shows this is likely attributable to the use of Attention. +The LSTMs are trained using the same data using the autoregressive objective defined in Appendix A. We use the AdamW +optimizer with learning rate equal to 3e-4 (β1 = 0.9 and β2 = 0.95), batch size of 512 and weight decay of 1e-4 for 150 +16 + +PAGE 17 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +epochs. As is common, we do not use a positional embedding, since the architecture is not permutation invariant. +Hidden dimension +Layers +256 +5124 +1 +22.5 +46.0 +2 +33.4 +69.1 +Table 1: LSTMs fail to compose in the direct prompt format. We train an +LSTM on 250 composition of two functions (one permutation and one bijection) +in the direct prompt format and tabulate the accuracy (%); the setup is identical +to Fig. 6 (Right). +The inputs are passed through an input +embedding layer before being passed +to the LSTM and the outputs of the +LSTM are also passed through a linear +layer which outputs the logits. In our +experiments, we vary the number of +stacked LSTMs (or no. of layers) and +the dimension of the internal hidden +vector. +Despite our attempt to train multiple +different LSTMs with the best set of +hyper-parameters, we observe that they do not show any compositional generalization on all our synthetic setups. This +observation is further evidence for our hypothesis that the attention layers are important for compositionality. +One would expect that LSTMs generalize poorly since they are required to capture long range dependencies in the input in +order to successfully compose functions. As a result, we consider an alternative prompt format that reduces the burden of +capturing long-range dependencies. In particular, we consider a prompt of the form xdf1o1f2o2 . . . FLoL, where xd is the +input data tokens, and fi is the ith task tokens while oi is the intermediate output of the composition. In this prompt format, +the relevant task token is only presented after the intermediate output is generated, as opposed to presenting all the task +tokens at the start of the prompt. Using this prompt format, we trained LSTMs on compositions of 5 functions where each +position of the composition can be one of 5 functions, similar to the setup of Fig. 4a. We trained on a random subset of +100 in-order compositions. We then evaluate the trained LSTMs on all in-order compositions (even ones not seen during +training) and tabulate the accuracies in Table 2. LSTMs still fail to achieve perfect accuracy indicating the inductive bias +of the Transformer architecture is important for compositionality. The failure of LSTMs cannot be solely attributed to the +inability to capture long-range dependencies. +Hidden dimension +Layers +120 +256 +512 +1024 +1 +11.64 +85.42 +84.83 +86.61 +2 +11.33 +86.25 +88.29 +88.28 +4 +11.44 +88.52 +53.11 +11.33 +Table 2: LSTMs perform significantly better with the modifiied prompt format but still fail to perfectly compositionally +generalize. We train an LSTM on 100 compositions of in-order compostions with a modified prompt format that does +not require capturing long-range dependencies. While the accuracies improve significantly, the LSTM still fails to +compositionally generalize. +Hidden layer dimension +Layers +120 +256 +512 +1024 +1 +16.2 +36.2 +99.9 +99.9 +2 +60.3 +99.3 +99.9 +99.8 +4 +18.7 +100.0 +100.0 +9.9 +Hidden layer dimension +Layers +120 +256 +512 +1024 +1 +9.3 +10.3 +20.1 +22.9 +2 +12.4 +21.3 +25.3 +28.8 +4 +6.6 +13.9 +17.6 +10.0 +Table 3: LSTMs fail to compose in the step-by-step prompt format. We train autoregressive LSTMs on 50 in-order +compositions of 5 bijections from Fb in the step-by-step format and tabulate the accuracy (%); The setup is identical to Fig. 4. +We evaluate the LSTM on the (left) compositions seen during training and (right) in-order compositions not seen during +training. LSTMs fail to generalize to functions outside of the training data while transformers generalize compositionally in +the same setting. +17 + +PAGE 18 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +B.3. Attention Masks +Detailed setup. We train a 1-layer Transformer on a composition of 50 random in-order compositions of 5 bijections in +the step-by-step prompt format. We visualize the attention masks for a fixed sequence of task tokens, averaged over 1000 +different data tokens in Fig. 7(right). We found the attention masks to be identical across different choices of the task tokens. +Each row corresponds to a causal attention mask for a single token and sums up to 1. At any given row, the attention is +over two elements—the task token and the intermediate output of the composition. The five contiguous blocks along the +columns correspond to the five steps of composition. These preliminary results indicate that it is possible to build a complete +mechanistic understanding of attention for compositional tasks (see also Sec. C). +B.4. Probing the layers in Transformers of different sizes +1 +0 +100 +1-layer Transformer +After attention layer +After MLP layer +1 +2 +0 +100 +2-layer Transformer +1 +2 +3 +4 +0 +100 +4-layer Transformer +1 +2 +3 +4 +5 +6 +0 +100 +6-layer Transformer +1 +3 +5 +7 +0 +100 +8-layer Transformer +1 +3 +5 +7 +9 +0 +100 +10-layer Transformer +1 +10 +4 +7 +0 +100 +12-layer Transformer +1 +13 +5 +9 +0 +100 +16-layer Transformer +16 +1 +11 +6 +0 +100 +20-layer Transformer +1 +19 +13 +7 +0 +100 +24-layer Transformer +8 +1 +22 +15 +0 +100 +28-layer Transformer +1 +25 +9 +17 +0 +100 +32-layer Transformer +1 +11 +21 +31 +0 +100 +40-layer Transformer +1 +37 +13 +25 +0 +100 +48-layer Transformer +16 +1 +46 +31 +0 +100 +60-layer Transformer +Transformer Layer +Linear probe accuracy (%) +Figure 14: We use a linear probe to study the accuracy at different layers on Transformers of different sizes. Most +architectures see an increasing in accuracy in the latter half of the Transformer. The increase in accuracy is more gradual for +Transformers with more layers. The accuracy increases sharply after an attention layer across all architectures. +In this section, we consider an experimental setup that is identical to the linear probe experiments in Fig. 7. We compute the +probe accuracies for Transformers with different number of layers in Fig. 14. Across all models, we observe that accuracy +increases in the last few layers. Furthermore, we also observe a sharp increase in accuracy right after the MLPs in the last +few layers of the transformer. +We saw in Fig. 7(right) that the attention masks for a 1-layer model seem to select an input and a task token to operate on at +every step of the composition. We hence believe that attention has a huge role in compositionality and propose the following +hypothesis: The probe accuracy after some MLPs see a sharp in increase in accuracy because the attention layers play a +critical role in selecting the right inputs to pass to the MLP. Specifically, unlike the 1-layer model, we suspect functions +are now distributed across the model layers instead of being localized in the first MLP layer. Consequently, similar to the +1-layer model, attention heads at different layers will infer if the relevant functions implemented in MLP layers in that block +are part of the prompt; if so, they transfer the input data through said function. +B.5. Another failure with the direct format with bijections +In Fig. 6 (Left) we show that Transformers do not learn to compose 5 bijections and only generalize to compositions in the +training data. Fig. 15 augments this result and shows that a similar failure occurs even when we consider the composition +of just two bijections. Hence the model may not compose some function in the direct prompt format and the step-by-step +format with an autoregressive objective is far more amenable to compositions. +18 + +PAGE 19 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +0 +2500 +5000 +7500 10000 12500 15000 17500 20000 +Number of iterations +0 +20 +40 +60 +80 +100 +Avg. accuracy over all 625 functions (%) +Train data +100 functions (21%) +250 functions (44%) +500 functions (88%) +Figure 15: Transformers fail to generalize to compositions of even 2 bijections, when trained with the direct prompt +format. The curve depicts the accuracy over all 625 in-order compositions of two bijections (25 choices for each bijection) +when trained on different subsets of in-order compositions. The model is trained with direct composition. Even if we train +on 500 such compositions, the model fails to generalize to the remaining 125 compositions. This is additional evidence that +the model is incapable composing bijections through direct composition. +B.6. Additional experiments with training data from random and base +In this section, we conduct a collection of analyses for a model trained on in-order compositions of 5 bijections in the +step-by-step prompt format. We perform the following experiments: (1) change the number of random functions in the +training data (Fig. 16); (2) compare how base and random generalize to other in-order compositions (Fig. 17); (3) limit +the maximum number of compositions in the training data and evaluate compositional generalization (Fig. 18); (4) look at +alternate evaluation metrics (Fig. 19); and (5) test if the compositions are systematic (Hupkes et al., 2020) (Fig. 20). +0 +2000 +4000 +6000 +8000 +10000 +Number of iterations +0 +20 +40 +60 +80 +100 +Avg. accuracy over 3125 functions (%) +No. of random functions +5 (30.6) +10 (43.7) +15 (68.2) +20 (86.0) +25 (92.8) +30 (96.5) +35 (92.1) +40 (96.1) +45 (99.8) +50 (99.9) +50 (100.0) +55 (100.0) +60 (95.3) +65 (99.1) +70 (100.0) +Figure 16: Training with different numbers of random functions. We train on a different number of random functions +ranging from 5-70 in steps of 5. These plots are the accuracies averaged over all in-order compositions of 5 bijections over +the course of training. +0 +5000 +10000 15000 20000 +0 +50 +100 +Acc. on composition of 5 functions +0 +5000 +10000 15000 20000 +0 +50 +100 +Acc. on composition of 4 functions +0 +5000 +10000 15000 20000 +0 +50 +100 +Acc. on composition of 3 functions +0 +5000 +10000 15000 20000 +0 +50 +100 +Acc. on composition of 2 functions +0 +5000 +10000 15000 20000 +0 +50 +100 +Acc. on composition of 1 functions +0 +5000 +10000 15000 20000 +0 +50 +100 +Acc. on composition of 0 functions +Training data +21 base + 0 random functions +21 base + 5 random functions +21 base + 10 random functions +25 random functions +50 random functions +100 random functions +Avg. accuracy +Number of iterations +Figure 17: How do different training datasets generalize to compositions of many and few functions? This is a +fine-grained version of Fig. 4a. Model trained on 50 random compositions generalizes poorly compositions of small number +of functions while a model trained on the base generalizes poorly to composition of 4 or 5 functions. +19 + +PAGE 20 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +0 +5000 +10000 +15000 +20000 +0 +20 +40 +60 +80 +100 +5 compositions in training data +No. of functions +25 +50 +100 +200 +0 +5000 +10000 +15000 +20000 +0 +20 +40 +60 +80 +100 +4 compositions in training data +No. of functions +25 +50 +100 +200 +0 +5000 +10000 +15000 +20000 +0 +20 +40 +60 +80 +100 +3 compositions in training data +No. of functions +25 +100 +200 +0 +5000 +10000 +15000 +20000 +0 +20 +40 +60 +80 +100 +2 compositions in training data +No. of functions +5 +10 +20 +Avg. accuracy over all 3125 functions (%) +Number of iterations +Figure 18: Limiting maximum number of compositions in the training data. The figure plots the accuracy on all in-order +compositions against the number of training iterations. Each sub-plot considers compositions of size exactly 2, 3, 4, 5, +respectively in the training data. The model is able to generalize to most in-order compositions only if the training data +consists of compositions of size at least 3 (bottom-right). +0 +5000 +10000 15000 20000 +0 +25 +50 +75 +100 +Free generation - Avg. accuracy +0 +5000 +10000 15000 20000 +0 +25 +50 +75 +100 +Free generation - Exact match accuracy +0 +5000 +10000 15000 20000 +25 +50 +75 +100 +Guided generation - Avg. accuracy +No. of compositions +5 +4 +3 +2 +1 +0 +Accuracy (%) +Number of iterations +0 +10000 +20000 +0 +25 +50 +75 +100 +Free generation - Avg. accuracy +0 +10000 +20000 +0 +25 +50 +75 +100 +Free generation - Exact match accuracy +0 +10000 +20000 +25 +50 +75 +100 +Guided generation - Avg. accuracy +No. of compositions +5 +4 +3 +2 +1 +0 +Accuracy (%) +Number of iterations +Figure 19: Evaluation metric. We consider 3 different metrics for evaluating the models. The left column considers +the average accuracy when the model generates The choice of metric doesn’t change qualitative trends. Each sub-plot +considers compositions of only size 2, 3, 4, 5, respectively. In each plot, we vary the number of such functions that are +present int he training data. One exception is when we train on compositions of size 2. In this case, the guided generation +accuracy is high, but the free generation accuracy is not. +20 + +PAGE 21 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +Accuracy +0 +20 +40 +60 +80 +100 +0 +1 +2 +3 +0 +1 +2 +3 +4 +13 +14 +14 +13 +12 +12 +13 +13 +13 +13 +14 +13 +13 +13 +12 +12 +11 +11 +11 +12 +21 base + + 0 random functions +0 +1 +2 +3 +0 +1 +2 +3 +4 +67 +79 +71 +74 +87 +59 +79 +65 +73 +63 +72 +86 +70 +75 +80 +73 +79 +78 +79 +63 +21 base + + 5 random functions +0 +1 +2 +3 +0 +1 +2 +3 +4 +91 +93 +89 +93 +98 +91 +96 +81 +92 +88 +94 +95 +93 +90 +95 +92 +93 +93 +93 +92 +21 base + + 10 random functions +0 +1 +2 +3 +0 +1 +2 +3 +4 +75 +75 +75 +81 +83 +84 +48 +83 +75 +80 +66 +79 +76 +78 +77 +73 +83 +66 +88 +88 +25 random functions +0 +1 +2 +3 +0 +1 +2 +3 +4 +98 +99 +97 +99 +99 +99 +97 +98 +99 +98 +98 +99 +99 +99 +98 +96 +99 +99 +99 +99 +50 random functions +0 +1 +2 +3 +0 +1 +2 +3 +4 +100 100 100 100 +100 100 100 100 +100 100 100 100 +100 100 100 100 +100 100 100 100 +100 random functions +The depth of the composition +Function identifier +Figure 20: Systematicity. We consider trained models from Fig. 4a and analyze the accuracy of each of the 20 functions +(atomic capabilities) when averaged all instances in which it was used compositionally. We breakdown the results to see if +certain functions are more accurate when used in compositions compared to others and find that models seem to learn all +functions equally well. +B.7. Token embeddings +We study the token embeddings of the Transformer models and observe that they are similar for models with different +number of layers and attention heads (see Fig. 21). We notice a block diagonal structure that separates task tokens from the +data tokens. We also observe another block diagonal structure within the task tokens which occurs when we train only on +in-order compositions. +Token +Task token +Token +Task token +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +Figure 21: Word embedding correlations present a block-diagonal structure that separates data tokens from task +tokens. We plot the inner product between all pairs of word embeddings of the tokens. The task tokens are orthogonal to the +set of input tokens. Different functions in the same level, i.e. {F (l) +i }N +i=1 for a fixed l, form a block-diagonal in this matrix. +We observe similar word embeddings in Transformers of different sizes. +21 + +PAGE 22 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +C. Analysis of Step-by-step and Direct Prompt Formats +C.1. Transformers for the step-by-step prompt format +We prove that there exists Transformers that can compositionally generalize in the step-by-step prompt format. Such a +constructive proof, similar to (Von Oswald et al., 2023; Ahn et al., 2023; Weiss et al., 2021; Li et al., 2023c), can be used to +generate plausible mechanistic hypothesis by highlighting the role of the attention and MLP layers. While the universal +approximation theorem suggests that any function can be represented by a wide enough multi-layer perceptron (MLP), the +construction suggests that Transformers can represent the same function efficiently. +Description of the data. +We will operate with a simplified prompt format where a composition of three functions is to be +applied to a single input token. The construction can be generalized to compositions of more functions or to multiple input +tokens. The input prompt [xF1, xF2, xF3, xd] has three task tokens and a single data token, and the desired output for this +prompt is [F1(xd), F2 ◦F1(xd), F3 ◦F2 ◦F1(xd)]. +The position encodings P = +p1 +p2 +· · · +p6 + +are learnable parameters and have dimension dp, i.e., P ∈Rdp×6. The +number of input tokens is dv and the number of task tokens is df. Both input tokens xd and task tokens xF1 are embedded +as a one-hot vector in Rdx where dx = dv + df. The first dv dimensions are used to embed the data tokens and the last +df dimensions embed the task token. Henceforth, both xd and xF1 refer to the corresponding one-hot vectors in Rdx. For +convenience, we define d = dx + dp. Tying this back to to section 3, observe that |Xd| = dv and |Xf| = df. We denote the +input to the model using Z, which includes the token embedding and position encoding. Specifically, we have +Z = +xF1 +xF2 +xF3 +x +F1(xd) +F2 ◦F1(xd) +p1 +p2 +p3 +p4 +p5 +p6 + +, +i.e., Z ∈Rd×6. We assume that the position encoding is concatenated to the token embedding as opposed to added to it. +Matrix notation. +We use 1xd to denote a one-hot vector in the space Rdv, i.e., it excludes dimensions for the task token. +On the other hand, xd denotes a one-hot vector in Rdx. We use In×n to denote an identity matrix of size n × n, 1m×n and +0m×n to denote matrices of 1s and 0s of size m × n, and 1n and 0n to denote matrices of size n × 1. +Description of the architecture. +Before describing the Transformer architecture, we first define the attention and MLP +layers. We use a simplified parameterization of linear attention (Ahn et al., 2023) with weights Q and K. The MLP contains +two fully connected layers with a ReLU non-linearity parameterized by the weights W1 and W2. The attention and MLP +layers are functions of Z ∈Rd×6 and are defined as: +AttnQ,K(Z) = (KZ)(M ⊙ZT QZ), and +MLPW1,W2(Z) = W2ReLU(W1Z), +where Q, K ∈Rd×d, W1 ∈Rd×(df dv) and W2 ∈R(df dv)×d. The matrix M ∈R6×6 enforces causal attention and restricts +the attention to inputs from previous time-steps, i.e., +M = + + +1 +1 +1 +· · · +1 +0 +1 +1 +· · · +1 +... +... +... +... +... +0 +0 +0 +· · · +1 + +. +We consider a 1-layer Transformer with an attention layer followed by an MLP layer. We omit layer-norm to simplify the +proofs. The function computed by the Transformer is +TrQ,K,W1,W2(Z) = MLP (Attn(Z) + Z) + Attn(Z) + Z) . +Henceforth, we omit the subscripts of Attn, MLP and Tr for brevity. We include a residual connection after both the +attention and MLP layers which mirrors a typical Transformer architecture (Vaswani et al., 2017). +The output of the Transformer is passed through an unembedding matrix We followed by a Softmax layer to obtain a +probability distribution over the next token denoted by +P(Y |Z) = Softmax(WeTr(Z)). +22 + +PAGE 23 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +Theorem C.1. There exists weights P, Q, K, W1, W2 and position encodings P such that an Autoregressive Transformer +can compositionally generalize to any prompt [xF1, xF2, xF3, xd]. The values of the weights satisfy +P T P = + +I3×3 +I3×3 +I3×3 +I3×3 + +, +Q = + +0d×d +0d×dp +0dp×d +Idp×dp + +, +K = + + +0dv×dv +0df ×dv +0d×dp +0df ×dv +Idf ×df +0d×dp +0dv×d +0df ×d +0dp×dp + +, +W1 = + + +1T +xd1 +1T +xd1 +1T +xd1 +· · · +1T +xd1 +1T +xd2 +1T +xd2 +1T +xd2 +· · · +1T +xd2 +... +... +... +... +1T +xdv +1T +xdv +1T +xdv +· · · +1T +xdv +0T +dv +−1T +dv +−1T +dv +· · · +−1T +dv +−1T +dv +0T +dv +−1T +dv +· · · +−1T +dv +... +... +... +... +−1T +dv +−1T +dv +−1T +dv +· · · +0T +dv +0dp×dv +0dp×dv +0dp×dv +· · · +0dp×dv + + +T +| +{z +} +df ×dvcolumns +, and +W2 = + + +Fi1(xd1)T −xT +d1 −xT +Fi1 +Fi1(xd2)T −xT +d2 −xT +Fi1 +... +Fi1(xdv)T −xT +dv −xT +Fi1 +Fi2(xd1)T −xT +d1 −xT +Fi2 +Fi2(xd2)T −xT +d2 −xT +Fi2 +... +Fi2(xdv)T −xT +dv −xT +Fi2 +... +FiT (xd1)T −xT +d1 −xT +FiT +FiT (xd2)T −xT +d2 −xT +FiT +... +FT (xdv) −xdv −xFiT + + +T +. +Proof. See Appendix C.4. +The construction uses the attention layer to aggregate the task token and data token, i.e., attention selects the relevant task +token. The query vector of the attention selects the right task using the position encoding. The first layer of the MLP projects +the summation of the task and data tokens (present in orthogonal spaces) onto the Cartesian product of the set of task and +data tokens. The second layer computes the function and acts similar to a lookup table (Geva et al., 2022). +0 +50 +100 +150 +200 +250 +Embedding dimension +0 +20 +40 +60 +80 +100 +Accuracy (%) +Accuracy of a 1-layer Transformer +Figure 22: We see a sharp increase in accuracy as we increase +the embedding dimension of the Transformer. The number of +hidden units in the MLP of the Transformer is 4 times the size +of the embedding dimension. +The construction requires the output of the first fully- +connected layer has size at least dfdv in order to encode +the task and input tokens. In our experiments, we set +dv = 10 and df = 21 and hence the number of hidden +units must be at least 210. In practice, we require at least +500 hidden units (see Fig. 22), which is not too far from +our estimate. We conjecture that the additional hidden +units are helpful for optimization. +C.2. Transformers for the direct prompt format +We also prove the existence of a Transformer for a com- +positions of bijections in the direct prompt format. Unlike +the step-by-step format, the direct prompt format lacks +a “scratchpad” (Nye et al., 2021) for the intermediates +outputs of the composition. In our construction, we use +K = 3 Transformer blocks to compute the composition +of K functions; the output of the k-th block is the result of the kth step of the composition. +Description of the data. +We consider the composition of 3 functions with an input prompt denoted by [xF1, xF2, xF3, xd]. +Unlike the step-by-step format, the output is just a single token [F3 ◦F2 ◦F1(xd)]. The position encodings are denoted +by P = [p1, p2, . . . , p4] where pi = + +pT +i1 +pT +i2 +pT +i3 +T and pi ∈Rdp and pij ∈Rdp/3. The dimensions dx, dv, d and dp +23 + +PAGE 24 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +represent the same quantities. We use ¯dp to replace dp +3 . The input to the model is +Z = + + +xF1 +xF2 +xF3 +xd +p11 +p12 +p13 +p14 +p21 +p22 +p23 +p24 +p31 +p32 +p33 +p34 + +, +where Z ∈Rd×4. +Description of the architecture. +Each Transformer block is defined similar to the step-by-step format, i.e., +BlockQi,Ki,Wi1,Wi2(Z) = MLPi(Attni(Z) + Z) + (Attni(Z) + Z), +which we henceforth denote by Blocki(Z). Unlike the step-by-step format, the model is now composed of 3 blocks +corresponding to the 3 steps of the compositional task the model is expected to solve, i.e., +Tr(Z) = Block3(Block2(Block1(Z))). +This input is passed through a Softmax layer to predict a probability distribution over the next token, denoted by P(Y | +Z) = Softmax(WeTr(Z)). +Theorem C.2. There exist weights Pi, Qi, Ki, W1i, W2i for i ∈[1, 3] and position encodings P such that the a 3-layer +Transformer can compositionally generalize to any prompt of the form [xF1, xF2, xF3, xd]. The values of the weights satisfy +Q1 = + + +0d×d +0d× ¯dp +0d× ¯dp +0d× ¯dp +0 ¯dp×d +I ¯dp +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp× ¯dp + +, +Q2 = + + +0d×d +0d× ¯dp +0d× ¯dp +0d× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +I ¯dp +0 ¯dp× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp× ¯dp + +, +Q3 = + + +0d×d +0d× ¯dp +0d× ¯dp +0d× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +0 ¯dp× ¯dp +I ¯dp, + +, +K1 = + + +0dv×dv +0df ×dv +0d×dp +0df ×dv +Idf +0d×dp +0dv×d +0df ×d +0dp×dp + +, +K2 = K1 +2 , +K3 = K1 +3 , +P T +1 P1 = + + +1 +0 +0 +1 +0 +1 +0 +0 +0 +0 +1 +0 +1 +0 +0 +1 + +, +P T +2 P2 = + + +1 +0 +0 +0 +0 +1 +0 +1 +0 +0 +1 +0 +0 +1 +0 +1 + +, +P T +3 P3 = + + +1 +0 +0 +0 +0 +1 +0 +0 +0 +0 +1 +1 +0 +0 +1 +1 + +, +24 + +PAGE 25 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +W11 = + + +1T +xd1 +1T +xd1 +1T +xd1 +· · · +1T +xd1 +1T +xd2 +1T +xd2 +1T +xd2 +· · · +1T +xd2 +... +... +... +... +1T +xdv +1T +xdv +1T +xdv +· · · +1T +xdv +01×dv +−11×dv +−11×dv +· · · +−11×dv +−11×dv +01×dv +−11×dv +· · · +−11×dv +... +... +... +... +−11×dv +−11×dv +−11×dv +· · · +01×dv +0dp×dv +0dp×dv +0dp×dv +· · · +0dp×dv + + +T +| +{z +} +df ×dvcolumns +, +W12 = + + +Fi1(xd1)T −xT +d1 −xT +Fi1 +Fi1(xd2)T −xT +d2 −xT +Fi1 +... +Fi1(xdv)T −xT +dv −xT +Fi1 +Fi2(xd1)T −xT +d1 −xT +Fi2 +Fi2(xd2)T −xT +d2 −xT +Fi2 +... +Fi2(xdv)T −xT +dv −xT +Fi2 +... +FiT (xd1)T −xT +d1 −xT +FiT +FiT (xd2)T −xT +d2 −xT +FiT +... +FT (xdv) −xdv −xFiT . + + +T +W21 = W22 = W23, and +W31 = W32 = W33. +Proof. See Appendix C.5. +C.3. Difference between the direct and step-by-step prompt formats +The ability to run multiple forward passes through the Transformer allows us tackle a richer class of problems (Merrill & +Sabharwal, 2023). This ability differentiates the step-by-step and direct prompt formats. In the step-by-step prompt format, +the Transformer makes L different forward passes, while the direct prompt format allows only one forward pass through +the model to generate the output. This is also mirrored in our constructions in appendices C.1 and C.2—a model for the +step-by-step prompt format requires only 1 layer, while one for the direct prompt format uses L = 3 layers to compensate +for the lack of multiple forward passes. We expect that a Transformer for the direct prompt format cannot circumvent these +computations and conjecture that our Transformer construction for the direct format (in appendix C.5) is efficient with +respect to the number of layers. +Conjecture C.3. We conjecture that a Transformer with width of poly(|F|), needs O(L) layers in the direct prompt format +compared to the O(1) layers step-by-step format in order to compositionally generalize on our synthetic task. +That is, a model must compute all L intermediate outputs of the composition across different layers of the Transformer. We +expand on this further in the next subsection. We also note that as per the universal approximation theorem, it is certainly +possible to construct a Transformer with 1-layer such that it generalizes for the direct prompt format; however, such a model +must have its width to be exponential in |F| in order to store |F|L different functions in a single layer. +C.3.1. HOW MANY TRAINING COMPOSITIONS DOES EACH PROMPT FORMAT NEED? +To further understand the difference between the two prompt formats, we will use a (highly simplified) model to reason +about the number of function compositions in the training data that is required for perfect compositional generalization on +our task. Let us consider a composition of L of functions from F. We assume that the compositions in the training data +FL +train ⊂FL are sampled uniformly at random from the set of all compositions. +For this analysis, we assume that the Transformer can perfectly identify which functions to compose—which we ascribe to +the attention layers—and will focus entirely on capability acquisition which we hypothesize is carried out by the MLP layers. +We assume that a Transformer for the step-by-step prompt format must learn a function (capability) only once, while a +Transformer for the direct prompt format must learn the function L different times—once for each layer of the Transformer. +If the function composition F (l) ∈FL +train occurs in the training data, we assume that the Transformer for the step-by-step +format has learned all the capabilities F (l) +i +∈F (l) for i ∈[1, L], while a Transformer for the direct prompt format can only +learn capability F (l) +i +at layer i. These assumptions are informed by Theorems C.1 and C.2. +25 + +PAGE 26 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +Detour into the coupon collector’s problem. +In order to learn all F = |F| capabilities, the training data must contain +each capability at least once. We note that this is the coupon collector’s problem (Myers & Wilf, 2006): the collector seeks +all distinct coupons and recieves a coupon at every round drawn uniformly at random. The number of rounds corresponds to +the number of function compositions in the training data and we would like to calculate the expected number of rounds +required to learn all capabilities. It is a well known result that the expected number of rounds to collect all F coupons is +FHF where HF is the Harmonic number; asymptotically this is O(F log F). Furthermore, the probability that we complete +a collection of size f, in n rounds is +p(L, f) = F! +F L +F −1 +L −1 + +, +where +F −1 +K−1 + +is the Stirling number of the second kind. +In the step-by-step prompt format, we observe L capabilities (or coupons) with every composition. All capabilities are +learned if we observe each of them in at least one training sample. The expected number of training compositions N +required to learn all capabilities is O( F log F +L +) (see Xu & Tang (2011)). On the other hand, the direct prompt format can +be treated as L independent coupon collector problems and must observe each capability once for each of the L layers. +The expected number of rounds to learn all capabilities is the is the expected value of maximum number of rounds for L +indepedent coupon collector problems. If we apply Chebyshev’s inequality, we get +P(N ≥FHF + c log F) ≤ +π2 +6c2 log2 F , +since the variance of N is upper bounded by n2π2 +6 +. Hence, the maximum value of L different runs is O(F log F) as n →∞, +or in other words, the expected number of rounds to learn all capabilities is O(F log F). The expected number of training +compositions differ by a factor of L between the two prompt formats, which tallies with the observation that a Transformer +is expected to learn the same set of capabilities L different times in the direct format. +In practice, we find that Transformers for the direct format can sometimes fail to compositionally generalize, even with a +large number of compositions in the training data (Section 4.3). We hypothesize that this is attributable to the optimization +landscape, i.e., gradient descent is unable to find weights that compositionally generalize and instead prefers weights that +memorize compositions of functions present in the training data. In the direct prompt, gradient descent must recover the +individual capabilities from a set of compositions of bijections and this is a computationally hard problem since it is similar +to finding the minimal generating set of a group (its time complexity is linear in the size of the group which is O(F L)). +C.4. Proof of Theorem C.1 +Step 1: Computing the attention layer. +The attention layer copies the task tokens onto the relevant data token similar to +an induction head (Olsson et al., 2022). We first compute the query and value matrices of the attention. +ZT QZ = + + +xT +F1 +pT +1 +xT +F2 +pT +2 +xT +F3 +pT +3 +xT +d +pT +4 +F1(xd)T +p5 +F2 ◦F1(xd)T +pT +6 + + + 0d×d +0d×dp +0dp×d +Idp×dp + xF1 +xF2 +xF3 +· · · +F2 ◦F1(xd) +p1 +p2 +p3 +· · · +p6 + += + + +0 +pT +1 +0 +pT +2 +0 +pT +3 +0 +pT +4 +0 +pT +5 +0 +pT +6 + + +xF1 +xF2 +xF3 +· · · +F2 ◦F1(xd) +p1 +p2 +p3 +· · · +p6 + += P T P +Our construction considers a P such that pi = pi+4 for all i ∈[1, 3] and pi · pj = 0 for all j ∈[1, 3] and j̸ = i. The mask +M converts P T P into an upper triangular matrix, and zeroes out all entries in the lower triangle of the matrix. +M ⊙(ZT QZ) = M ⊙(P T P) = M ⊙ +I3×3 +I3×3 +I3×3 +I3×3 + += +I3×3 +I3×3 +03×3 +I3×3 + +26 + +PAGE 27 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +The attention layer computes +Attn(Z) = (KZ)(M ⊙ZT QZ) += (KZ)(M ⊙PP T ) += + + +0dv×dv +0df ×dv +0d×dp +0df ×dv +Idf ×df +0d×dp +0dv×d +0df ×d +0dp×dp + + + +xF1 +xF2 +xF3 +· · · +F2 ◦F1(xd) +p1 +p2 +p3 +· · · +p6 +  +I3×3 +I3×3 +03×3 +I3×3 + += +xF1 +xF2 +xF3 +0d +0d +0d +0dp +0dp +0dp +0dp +0dp +0dp + I3×3 +I3×3 +03×3 +I3×3 + += +xF1 +xF2 +xF3 +xF1 +xF2 +xF3 +0dp +0dp +0dp +0dp +0dp +0dp + +which when added to Z yields +Attn(Z) + Z = +2xF1 +2xF2 +2xF3 +xd + xF1 +F1(xd) + xF2 +F2 ◦F1(xd) + xF3 +p1 +p2 +p3 +p4 +p5 +p6, + +if we also include the residual stream to the output of the attention layer. +Step 2: Computing the MLP layer. +After the attention layer, the data and task tokens are aggregated at one location +in orthogonal sub-spaces. The MLP uses the task and data token to compute the function. The first fully-connected layer +projects the input Rdvdt, which uniquely identifies the task and data tokens which is used to retrived the function from W2. +The first fully-connected layer computes +(Attn(Z) + Z)T W T +1 = + + +2xT +F1 +pT +1 +2xT +F2 +pT +2 +2xT +F3 +pT +3 +xT +d + xT +F1 +pT +4 +F1(xd)T + xT +F2 +pT +5 +F2(F1(xd))T + xT +F3 +pT +6 + + + + +1T +xd1 +1T +xd1 +1T +xd1 +· · · +1T +xd1 +1T +xd2 +1T +xd2 +1T +xd2 +· · · +1T +xd2 +... +... +... +... +1T +xdv +1T +xdv +1T +xdv +· · · +1T +xdv +0T +dv +−1T +dv +−1T +dv +· · · +−1T +dv +−1T +dv +0T +dv +−1T +dv +· · · +−1T +dv +... +... +... +... +−1T +dv +−1T +dv +−1T +dv +· · · +0T +dv +0dp×dv +0dp×dv +0dp×dv +· · · +0dp×dv + + += + + +−2T +dv +· · · +· · · +0T +dv +· · · +· · · +−2T +dv +−2T +dv +· · · +0T +dv +· · · +· · · +· · · +−2T +dv +−2T +dv +· · · +· · · +· · · +0T +dv +· · · +−2T +dv +−1T +dv + 1T +xd +· · · +· · · +1T +xd +· · · +· · · +−1T +dv + 1T +xd +−1T +dv + 1T +F1(xd) +· · · +1T +F1(xd) +· · · +· · · +· · · +−1T +dv + 1T +F1(xd) +−1T +dv + 1T +F2◦F1(xd) +· · · +· · · +1T +F2◦F1(xd) +· · · +−1T +dv + 1T +F2◦F1(xd) + + +The above matrix has dfdv columns represented as df blocks of size dv. The 0 matrix in the first, second and third row +occupy dv columns each. In particular, they occupy the blocks j1, j2 and j3 where Fi = Fiji, i.e. the block number +corresponds to index in the one-hot representation of the task tokens. Let 1(x,F ) denote a one-hot vector in Rdv×df , i.e., +it is a one-hot vector that uniquely identifies the task and data token. We can succincintly express the output after the +27 + +PAGE 28 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +non-linearity as follows: +ReLU(W1(Attn(Z) + Z)) = ReLU((Attn(Z) + Z)T W T +1 )T ) += + + +0dv +0dv +0dv +0dv +0dv +0dv +0dv +0dv +0dv +· · · +· · · +· · · +0dv +0dv +0dv +· · · +1F1(xd) +· · · +0dv +0dv +0dv +1xd +· · · +· · · +0dv +0dv +0dv +· · · +· · · +1F2◦F1(xd) +... +... +... +... +... +... +0dv +0dv +0dv +0dv +0dv +0dv + + += +0dvdf +0dvdf +0dvdf +1(xd,F1) +1(F1(xd),F2) +1(F2◦F1(xd),F3) + +Including the final weight matrix W2, we get +W2ReLU(W1(Attn(Z) + Z)) = W2 +0dvdf +0dvdf +0dvdf +1(xd,F1) +1(F1(xd),F2) +1(F2◦F1(xd),F3) + += + + +0T +d +0T +dp +0T +d +0T +dp +0T +d +0T +dp +F1(xd)T −xd −xF1 +0T +dp +F2 ◦F1(xd) −xF1(xd) −xF2 +0T +dp +F3 ◦F2 ◦F1(xd) −xF2◦F1(xd) −xF3 +0T +dp + + +T +Hence, the output of the Transformer is +Tr(Z) = MLP(Attn(Z) + Z) + (Attn(Z) + Z) += + + +0T +d +0T +dp +0T +d +0T +dp +0T +d +0T +dp +F1(xd)T −xT +d −xT +F1 +0T +dp +F2 ◦F1(xd)T −xT +F1(xd) −xT +F2 +0T +dp +F3 ◦F2 ◦F1(xd)T −xT +F2◦F1(xd) −xT +F3 +0T +dp + + +T ++ + + +2xT +F1 +pT +1 +2xT +F2 +pT +2 +2xT +F3 +pT +3 +xT +d + xT +F1 +pT +4 +xT +F1(xd) + xT +F2 +pT +5 +xT +F2◦F1(xd) + xT +F3 +pT +6 + + +T += +2xF1 +2xF2 +2xF3 +F1(xd) +F2 ◦F1(xd) +F3 ◦F2 ◦F1(xd) +p1 +p2 +p3 +p4 +p5 +p6 + +(0) +If we set +We = + Id×d +0d×dp +0dp×d +odp×dp + +, +then WeTr(Z) evaluates to +2xF1 +2xF2 +2xF3 +F1(xd) +F2 ◦F1(xd) +F3 ◦F2 ◦F1(xd) +which will assign high probabilities to the desired token when passed through a Softmax layer. Hence, a Transformer +prompted with [xF1, xF2, xF3, xd] will auto-regressively generate [F1(xd), F2◦F1(xd), F3◦F2◦F1(xd)] for any combination +of data and task tokens. +C.5. Proof of Theorem C.2 +The details of construction are similar to Appendix C.4. +Step 1: Computing the output of the first block. +The first Transformer block computes the first step of the composition. +The attention layer in particular, copies the relevant task token to the data token. The value and query matrices of the +28 + +PAGE 29 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +attention layer in the first Transformer block are +ZT Q1Z = + + +xT +F1 +pT +11 +pT +21 +pT +31 +xT +F2 +pT +12 +pT +22 +pT +32 +xT +F3 +pT +13 +pT +23 +pT +33 +xT +d +pT +14 +pT +24 +pT +34 + + + + +0d×d +0d× ¯dp +0d× ¯dp +0d× ¯dp +0 ¯dp×d +I ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp× ¯dp + + + + +xF1 +xF2 +xF3 +xd +p11 +p12 +p13 +p14 +p21 +p22 +p23 +p24 +p31 +p32 +p33 +p34 + + += P T +1 P1, +and +K1Z = + + +0dv×dv +0df ×dv +0d×dp +0df ×dv +Idf +0d×dp +0dv×d +0df ×d +0dp×dp + + +xF1 +xF2 +xF3 +xd +p1 +p2 +p3 +p4 + += +xF1 +xF2 +xF3 +0d +0dp +0dp +0dp +0dp + +Using the above, the output of the first attention layer added to the residual stream is +Attn1(Z) + Z = (K1Z)(M ⊙ZT Q1Z) + Z += (K1Z)(M ⊙P T +1 P1) + Z += +xF1 +xF2 +xF3 +0 +0dp +0dp +0dp +0dp + + + +1 +0 +0 +1 +0 +1 +0 +0 +0 +0 +1 +0 +0 +0 +0 +1 + ++ Z += +2xF1 +2xF2 +2xF3 +xd + xF1 +p1 +p2 +p3 +p4 + +Note that W11 and W21 are identical to W1 and W2 in Equation (0), and performing a similar calculation yields +Block1(Z) = W21ReLU(W11(Attn1(Z) + Z)) + (Attn1(Z) + Z) += +2xF1 +2xF2 +2xF3 +F1(xd) +p1 +p2 +p3 +p4 + += ZB1. +We denote the output of the first Transformer block by ZB1. +Step 2: Computing the output of the second block. +The second block uses the output of the first Transformer block to +compute the second step of the composition. We start similarly by computing the query and value matrices of the attention +layer, i.e., +ZT +B1Q2ZB1 = += + + +2xT +F1 +pT +11 +pT +21 +pT +31 +2xT +F2 +pT +12 +pT +22 +pT +32 +2xT +F3 +pT +13 +pT +23 +pT +33 +F1(xd)T +pT +14 +pT +24 +pT +34 + + + + +0d×d +0d× ¯dp +0d× ¯dp +0d× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +I ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp×d +0 ¯dp× ¯dp +0 ¯dp× ¯dp +0 ¯dp× ¯dp + + + + +2xF1 +2xF2 +2xF3 +F1(xd) +p11 +p12 +p13 +p14 +p21 +p22 +p23 +p24 +p31 +p32 +p33 +p34 + + += P T +2 P2 +and +K2ZB1 = 1 +2 + + +0dv×dv +0df ×dv +0d×dp +0df ×dv +Idf +0d×dp +0dv×d +0df ×d +0dp×dp + + + +2xF1 +2xF2 +2xF3 +F1(xd) +p1 +p2 +p3 +p4 + += + +xF1 +xF2 +xF3 +0d +0dp +0dp +0dp +0dp + +. +29 + +PAGE 30 +Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks +Using the above, we can compute the output of the attention layer in the second Transformer block which evaluates to +Attn2(ZB1) + ZB1 = (K2ZB1)(M ⊙ZT +B1Q2ZB1) + ZB1 += (K2ZB1)(M ⊙P T +2 P2) + ZB1 += +xF1 +xF2 +xF3 +0 +0 +0 +0 +0 + + + +1 +0 +0 +0 +0 +1 +0 +1 +0 +0 +1 +0 +0 +0 +0 +1 + ++ ZB1 += +3xF1 +3xF2 +3xF3 +F1(xd) + xF2 +p1 +p2 +p3 +p4 + +. +The attention layer uses sub-matrix P2 of the position encodings to copy the second task token to the data token We repeat +the calculations in Equation (0), with W21 and W22 which yields +Block2(Block1(Z))) = W22ReLU(W21(Attn2(ZB1) + ZB1)) + (Attn2(ZB1) + ZB1) += +3xF1 +3xF2 +3xF3 +F2 ◦F1(xd) +p1 +p2 +p3 +p4 + += ZB2. +Step 3: Computing the output of the final Transformer block. +Unsurprisingly, the calculations for the last Transformer +block are almost identical. The query matrix is ZT +B2Q3ZB2 = P T +3 P3 and the value matrix is +K3ZB2 = 1 +3 +xF1 +xF2 +xF3 +0d +0dp +0dp +0dp +0dp + 3xF1 +3xF2 +3xF3 +F2 ◦F1(xd) +p1 +p2 +p3 +p4 + += +xF1 +xF2 +xF3 +0d +0dp +0dp +0dp +0dp + +. +The output of the attention layer in the final block is +Attn3(ZB3) + ZB3 = (K3ZB2)(M ⊙ZT +B2Q2ZB2) + ZB2 += (K3ZB1)(M ⊙P T +3 P3) + ZB2 += +xF1 +xF2 +xF3 +0 +0 +0 +0 +0 + + + +1 +0 +0 +0 +0 +1 +0 +0 +0 +0 +1 +1 +0 +0 +0 +1 + ++ ZB2 += +4xF1 +4xF2 +4xF3 +F2 ◦F1(xd) + xF3 +p1 +p2 +p3 +p4 + +. +Passing the output of Attn2(ZB2) through the last MLP, yields the output of the Transformer, which is +Tr(Z) = Block3(Block2(Block1(Z))) += W32ReLU(W32(Attn3(ZB2) + ZB2)) + (Attn3(ZB2) + ZB2) += +4xF1 +4xF2 +4xF3 +F3 ◦F2 ◦F1(xd) +p1 +p2 +p3 +p4 + +. +Hence, the output of the Transformer is a composition of the three functions F1, F2 and F3 applied to token xd. +30 diff --git a/results/first-principles-review-20261004/theory-sources/factual2025.pdf b/results/first-principles-review-20261004/theory-sources/factual2025.pdf new file mode 100644 index 0000000000000000000000000000000000000000..af4ac6f0512444c8c8b2f07f9108718714756e48 --- /dev/null +++ b/results/first-principles-review-20261004/theory-sources/factual2025.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84d49a7b0db3a8cc26ee068463981c5f24253e44afc2511ede00e158893823ca +size 1648853 diff --git a/results/first-principles-review-20261004/theory-sources/factual2025.txt b/results/first-principles-review-20261004/theory-sources/factual2025.txt new file mode 100644 index 0000000000000000000000000000000000000000..35d7c684c68da327dcbb853d5eb09e988a95b3f5 --- /dev/null +++ b/results/first-principles-review-20261004/theory-sources/factual2025.txt @@ -0,0 +1,4241 @@ +PAGE 1 +Published as a conference paper at ICLR 2025 +UNDERSTANDING FACTUAL RECALL IN +TRANSFORMERS VIA ASSOCIATIVE MEMORIES +Eshaan Nichani +Princeton University +Jason D. Lee +Princeton University +Alberto Bietti +Flatiron Institute +ABSTRACT +Large language models have demonstrated an impressive ability to perform fac- +tual 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 stor- +age 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 pa- +rameters 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 comple- +ment 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 re- +call (Petroni et al., 2019; Jiang et al., 2020; Roberts et al., 2020). Given a prompt of the form +“In what year was George Washington born?” an LLM will correctly respond with “1732.” Lan- +guage models thus act as databases, storing somewhere in their parameters mappings of the form +(George Washington, birth year) 7→(1732) which can be easily accessed during inference time. +Prior work (Allen-Zhu & Li, 2024) has observed that transformers trained on factual recall tasks +can store information at a rate proportional to their parameter count. Other studies (e.g., Meng +et al., 2022; Geva et al., 2023; Nanda et al., 2023; Lv et al., 2024) 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 (Bietti et al., 2023) 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 s +and relation token r hidden amongst a set of noise tokens, which the learner must map to a ground +truth answer a∗(s, r). Our main theorem is that a transformer consisting of a single multi-head +1 + +PAGE 2 +Published as a conference paper at ICLR 2025 +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 litera- +ture (Hopfield, 1982; Kohonen, 1972; Willshaw et al., 1969). More recently there has been renewed +interest in extensions of such models with larger capacity (Krotov & Hopfield, 2016; Demircigil +et al., 2017; Lucibello & M´ezard, 2024). These have been linked to the attention blocks in Trans- +formers (Ramsauer et al., 2020; Schlag et al., 2021), with (Le et al., 2020; Hoover et al., 2023) +in particular using the connection between self-attention and associative memories to design new +variants of the attention module. (Radhakrishnan et al., 2020) show that overparameterized autoen- +coders 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 (Bietti et al., 2023; Cabannes et al., 2024). +Memorization and factual recall. +Large language models are known to store vast amounts of +factual knowledge in their weights (Jiang et al., 2020; Roberts et al., 2020; Geva et al., 2021). Sev- +eral recent works in the mechanistic interpretability literature have attempted to understand how +transformers store facts (Meng et al., 2022; Geva et al., 2023; Nanda et al., 2023; Lv et al., 2024). +Allen-Zhu & Li (2024) 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. (2024) 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 re- +gression (Bubeck et al., 2020; Vardi et al., 2021; Madden & Thrampoulidis, 2024) and (next) token +prediction (Mahdavi et al., 2023; Kajitsuka & Sato, 2023; 2024; Madden et al., 2024). +Gradient dynamics. +Training dynamics of transformer models on various tasks has been a pop- +ular recent line of research (Jelassi et al., 2022; Snell et al., 2021; Li et al., 2023; Bietti et al., +2023; Tian et al., 2023; Nichani et al., 2024). Zhang et al. (2024); Mahankali et al. (2024) studied +training dynamics of transformers with linear attention on in-context learning tasks. Ghosal et al. +(2024) 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. (2024). Let [N] be the set of input tokens, and +[M] be the set of output tokens. Our goal is to store a set of associations given by the function +f ∗: [N] →[M]. For each input token x ∈[N] we assign a corresponding embedding vector +ex ∈Rd, and likewise for each output token y ∈[M] we associate an unembedding vector uy ∈ +Rd. We primarily focus on the setting where the embeddings {ex}x∈[N] and {uy}y∈[M] are drawn +i.i.d uniformly from the sphere of radius 1. Let F : Rd →Rd be our model which “stores” the +associations f ∗. Given such an F, the prediction ˆf(x) for f ∗(x) is given by the arg-max decoding +ˆf(x) := arg maxy∈[M] u⊤ +y F(ex). +2 + +PAGE 3 +Published as a conference paper at ICLR 2025 +3.1 +LINEAR ASSOCIATIVE MEMORIES +We first consider the case where F is a linear map F(ex) = W ex. +Theorem 1. Assume that f ∗is injective. If d2 ≳N poly log N, then with high probability over the +draw of the embeddings, there exists a W such that +arg max +y∈[M] u⊤ +y W ex = f ∗(x) +for all x ∈[N]. +(1) +This capacity is obtained by the construction W = P +x∈[N] uf ∗(x)e⊤ +x . Furthermore, if W is +restricted to be a rank m matrix, then such a W exists when md ≳N poly log N; this construction +is W = P +x∈[N] uf ∗(x)e⊤ +x +Pm +i=1 viv⊤ +i , where vi ∈Rd are drawn i.i.d from the standard Gaussian. +Since W has d2 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 ∗is important, as otherwise the capacity may be as low as d, as +in (Cabannes et al., 2024). Additionally, we remark that these constructions are easily obtained +by gradient descent; the general W construction corresponds to one-step of GD on the correlation +loss L(W ) = −P +x u⊤ +f ∗(x)W ex, while the low-rank construction corresponds to parameterizing +W = UV ⊤for U, V ∈Rd×m, and taking one step of GD on U while 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 (Hopfield, 1982), yet dif- +fers in that we decode to a fixed discrete set of output tokens [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 d to d2 (McEliece et al., 1987). 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 = d. Since our constructions are in the regime N ≫d, the +associative memory W is a superposition (Elhage et al., 2022) of the outer products uf ∗(x)e⊤ +x . +Finally, we remark that the random, rather than trainable, embeddings setting was also studied in +Cabannes et al. (2024). 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 F is a two-layer neural network with hidden width m; that is +F(ex) = V ⊤σ(W ex) for V , W ∈Rm×d. +Theorem 2 (Informal). If md ≳N poly log N, then with high probability over the draw of the +embeddings, there exists V , W such that +arg max +y∈[M] u⊤ +y V ⊤σ(W ex) = f ∗(x) +for all x ∈[N]. +(2) +Since the MLP has 2md 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 ran- +dom feature transformation. First, sample the rows of W from the standard Gaussian. Then, set each +vi = m−1 P +x uf ∗(x)hk(⟨wi, ex⟩), where hk is the kth Hermite polynomial (see Appendix F.1). +We then see that +F(ex) = 1 +m +m +X +i=1 +X +x′∈[N] +uf ∗(x′)hk(⟨wi, ex′⟩)σ(⟨wi, ex⟩) ≈ +X +x′∈[N] +uf ∗(x′)⟨ex, ex′⟩k. +(3) +for sufficiently large m. Such polynomial associative memory is reminiscent of that in Krotov & +Hopfield (2016), and can store many more associations for large k. By choosing k ≈logd m and +appropriately dealing with concentration, one can obtain the ˜O(md) storage capacity (for technical +reasons, we must also use the Neural Tangent Kernel (Jacot et al., 2018) rather the random feature +model). The full proof of Theorem 2 is deferred to Appendix B. +3 + +PAGE 4 +Published as a conference paper at ICLR 2025 +102 +103 +104 +d2 +101 +102 +103 +N +Linear Associative Memory +Nlog N +d2 +102 +103 +104 +md +102 +103 +104 +N +MLP Associative Memory +m/d = 1 +m/d = 2 +m/d = 4 +m/d = 8 +Nlog N +md +Figure 1: We train linear and MLP associative memories to store f ∗(x) = x. Left: Linear associa- +tive memories require d2 ∝N log N parameters to store N associations. Right: MLP associative +memories require md ∝N log N parameters to store N associations, as predicted by Theorem 2. +On Optimal Storage Capacity. +Prior works (Bubeck et al., 2020; Madden & Thrampoulidis, +2024; Madden et al., 2024) 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 (Vardi et al., 2021; Kajitsuka & Sato, 2023; 2024) show that one +can memorize N arbitrary labels with ˜O( +√ +N) parameters, at the expense of using a bit complexity +of ˜Ω( +√ +N). Such networks still require Ω(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. 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), and thus more accurately captures realistic training regimes where +models do seem to succeed with low precision (Dettmers et al., 2022; Allen-Zhu & Li, 2024). +Empirical Validation. +In Figure 1, we train both linear and MLP associative memories to store +the association f ∗(x) = x. Given a fixed model size (d, m), we fit datasets with increasing values +of N using the cross entropy loss, and plot the largest value of N for which we can obtain at +least 99% accuracy. We observe that the linear associative memory can store ˜Θ(d2) associations, +while the MLP associative memory can store ˜Θ(md) associations. See Appendix A for additional +experiments where the number of output tokens M does not scale with N. +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 S be a set of subject tokens and R be a set of relation +tokens, where S = |S|, R = |R|. Let A be the set of answer tokens. We let a∗: S × R →A be the +ground truth association function, which maps subject-relation tuples (s, r) to their corresponding +answer a∗(s, r)1. A similar such task was considered in Petroni et al. (2019); Ghosal et al. (2024). +Define Ar to be the set of answers corresponding to a relation r, i.e Ar := {a∗(s, r) : s ∈S}. +Define As := {a∗(s, r) : r ∈R} analogously. We assume that each relation corresponds to a +disjoint set of answers: +Assumption 1. Ar ∩Ar′ = ∅for r, r′ ∈R with r̸ = r′. Furthermore, define D := maxr∈R |Ar|. +For example, S could be the set of all countries, while R could be {president, capital}; in this case, +the set of all presidents and set of all capitals are disjoint. +1We focus on one-to-one relations, where each (s, r) pair corresponds to a unique a∗. This is in contrast +to the one-to-many setting, where each (s, r) maps to many possible answers (for example, s = “France,” r = +“city,” a∗∈{“Paris”, “Toulouse”, · · · }) +4 + +PAGE 5 +Published as a conference paper at ICLR 2025 +EOS +⋯ +⋯ +⋯ +→ +s +r +a* +z1 +zi−1 +zi+1 +zj−1 +zj+1 +zT−1 +Figure 2: A diagram of the synthetic factual recall task. +We next define our data distribution D over sequences. Let T > 0 be the context length. Let N +be a set of noise tokens, and define the vocabulary to be V := S ∪R ∪A ∪N ∪{EOS}, where +EOS is a special “end-of-sequence” token. The data distribution is over length T + 1 sequences +z1:T +1 := (z1, z2, . . . , zT , zT +1) ∈VT +1, generated via the following procedure: +1. First, sample a subject and relation tuple (s, r) from some distribution p over S × R. +2. Next, sample two distinct indices i, j ∈[T −1]. Set zi = s and zj = r. +3. For the remainder of tokens zk where k ∈[T −1] \ {i, j}, draw zk uniformly at random +from the noise tokens N. +4. Set zT = EOS. +5. Finally, set zT +1 = a∗(s, r). +The goal of this task is to predict zT +1 from (z1, . . . , zT ). 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) 7→a∗(s, r). See Figure 2 for a diagram of the 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 +d to be the embedding dimension. The input to the transformer is a sequence of vectors X := +(x1, . . . , xT )⊤∈RT ×d. Each self attention head is parameterized by the key, query, and value +matrices WK, WQ, WV ∈Rdh×d, where dh is the head dimension. The self attention head is then +a map attn( · ; WK, WQ, WV ) : RT ×d →Rdh, which operates as +attn(X; WK, WQ, WV ) = WV X⊤S +XW ⊤ +K WQxT + +, +(4) +where S(z)i = +exp(zi) +P +j exp(zj) is the softmax operator. +A multi-head self-attention layer with H heads is parameterized by H different key, query, and +value matrices, along with H output matrices. Let θ := {(W (h) +K , W (h) +Q , W (h) +V +, W (h) +O )}h∈[H], +where W (h) +K , W (h) +Q , W (h) +V +, W (h) +O +∈Rdh×d. +A multi-head self-attention layer is then a map +FMHSA( · ; θ) : RT ×d →Rd given by +FMHSA(X; θ) = +X +h∈[H] +W (h) +O +⊤attn(X; W (h) +K , W (h) +Q , W (h) +V +). +(5) +Finally, a single-layer transformer combines a multi-head self-attention layer with an MLP. Let m +be the MLP width. Let V , W ∈Rm×d be the MLP parameters, and define θTF := θ ∪{V , W }. +Then, a single-layer transformer is the map FTF( · ; θTF) : RT ×d →Rd given by +FTF(X; θTF) = FMHSA(X; θ) + V ⊤σ(W FMHSA(X; θ)). +(6) +A single-layer transformer is parameterized by the tuple of hyperparameters (d, H, dh, m). The +model has 4Hddh self-attention parameters, and 2md 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% ac- +curacy on the synthetic task. For each token z ∈V, sample its embedding vectors φ(z) ∈Rd +i.i.d uniformly over the sphere of radius 1. An input sequence (z1, . . . , zT ) gets embedded as +X = (φ(z1), . . . , φ(zT ))⊤. We use argmax decoding to predict the next token; that is, +ˆf(z1:T ) = arg max +z∈V φ(z)⊤FTF(X; θTF). +(7) +5 + +PAGE 6 +Published as a conference paper at ICLR 2025 +Our first result is that there exists an attention-only single-layer transformer that obtain 100% accu- +racy on the factual recall task, as long as the total number of self-attention parameters 4Hddh scales +(up to logarithmic factors) linearly with the dataset size SR. +Theorem 3 (Attention-only, informal). Assume that d ≥˜Ω(max(R, D)) and Hdh ≥˜Ω(S + R). +With high probability over the embeddings, there exists a single-layer attention-only transformer +FTF( · ; θTF) with embedding dimension d, number of heads H and head dimension dh such that +Pz1:T +1∼D + +arg max +z∈V φ(z)⊤FTF(X; θTF) = zT +1 + += 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 md scales linearly with the dataset size: +Theorem 4 (Attention + MLP, informal). Assume that σ is a polynomial of sufficiently large degree. +Define C(a) = |{(s, r) : a∗(s, r) = a}|. Let (d, H, dh, m) satisfy +d ≥˜Ω(1) +Hdh ≥˜Ω(S + R) +m ≥˜Ω(max +a +C(a)) +md ≥˜Ω(SR). +(9) +Then with high probability over the embeddings there exists a single-layer transformer FTF( · ; θTF) +with embedding dimension d, number of heads H, head dimension dh, and MLP width m such that +Pz1:T +1∼D + +arg max +z∈V φ(z)⊤FTF(X; θTF) = zT +1 + += 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 Hdh must be larger than S + R. This corresponds to +self-attention having sufficient capacity to filter out the tokens in S ∪R from the noise tokens N. +For the attention-only architecture, we additionally require d = ˜Ω(max(R, D)). When R ≥D, +the total number of parameters Hddh is (up to logs) at least the total number of facts SR. For +the MLP construction, the second condition is that the number of MLP parameters, md, scales +nearly linearly with the number of facts SR. 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 M subset of S × R, where the constraints now become Hddh, md = ˜Ω(M). +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:T while ignoring the noise tokens. To the hth attention head, we +associate a subset S(h) ⊂S ∪R of subject and relation tokens. Then, setting +W (h) +K +⊤W (h) +Q +≈β +X +z∈S(h) +φ(z)φ(EOS)⊤ +(11) +for a large constant β, we see that the hth head will only attend to the tokens in the subset S(h). We +remark that since the embeddings are d-dimensional, at most d/ poly log(d) embeddings can be in +superposition, and thus we must have + S(h) ≤d/ poly log(d). +For the attention-only construction, the output-value matrix W (h) +O +⊤W (h) +V +acts as a linear associative +memory, mapping each z in S(h) to a superposition of all possible answers associated with the +subject/relation z. Letting Ph be a projection onto a random dh-dimensional subspace of Rd, we set +W (h) +O +⊤W (h) +V +∝ +X +z∈S(h) +X +a∈Az +φ(a)φ(z)⊤Ph. +(12) +6 + +PAGE 7 +Published as a conference paper at ICLR 2025 +EOS +s +r +a*(s, r) +Head + (attends to s) +hs +W⊤ +OWV +∑a∈풜s ϕ(a) +X⊤풮(XW⊤ +KWQxT) +ϕ(s) +∑a∈풜r ϕ(a) +0 +0 +1 +1 +1 +0 +0 +0 +풜s +0 +0 +0 +1 +1 +1 +0 +풜r +0 +1 +1 +2 +1 +1 +0 +풜s +풜r +argmax +Rest of heads attend to EOS +W⊤ +OWV +X⊤풮(XW⊤ +KWQxT) +Head + (attends to r) +hr +W⊤ +OWV +X⊤풮(XW⊤ +KWQxT) +⋮ +⋮ +⋮ +⋮ +ϕ(EOS) +ϕ(r) +∑a∈풜r ϕ(a) + ∑a∈풜s ϕ(a) +Attention-only Construction +EOS +s +r +heads attends to s +⌈d/dh⌉ +W⊤ +OWV +X⊤풮(XW⊤ +KWQxT) +ϕ(s) +W⊤ +OWV +X⊤풮(XW⊤ +KWQxT) +heads attends to r +⌈d/dh⌉ +W⊤ +OWV +X⊤풮(XW⊤ +KWQxT) +⋮ +⋮ +⋮ +⋮ +ϕ(EOS) +ϕ(r) +Rest of heads attend to EOS +MLP Associative Memory +x ↦V⊤σ(Wx) +˜ϕ(s) +0 +˜ϕ(r) +˜ϕ(s) +˜ϕ(r) +a*(s, r) +Attention + MLP Construction +Figure 3: Both the Attention-only and Attention+MLP constructions for the factual recall task. +In Lemma 2, we show that this construction stores at most dh tokens per head (i.e + S(h) ≲dh), and +requires the dimension to scale with the number of elements in superposition (i.e |Az| ≲d). Since +|Az| ≤R + D, and the S(h) partition S ∪R, it suffices to take d ≳R + D and Hdh ≳S + R. +For the MLP construction, we instead associate the subset S(h) with ⌈d/dh⌉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(X; θ) = φ(s) + φ(r). +Finally, the MLP layer acts as an MLP associative memory, mapping φ(s) + φ(r) to φ(a∗(s, r)) +for each (s, r) pair. Via a similar computation to Theorem 2, it suffices to make the total number of +parameters md be md = ˜Ω(SR). Since the S(h) partition S ∪R, it suffices to take Hdh ≳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 SR. We further +observe that 100% accuracy can be achieved as long as the total number of parameters scales with +SR, 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)2, and corresponds to the family of models satisfying +Hdh = αd and m = βd. The total number of model parameters is 4Hdhd + 2md = (4α + 2β)d2, +which can thus be varied by increasing d. For a fixed model size (d, H, dh, m), we binary search on +the largest dataset size that can be memorized. Specifically, we fix D = 8 and vary S, R jointly as +S = R. Experiments with different scalings are considered in Appendix A. For each (S, R, D), the +fact dataset is generated at random by selecting |A| = RD, |N| = S + R, and for each s sampling +a∗(s, r) uniformly at random from {(r −1)D + 1, . . . , rD}. We say the dataset was successfully +memorized, and as such SR 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 = 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 Hdh = ˜Ω(S + R) constraint. +2The “standard” transformer scaling takes α = 1, β = 4. +7 + +PAGE 8 +Published as a conference paper at ICLR 2025 +103 +104 +105 +106 +Number of Parameters +102 +103 +104 +Number of Facts Stored +alpha=4.0, beta=4.0 +alpha=4.0, beta=2.0 +alpha=4.0, beta=1.0 +alpha=4.0, beta=0.5 +alpha=2.0, beta=4.0 +alpha=2.0, beta=2.0 +alpha=2.0, beta=1.0 +alpha=2.0, beta=0.5 +alpha=2.0, beta=0.25 +alpha=1.0, beta=2.0 +alpha=1.0, beta=1.0 +alpha=1.0, beta=0.5 +alpha=1.0, beta=0.25 +alpha=0.5, beta=4.0 +alpha=0.5, beta=2.0 +alpha=0.5, beta=1.0 +alpha=0.5, beta=0.5 +alpha=0.5, beta=0.25 +alpha=0.25, beta=4.0 +alpha=0.25, beta=2.0 +alpha=0.25, beta=1.0 +alpha=0.25, beta=0.5 +alpha=0.25, beta=0.25 +Facts + Params +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 = |V|, and let the embedding vectors {φ(z)}z∈V satisfy +⟨φ(z), φ(z′)⟩= δz=z′. Such linear attention or orthogonal embeddings assumptions are common +in prior works studying the gradient descent dynamics of transformers (Li et al., 2023; Von Oswald +et al., 2023; Ahn et al., 2024; Mahankali et al., 2024; Zhang et al., 2024; Nichani et al., 2024). +The linear attention model is given by +Flin(X; θ) := WOV X⊤XWKQxT , +(13) +where we set dh = d and let WOV := W ⊤ +O WV , WKQ := W ⊤ +K WQ denote the non-factorized +output-value and key-query matrices. Let ˆp(· | z1:T ) ∈∆A be the predicted next token distribution +on an input sequence z1:T , i.e +ˆp(a | z1:T ) := +exp (⟨φ(a), Flin(X; θ)⟩) +P +a′∈A exp (⟨φ(a′), Flin(X; θ)⟩). +(14) +One can then rewrite the cross entropy loss as +L(θ) = Ez1:T +1[−log ˆp(zT +1 | z1:T )]. +(15) +We would like to characterize the output of running gradient flow, (i.e ˙θ = −∇L(θ)) with respect to +the non-factorized parameters θ := {WOV , WKQ} on the cross-entropy loss (15). For notational +convenience, we denote WOV (a, z) := φ(a)⊤WOV φ(z), WKQ(z) := φ(z)⊤WKQφ(EOS), and +note that by isometry gradient flow on θ 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, set WOV (a, z) = α and WKQ(z) = +α +p +|A| + 1 for each a ∈A, z ∈V. +Our first result is that the gradient flow indeed converges to zero loss. As a consequence, the pre- +dicted next token probabilities ˆp(zT +1 | z1:T ) converge to 1(zT +1 = a∗(s, r)), where s, r are the +subject and relation contained in the sequnece z1:T . +Theorem 5 (Global Convergence). For t ≥0, let θ(t) be the output of running gradient flow for t +time. For any δ > 0, there exists a time tδ such that for t ≥tδ, L(θ(t)) ≤δ. +We next show that the model undergoes a sequential learning dynamics. Let us assume that the +number of subjects S is much greater than the number of facts R. We show that during the first +stage of training only the WOV (a, r) and WKQ(r) components grow for relations r ∈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 r. Define p∗(· | r) to be the conditional distribution of the +answer, given the relation r, i.e p∗(a | r) := P +s∈S p(s | r)1(a = a∗(s, r)). +8 + +PAGE 9 +Published as a conference paper at ICLR 2025 +0 +2000 +4000 +6000 +8000 +Steps of GD +0.0 +0.5 +1.0 +1.5 +2.0 +2.5 +3.0 +3.5 +Cross Entropy Loss +Stage 1: +Init +Stage 2: +Hallucination +Stage 3: +Convergence +Relation-only +Subject-only +Total +0 +1000 +2000 +3000 +4000 +Steps of GD +0.0 +0.5 +1.0 +1.5 +2.0 +2.5 +3.0 +3.5 +Cross Entropy Loss +Stage 1: +Init +Stage 2: +Hallucination +Stage 3: +Convergence +Relation-only +Subject-only +Total +Figure 5: (Left) Loss of the linear attention model with orthogonal embeddings. There is an interme- +diate 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 inter- +mediate hallucination stage, where the relation-only loss is zero but the total loss is still large. +Theorem 6 (Sequential Learning). Assume that S ≥8R +√ +2D, and |N| ≥4R +√ +2DT. Let p(s, r) = +1 +SR. Pick ϵ > 0. There exists runtime T ∗and initialization scale α (both depending on ϵ) such that: +1. For all t ≤T ∗and z ∈S ∪N, a ∈A, we have |WOV (a, z)|, |WKQ(z)| ≤α1/2 +2. There exists t ≤T ∗such that, for any input sequence z1:T containing a relation r, +P +a∈A (p∗(a | r) −ˆp(a | z1:T ))2 ≤ϵ2. +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 ) is approximately equal to p∗(· | r), the conditional distribution of the answer given the relation +r. At this stage, the model ignores all other tokens in the sequence z1:T – including the useful subject +token s – and predicts based only on the relation r. For example, if S is the set of all countries and +r 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 ≫R, it is possible for this intermediate hallucination stage to exhibit different behavior. +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 = 4 and D = 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 |A|. +Next, the loss plateaus at log D, and the model outputs the conditional distribution of a given the +relation r. 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 Ez1:T +1 + +−log +P +a∈Ar p(a | z1:T ) + +, +where any probability mass assigned to an answer which is valid for the relation r 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] and [M] be the input and output vocabularies, respectively. To +establish a lower bound, we must consider a distribution over association functions f ∗. For each +x ∈[N], assume that the output f ∗(x) is sampled independently from the uniform distribution over +[M]. We model the learning protocol as follows. At train time, the learner observes the randomly +9 + +PAGE 10 +Published as a conference paper at ICLR 2025 +sampled ground truth f ∗, and writes down a B bit model F . At test time, the learner generates a +set of predictions ˆf ∈RN×M from F , where ˆf(x) ∈∆M is the prediction for f ∗(x). Both the +mappings f ∗→F and F →ˆf can be randomized. Let p be a probability distribution over the input +space [N]; assume WLOG that p(1) ≥p(2) ≥· · · ≥p(N). The goal of the learner is to minimize +the cross entropy loss L( ˆf) = −P +x∈[N] p(x) log ˆf(x)f ∗(x). +Theorem 7. The expected loss of the learner can be lower bounded by +Ef ∗, ˆ +f +h +L( ˆf) +i +≥log M · P +x≥⌈ +B +log M ⌉p(x). +(16) +We thus see that in order to obtain zero loss, the learner must use B ≥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 p is a power law, i.e p(x) ∝x−α for α > 1. Then Ef ∗, ˆ +f +h +L( ˆf) +i +≳B1−α. +This lower bound is obtained by the MLP associative memory by storing the most probable ˜O(B) +associations. This matches the scaling law with respect to model size considered in Michaud et al. +(2023); Cabannes et al. (2024), which also considered storing the ˜O(B) most frequent associations. +Remark. +The constructions in Section 3 require storing ˜O(N) network parameters, along with +input and output embeddings. We view F in Theorem 7 as containing only the network parameters, +while the embeddings are “global” quantities, independent of the ground truth f ∗, used to compute +the predictions ˆ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)-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 & Li (2024). Let S and R be the fixed set of subjects and relations and V be +the full vocabulary, where |V| ≫|S|, |R|. The association function a∗: S × R →V is sampled +randomly as follows. First, for each relation r ∈R, the answer set Ar is chosen to be a uniformly +random size D subset of V, conditional on all subsets Ar being disjoint. For each s ∈S, the answer +a∗(s, r) is sampled uniformly at random from Ar. The learner sees the association a∗, writes down +a B bit model F , and from F generates a set of predictions ˆf ∈RS×R×|V|, where ˆf(s, r) ∈∆V +is the prediction for a∗(s, r). We lower bound L, the expected cross entropy loss with respect to a +distribution p(s, r) over S × R, defined as follows: +L := Ea∗, ˆ +f +h +L( ˆf) +i += Ea∗, ˆ +f +h +−P +s,r p(s, r) log ˆf(s, r)a∗(s,r) +i +. +(17) +Theorem 8. Assume that |V| ≥2RD and S ≥CD log +2D2 log |V | + +for sufficiently large constant +C. There exists a constant c ∈(0, 1) such that, if L = 0, the number of bits B must satisfy +B ≥SR log D + (1 −c)RD log (|V|/D) +(18) +We thus see that ˜O(SR) parameters are needed to achieve a loss of zero. For this lower bound, the +learner knows the sets S and R and does not have to distinguish them from the noise tokens 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 dynam- +ics 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 (Hoffmann et al., 2022). In particular, does there exist +a scaling law lower bound for the factual recall task? Finally, it would be very interesting to under- +stand 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. +10 + +PAGE 11 +Published as a conference paper at ICLR 2025 +ACKNOWLEDGEMENTS +This work was conducted while EN was an intern at the Flatiron Institute. 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 +Kwangjun Ahn, Xiang Cheng, Hadi Daneshmand, and Suvrit Sra. Transformers learn to imple- +ment preconditioned gradient descent for in-context learning. Advances in Neural Information +Processing Systems, 36, 2024. +Zeyuan Allen-Zhu and Yuanzhi Li. Physics of language models: Part 3.3, knowledge capacity +scaling laws. arXiv preprint arXiv:2404.05405, 2024. +William Beckner. Inequalities in fourier analysis. Annals of Mathematics, 102(1):159–182, 1975. +ISSN 0003486X, 19398980. URL http://www.jstor.org/stable/1970980. +William Beckner. Sobolev inequalities, the poisson semigroup, and analysis on the sphere sn. Pro- +ceedings 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. +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. +S´ebastien 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. +Vivien Cabannes, Elvis Dohmatob, and Alberto Bietti. Scaling laws for associative memories. In +International Conference on Learning Representations (ICLR), 2024. +Mete Demircigil, Judith Heusel, Matthias L¨owe, Sven Upgang, and Franck Vermet. On a model +of associative memory with huge storage capacity. Journal of Statistical Physics, 168:288–299, +2017. +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. +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 super- +position. Transformer Circuits Thread, 2022. URL https://transformer-circuits. +pub/2022/toy_model/index.html. +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. +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. +Gaurav Ghosal, Tatsunori Hashimoto, and Aditi Raghunathan. Understanding finetuning for factual +knowledge extraction. arXiv preprint arXiv:2406.14785, 2024. +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. Train- +ing compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022. +11 + +PAGE 12 +Published as a conference paper at ICLR 2025 +Benjamin Hoover, Yuchen Liang, Bao Pham, Rameswar Panda, Hendrik Strobelt, Duen Horng +Chau, Mohammed Zaki, and Dmitry Krotov. Energy transformer. Advances in Neural Infor- +mation Processing Systems, 36, 2023. +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. +Arthur Jacot, Franck Gabriel, and Cl´ement Hongler. Neural tangent kernel: Convergence and gen- +eralization in neural networks. Advances in neural information processing systems, 31, 2018. +Samy Jelassi, Michael Sander, and Yuanzhi Li. Vision transformers provably learn spatial structure. +In Advances in Neural Information Processing Systems (NeurIPS), 2022. +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. +Yibo Jiang, Goutham Rajendran, Pradeep Ravikumar, and Bryon Aragam. Do llms dream of ele- +phants (when told not to)? latent concept association and associative memory in transformers. +arXiv preprint arXiv:2406.18400, 2024. +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. +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. +Tokio Kajitsuka and Issei Sato. Optimal memorization capacity of transformers. arXiv preprint +arXiv:2409.17677, 2024. +Teuvo Kohonen. Correlation matrix memories. IEEE Transactions on Computers, 1972. +Dmitry Krotov and John J Hopfield. Dense associative memory for pattern recognition. Advances +in neural information processing systems, 29, 2016. +Hung Le, Truyen Tran, and Svetha Venkatesh. Self-attentive associative memory. In International +conference on machine learning, pp. 5682–5691. PMLR, 2020. +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. +Carlo Lucibello and Marc M´ezard. Exponential capacity of dense associative memories. Physical +Review Letters, 132(7):077301, 2024. +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. +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. +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. +Arvind Mahankali, Tatsunori B Hashimoto, and Tengyu Ma. One step of gradient descent is prov- +ably the optimal in-context learner with one layer of linear self-attention. In Proceedings of the +International Conference on Learning Representations (ICLR), 2024. +Sadegh Mahdavi, Renjie Liao, and Christos Thrampoulidis. Memorization capacity of multi-head +attention in transformers. arXiv preprint arXiv:2306.02010, 2023. +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. +12 + +PAGE 13 +Published as a conference paper at ICLR 2025 +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. +Eric Michaud, Ziming Liu, Uzay Girit, and Max Tegmark. The quantization model of neural scaling. +Advances in Neural Information Processing Systems, 36, 2023. +Ashley Montanaro. Some applications of hypercontractive inequalities in quantum information the- +ory. Journal of Mathematical Physics, 53(12), 2012. +Neel +Nanda, +S +Rajamanoharan, +J +Kram´ar, +and +R +Shah. +Fact +finding: +Attempt- +ing 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. +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. +Fabio Petroni, Tim Rockt¨aschel, 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. +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. +Hubert Ramsauer, Bernhard Sch¨afl, Johannes Lehner, Philipp Seidl, Michael Widrich, Thomas +Adler, Lukas Gruber, Markus Holzleitner, Milena Pavlovi´c, Geir Kjetil Sandve, et al. Hopfield +networks is all you need. arXiv preprint arXiv:2008.02217, 2020. +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. +Imanol Schlag, Kazuki Irie, and J¨urgen Schmidhuber. Linear transformers are secretly fast weight +programmers. In Proceedings of the International Conference on Machine Learning (ICML), +2021. +Charlie Snell, Ruiqi Zhong, Dan Klein, and Jacob Steinhardt. Approximating how single head +attention learns. arXiv preprint arXiv:2103.07601, 2021. +Yuandong Tian, Yiping Wang, Beidi Chen, and Simon Du. Scan and snap: Understanding train- +ing dynamics and token composition in 1-layer transformer. In Advances in Neural Information +Processing Systems (NeurIPS), 2023. +Gal Vardi, Gilad Yehudai, and Ohad Shamir. On the optimal memorization power of relu neural +networks. arXiv preprint arXiv:2110.03187, 2021. +Johannes Von Oswald, Eyvind Niklasson, Ettore Randazzo, Jo˜ao Sacramento, Alexander Mordv- +intsev, Andrey Zhmoginov, and Max Vladymyrov. Transformers learn in-context by gradient +descent. In International Conference on Machine Learning, pp. 35151–35174. PMLR, 2023. +David J Willshaw, O Peter Buneman, and Hugh Christopher Longuet-Higgins. Non-holographic +associative memory. Nature, 222(5197):960–962, 1969. +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. +13 + +PAGE 14 +Published as a conference paper at ICLR 2025 +A +ADDITIONAL EXPERIMENTS +A.1 +MLP ASSOCIATIVE MEMORY +In Figure 6, we train MLP associative memories to store the association f ∗(x) = x mod M. We +fix M = 32 throughout. In this case, we see that the number of associations N which can be stored +by a model with md parameters scales as N ∝md. This linear scaling in the absence of logarithmic +factors is due to the fact that the number of output tokens M is a constant, and does not scale with +the number of input tokens N. +102 +103 +104 +md +102 +103 +104 +N +MLP Associative Memory +m/d = 1 +m/d = 2 +m/d = 4 +m/d = 8 +N +md +Figure 6: We train an MLP associative memory to store the association f ∗(x) = x mod 32. Em- +pirically, md ∝N parameters are required to store N associations. +A.2 +FACTUAL RECALL +In Figures 7 to 9, we repeat the experiment in the left pane of Figure 4, for different choices of H +and scalings of (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. +103 +104 +105 +106 +Number of Parameters +102 +103 +104 +Number of Facts Stored +H = 4, D = 8, S = R +alpha=4.0, beta=4.0 +alpha=4.0, beta=2.0 +alpha=4.0, beta=1.0 +alpha=4.0, beta=0.25 +alpha=2.0, beta=4.0 +alpha=2.0, beta=2.0 +alpha=2.0, beta=1.0 +alpha=2.0, beta=0.5 +alpha=2.0, beta=0.25 +alpha=1.0, beta=4.0 +alpha=1.0, beta=2.0 +alpha=1.0, beta=1.0 +alpha=1.0, beta=0.5 +alpha=1.0, beta=0.25 +alpha=0.5, beta=4.0 +alpha=0.5, beta=2.0 +alpha=0.5, beta=1.0 +alpha=0.5, beta=0.5 +alpha=0.5, beta=0.25 +alpha=0.25, beta=4.0 +alpha=0.25, beta=2.0 +alpha=0.25, beta=1.0 +alpha=0.25, beta=0.5 +alpha=0.25, beta=0.25 +Facts + Params +103 +104 +105 +Number of Parameters +102 +103 +104 +Number of Facts Stored +H = 16, D = 8, S = R +alpha=4.0, beta=4.0 +alpha=4.0, beta=2.0 +alpha=4.0, beta=1.0 +alpha=4.0, beta=0.5 +alpha=4.0, beta=0.25 +alpha=2.0, beta=4.0 +alpha=2.0, beta=2.0 +alpha=2.0, beta=1.0 +alpha=2.0, beta=0.5 +alpha=2.0, beta=0.25 +alpha=1.0, beta=4.0 +alpha=1.0, beta=2.0 +alpha=1.0, beta=1.0 +alpha=1.0, beta=0.5 +alpha=1.0, beta=0.25 +alpha=0.5, beta=4.0 +alpha=0.5, beta=2.0 +alpha=0.5, beta=1.0 +alpha=0.5, beta=0.5 +alpha=0.5, beta=0.25 +alpha=0.25, beta=4.0 +alpha=0.25, beta=2.0 +alpha=0.25, beta=1.0 +alpha=0.25, beta=0.5 +alpha=0.25, beta=0.25 +Facts + Params +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. +A.3 +EXPERIMENTAL DETAILS +Figures 1, 6: +For the MLP associative memory experiments, for each choice of m, d, N, we first +sample random embeddings {ex}x∈[N], {uy}y∈[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) = x. We use standard +parameterization and initialization, and the activation σ = ReLU. The network is trained using +ADAM with a learning rate of 10−2 for 214 steps. We compute the maximum accuracy the network +14 + +PAGE 15 +Published as a conference paper at ICLR 2025 +103 +104 +105 +106 +Number of Parameters +102 +103 +104 +Number of Facts Stored +H = 8, D = S = R +alpha=4.0, beta=4.0 +alpha=4.0, beta=2.0 +alpha=4.0, beta=1.0 +alpha=4.0, beta=0.5 +alpha=4.0, beta=0.25 +alpha=2.0, beta=4.0 +alpha=2.0, beta=2.0 +alpha=2.0, beta=1.0 +alpha=2.0, beta=0.5 +alpha=2.0, beta=0.25 +alpha=1.0, beta=4.0 +alpha=1.0, beta=2.0 +alpha=1.0, beta=1.0 +alpha=1.0, beta=0.5 +alpha=1.0, beta=0.25 +alpha=0.5, beta=4.0 +alpha=0.5, beta=2.0 +alpha=0.5, beta=1.0 +alpha=0.5, beta=0.5 +alpha=0.5, beta=0.25 +alpha=0.25, beta=4.0 +alpha=0.25, beta=2.0 +alpha=0.25, beta=1.0 +alpha=0.25, beta=0.5 +alpha=0.25, beta=0.25 +Facts + Params +103 +104 +105 +Number of Parameters +102 +103 +104 +Number of Facts Stored +H = 16, D = S = R +alpha=4.0, beta=4.0 +alpha=4.0, beta=2.0 +alpha=4.0, beta=1.0 +alpha=4.0, beta=0.5 +alpha=4.0, beta=0.25 +alpha=2.0, beta=4.0 +alpha=2.0, beta=2.0 +alpha=2.0, beta=1.0 +alpha=2.0, beta=0.5 +alpha=2.0, beta=0.25 +alpha=1.0, beta=4.0 +alpha=1.0, beta=2.0 +alpha=1.0, beta=1.0 +alpha=1.0, beta=0.5 +alpha=1.0, beta=0.25 +alpha=0.5, beta=4.0 +alpha=0.5, beta=2.0 +alpha=0.5, beta=1.0 +alpha=0.5, beta=0.5 +alpha=0.5, beta=0.25 +alpha=0.25, beta=4.0 +alpha=0.25, beta=2.0 +alpha=0.25, beta=1.0 +alpha=0.25, beta=0.5 +alpha=0.25, beta=0.25 +Facts + Params +Figure 8: We repeat Figure 4 on factual recall tasks where each subject and relation map to a distinct +answer (i.e D = S). +103 +104 +105 +106 +Number of Parameters +102 +103 +104 +Number of Facts Stored +H = 8, D = 8, S = R2 +alpha=4.0, beta=4.0 +alpha=4.0, beta=2.0 +alpha=4.0, beta=1.0 +alpha=4.0, beta=0.5 +alpha=4.0, beta=0.25 +alpha=2.0, beta=4.0 +alpha=2.0, beta=2.0 +alpha=2.0, beta=1.0 +alpha=2.0, beta=0.5 +alpha=2.0, beta=0.25 +alpha=1.0, beta=4.0 +alpha=1.0, beta=2.0 +alpha=1.0, beta=1.0 +alpha=1.0, beta=0.5 +alpha=1.0, beta=0.25 +alpha=0.5, beta=4.0 +alpha=0.5, beta=2.0 +alpha=0.5, beta=1.0 +alpha=0.5, beta=0.5 +alpha=0.5, beta=0.25 +alpha=0.25, beta=4.0 +alpha=0.25, beta=2.0 +alpha=0.25, beta=1.0 +alpha=0.25, beta=0.5 +alpha=0.25, beta=0.25 +Facts + Params +103 +104 +105 +Number of Parameters +102 +103 +104 +Number of Facts Stored +H = 16, D = 8, S = R2 +alpha=4.0, beta=4.0 +alpha=4.0, beta=2.0 +alpha=4.0, beta=1.0 +alpha=4.0, beta=0.5 +alpha=4.0, beta=0.25 +alpha=2.0, beta=4.0 +alpha=2.0, beta=2.0 +alpha=2.0, beta=1.0 +alpha=2.0, beta=0.5 +alpha=2.0, beta=0.25 +alpha=1.0, beta=4.0 +alpha=1.0, beta=2.0 +alpha=1.0, beta=1.0 +alpha=1.0, beta=0.5 +alpha=1.0, beta=0.25 +alpha=0.5, beta=4.0 +alpha=0.5, beta=2.0 +alpha=0.5, beta=1.0 +alpha=0.5, beta=0.5 +alpha=0.5, beta=0.25 +alpha=0.25, beta=4.0 +alpha=0.25, beta=2.0 +alpha=0.25, beta=1.0 +alpha=0.25, beta=0.5 +alpha=0.25, beta=0.25 +Facts + Params +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 = R2. +achieves over the training run, and say that the network has “stored” the dataset if the highest accu- +racy is at least 99%. We repeat this procedure to binary search over N, to find the largest value of +N such that the network achieves an accuracy of at least 99%. Error bars are shown for 5 random +seeds. +Figures 4, 7, 8, 9: +We consider a fixed prompt length of T = 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 SR such that the +model achieves an accuracy of at least 99%. All models were trained using ADAM for 214 steps, +with a sweep over learning rates in {.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−5. In the right plot, we train a softmax attention head +with random embeddings, which are fixed throughout training. +Code +for +all +the +experiments +can +be +found +at +https://github.com/eshnich/ +factual-recall-iclr. +B +PROOFS FOR SECTION 3 +Proof of Theorem 1. Let us set W = P +z∈[N] uf ∗(z)e⊤ +z . For y̸ = f ∗(x), define the quantity γxy by +γxy = (uf ∗(x) −uy)⊤W ex. +15 + +PAGE 16 +Published as a conference paper at ICLR 2025 +We first see that (where the expectation is taken over the randomness of the embedding vectors) +E[γxy] = +X +z∈[N] +E + +(uf ∗(x) −uy)⊤uf ∗(z) + +E + +e⊤ +z ex + += E + +(uf ∗(x) −uy)⊤uf ∗(x) + += 1. +We can next compute the second moment of γxy. Since the ez are drawn uniformly on the sphere, +the e⊤ +z ex terms for z̸ = x are independent and mean zero. Therefore +E[γ2 +xy] = +X +z∈[N] +E +h(uf ∗(x) −uy)⊤uf ∗(z) +2i +E +he⊤ +z ex +2i += E + +1 −u⊤ +f ∗(x)uy +2 ++ 1 +d +X +z̸=x +E +h(uf ∗(x) −uy)⊤uf ∗(z) +2i += 1 + 1 +d + 1 +d +X +z̸=x +2 +d · 1(f ∗(z)̸ = y) + + +1 + 1 +d + +· 1(f ∗(z) = y) + += + +1 + 1 +d +2 ++ 2(N −2) +d2 +. +Therefore +Var(γxy) = 2 +d + 1 +d2 + 2(N −2) +d2 +≲1 +d + N +d2 . +Let δ be a fixed failure probability, and let δ′ = +δ +NM . Observe that γxy is a degree 4 polynomial. By +Lemma 14, by choosing d ≥C log4(1/δ′) and d2 ≥CN log4(1/δ′) for a sufficiently large constant +C, we have that 16e−1 log4(1/δ)Var(γxy) +(Eγxy)2 +≤1, and thus P(γxy ≤0) ≤δ′. +Therefore union bounding over all (x, y) pairs with y̸ = f ∗(x), we have that +P(∃γxy ≤0) ≤N(M −1)δ′ ≤δ. +Thus with probability 1 −δ, γxy +> +0 for all x and y̸ += +f ∗(x), and on this event +arg maxy∈[M] u⊤ +y W ex = f ∗(x) for all x ∈[N]. +For Theorem 2, we need the following assumption on the activation σ. +Assumption 3. σ is a polynomial of degree q. Furthermore, if σ(z) = Pq +k=0 ckhk(z) is the Hermite +decomposition of σ, then ck̸ = 0 for all 0 ≤k ≤q. +We prove the following formal version of Theorem 2. +Theorem 9. Let ϵ ∈(0, 1) be a fixed constant. Assume that d ≥N ϵ and N ≥C1(ϵ), where C1(ϵ) +is a constant depending only on ϵ. Assume that q in Assumption 3 satisfies q = C2 +ϵ for some C2 > 2. +Then, if md ≳N(C3 log(MN/δ))C4/ϵ, with probability 1 −δ over the draw of the embeddings, +there exists V , W such that +arg max +y∈[M] u⊤ +y V ⊤σ(W ex) = f ∗(x) +(19) +for all x ∈[N]. +Proof of Theorem 2. Let us consider the linearization, or Neural Tangent Kernel, of F: +FNTK(z) = V ⊤σ′(W 0z) ⊙(W −W 0)z + += +X +i∈[m] +viσ′(⟨w0 +i , z⟩)⟨wi −w0 +i , z⟩. +16 + +PAGE 17 +Published as a conference paper at ICLR 2025 +where W 0 is the initialization which we are linearizing with respect to. By rescaling the parameters +as W −W 0 ←ϵ(W −W 0) and V ←ϵ−1V , we see that F →FNTK as ϵ →0. It thus suffices +to work with FNTK instead of F. For ease of notation, we redefine W 0 as W , and W −W 0 as Q, +so that +F(z) = +X +i∈[m] +viσ′(⟨wi, z⟩)⟨qi, z⟩ +Let k be a even integer, to be chosen later. Assume without loss of generality that ck+1 > 0 (if it is +negative, we can simply negate all the qi in the construction below). Set +qi = 1 +m +X +z∈[N] +hk(⟨ez, wi⟩)⟨vi, uf ∗(z)⟩ez, +where hk is the kth Hermite polynomial. Then +F(ex) = 1 +m +X +i∈[m],z∈[N] +vi⟨vi, uf ∗(z)⟩σ′(⟨wi, ex⟩)hk(⟨ez, wi⟩)⟨ex, ez⟩ +As in the proof of Theorem 1, define the margin between x and some y̸ = f ∗(x) as +γxy = (uf ∗(x) −uy)⊤F(ex) += 1 +m +X +i∈[m],z∈[N] +⟨vi, uf ∗(x) −uy⟩⟨vi, uf ∗(z)⟩σ′(⟨wi, ex⟩)hk(⟨ez, wi⟩)⟨ex, ez⟩. +We will show that, with high probability over the draw of the embeddings over the sphere, and the +vi, wi independently from the standard Gaussian, that γxy > 0 for all y̸ = f ∗(x). +The expectation of the margin is +E[γxy] = +X +z +E + +⟨vi, uf ∗(x) −uy⟩⟨vi, uf ∗(z)⟩σ′(⟨wi, ex⟩)hk(⟨ez, wi⟩)⟨ex, ez⟩ + += ck+1 +X +z +E + +⟨uf ∗(x) −uy, uf ∗(z)⟩⟨ez, ex⟩k+1 += ck+1. +We next compute the variance. Define ωxy +iz as +ωxy +iz = ⟨vi, uf ∗(x) −uy⟩⟨vi, uf ∗(z)⟩σ′(⟨wi, ex⟩)hk(⟨ez, wi⟩)⟨ex, ez⟩, +so that γxy = +1 +m +P +i,z ωxy +iz . First, observe that when z̸ = z′, we have E +h +ωxy +iz ωxy +jz′ +i += 0, since k is +even. For i̸ = j, we have that +E + +ωxy +iz ωxy +jz + += c2 +k+1E + +⟨uf ∗(x) −uy, uf ∗(z)⟩2 +E[⟨ez, ex⟩2(k+1)] +First, by Lemma 12 we have that +E[⟨ez, ex⟩2(k+1)] ≤ +1 +x = z +(2k + 2)k+1d−(k+1) +x̸ = z . +Next, we see that +E + +⟨uf ∗(x) −uy, uf ∗(z)⟩2 += +1 + 1 +d +f ∗(x) = f ∗(z) or y = f ∗(z) +2 +d +otherwise +. +Finally, we have that +E[ωxy +iz ωxy +iz ] = E + +⟨vi, uf ∗(x) −uy⟩2⟨vi, uf ∗(z)⟩2σ′(⟨wi, ex⟩)2hk(⟨ez, wi⟩)2⟨ex, ez⟩2 += E + +⟨vi, uf ∗(x) −uy⟩2⟨vi, uf ∗(z)⟩2 +E + +σ′(⟨wi, ex⟩)2hk(⟨ez, wi⟩)2⟨ex, ez⟩2 +. +17 + +PAGE 18 +Published as a conference paper at ICLR 2025 +The first quantity can be bounded as +E + +⟨vi, uf ∗(x) −uy⟩2⟨vi, uf ∗(z)⟩2 +≤E + +⟨vi, uf ∗(x) −uy⟩41/2E + +⟨vi, uf ∗(z)⟩41/2 +≤2 · +√ +3 · +√ +3 = 6. +The second term is bounded as +E + +σ′(⟨wi, ex⟩)2hk(⟨ez, wi⟩)2⟨ex, ez⟩2 +≤E + +σ′(⟨wi, ex⟩)81/4E + +hk(⟨ez, wi⟩)81/4E + +⟨ex, ez⟩41/2 +By Gaussian hypercontractivity (Lemma 13), +E + +σ′(⟨wi, ex⟩)81/4 = ∥σ′∥2 +L8 ≤8q∥σ′∥2 +L2 ≲8q, +and likewise +E + +hk(⟨ez, wi⟩)81/4 ≤8k. +Finally, E + +⟨ex, ez⟩41/2 ≤4d−1 if x̸ = z, and 1 otherwise. Altogether, +E[ωxy +iz ωxy +iz ] ≲23q+3kd−1 + 1(x = z) + +. +Altogether, we get that +E + +γ2 +xy + += m −1 +m +X +z +E + +ωxy +iz ωxy +jz + ++ 1 +m +X +z +E[ωxy +iz ωxy +iz ]. +The first quantity is +X +z +E + +ωxy +iz ωxy +jz + +≤ + +1 + 1 +d + +c2 +k+1 + c2 +k+1(2k + 2)k+1d−(k+1) · 2N. +The second quantity is +X +z +E[ωxy +iz ωxy +iz ] ≤23q+3k + +1 + N +d + +. +Therefore +Var(γxy) ≲1 +d + (2k)k+1N +dk+1 ++ 23q+3kN +md +. +Choose k = 2⌈1 +ϵ ⌉; then +dk +(2k)k+1N ≥ +N +(4/ϵ)1+2/ϵ ≥1 +for N ≥C1(ϵ), and so +Var(γxy) ≲1 +d + 23q+3kN +md +. +Observe that γxy is a degree 2q + 2k + 4 ≤4q + 4 polynomial. If md ≳N · Cq +3 log4q+4(1/δ′) for +unspecified constant C3, then 24q+4e−1 log4q+4(1/δ′)Var(γxy) +(Eγxy)2 +≤1, and thus by Lemma 14, we have +that P(γxy ≤0) ≤δ′. Choosing δ′ = +δ +MN and union bounding over all (x, y) pairs with y̸ = f ∗(x) +yields the desired result. +18 + +PAGE 19 +Published as a conference paper at ICLR 2025 +B.1 +BOUNDED BIT COMPLEXITY +Corollary 2. Under the setting of Theorem 1, if d2 ≳N poly log N, then with high probability +there exists a quantized weight matrix ˜ +W , where each weight requires O(log d) bits to store, such +that +arg max +y∈[M] u⊤ +y ˜ +W ex = f ∗(x) +for all x ∈[N]. +(20) +Proof. One sees from the proof of Theorem 1 that, with high probability over the embeddings, the +weight matrix W = P +z∈[N] uf ∗(z)e⊤ +z has a margin γxy satisfies γxy ≥1 +2 for all y̸ = f ∗(x). Each +entry of W lies in the interval [−N, N]. For some ϵ > 0, define ˜ +W by rounding each entry of W +to the nearest multiple of ϵ. By definition, + W −˜ +W + +∞≤ϵ. We also see that + u⊤ +y (W −˜ +W )ex + ≤ + W −˜ +W + +∞ + uye⊤ +x + +1 ≤dϵ. +Thus choosing ϵ < +1 +8d, the margin of the quantized network satisfies +˜γxy := (uf ∗(x) −uy)⊤˜ +W ex +≥(uf ∗(x) −uy)⊤W ex − + (uf ∗(x) −uy)⊤(W −˜ +W )ex + +≥1 +2 −2dϵ +> 0. +Finally, the number of bits required to store each weight is log(2N/ϵ) = log(16Nd) = O(log d). +We remark that a similar quantization argument was proven in Jelassi et al. (2024). +C +PROOFS FOR SECTION 4 +Lemma 1. Let V(h) ⊂S ∪R. Assume that d ≳ + V(h) log(|V|/δ). Define v := P +z∈V(h) φ(z) + +1 +2φ(EOS). Then, with probability 1 −δ over the draw of the embeddings, +⟨v, φ(z)⟩> ⟨v, φ(EOS)⟩+ 1 +4 > ⟨v, φ(z′)⟩+ 1 +2 +for any z ∈V(h) and z′̸ ∈V(h). +Proof. Define γz as +γz := + + + +⟨v, φ(z)⟩−1 +z ∈V(h) +⟨v, φ(EOS)⟩−1 +2 +z = EOS +⟨v, φ(z)⟩ +z̸ ∈V(h) +We first see that E[γz] = 0. +Next, observe that +γz = +(P +z′∈V(h)⟨φ(z), φ(z′)⟩ +z̸ ∈V(h) +P +z′∈V(h)\{z}⟨φ(z), φ(z′)⟩ +z ∈V(h) +Since each of the ⟨φ(z), φ(z′)⟩are independent subGaussian variables with variance proxy 1/d, by +Hoeffding’s inequality we have that, with probability 1 −δ′, +|γz| ≲ +s V(h) · log(1/δ′) +d +. +Setting δ′ = δ/|V| and union bounding over all z ∈V yields the desired result. +19 + +PAGE 20 +Published as a conference paper at ICLR 2025 +C.1 +CONSTRUCTION VIA SELF-ATTENTION +Lemma 2. Let V(h) +⊂ +V, and for each z +∈ +V(h), let Az +⊂ +V. +Assume that d +≳ +maxz∈V(h) |Az| log6(|V|/δ) and dh ≳ + V(h) log6(|V|/δ) Define +W := d +dh +X +z∈V(h) +X +a∈Az +dh +X +i=1 +φ(a)φ(z)⊤wiw⊤ +i , +where wi are chosen uniformly on the sphere of radius 1, conditioned on being orthogonal to +φ(EOS). Then, with probability 1 −δ over the draw of the embeddings and the wi, + φ(a)⊤W φ(z) −1(a ∈Az) + ≤1 +5 +for all z ∈V(h), a ∈V. +Proof. Define +γaz := φ(a)⊤W φ(z). +We first see that +E[γaz] = E + +X +z′∈V(h) +X +a′∈Az +⟨φ(a), φ(a′)⟩⟨φ(z), P ⊥ +φ(EOS)φ(z′)⟩ + += d −1 +d +· 1(a ∈Az). +We next compute the variance. For a̸ ∈Az, +E + +γ2 +az + += d2 +d2 +h +E + + + +X +z′∈V(h) +X +a′∈Az′ +dh +X +i=1 +⟨φ(a), φ(a′)⟩⟨φ(z), wi⟩⟨wi, φ(z′)⟩ + + +2 + +Define ωa′z′i = ⟨φ(a), φ(a′)⟩⟨φ(z), wi⟩⟨wi, φ(z′)⟩. We see that E[ωa1z1iωa2z2j] is nonzero only +if a1 = a2 and z1 = z2. For i̸ = j, we have that +E[ωa′z′iωa′z′j] = E + +⟨φ(a), φ(a′)⟩2⟨φ(z), wi⟩⟨wi, φ(z′)⟩⟨φ(z), wj⟩⟨wj, φ(z′)⟩ + += d−2E + +⟨φ(a), φ(a′)⟩2 +E +h +⟨φ(z), P ⊥ +φ(EOS)φ(z′)⟩2i +≤d−2ρaa′ρzz′, +where ρij = +1 +i = j +d−1 +i̸ = j . Also, +E + +ω2 +a′z′i + += E + +⟨φ(a), φ(a′)⟩2⟨φ(z), wi⟩2⟨wi, φ(z′)⟩2 +. +Since E + +w⊗4 +i + += +3 +(d−1)(d+1)Sym + +(P ⊥ +φ(EOS))⊗2 +, +E + +ω2 +a′z′i + +≤(d2 −1)−1E + +⟨φ(a), φ(a′)⟩2 + +E + P ⊥ +φ(EOS)φ(z) + +22 ++ 2E +h +⟨φ(z), P ⊥ +φ(EOS)φ(z′)⟩2i! +≤d−2ρaa′(1 + 2ρzz′). +Altogether, +E + +γ2 +az + += d2 +d2 +h +X +z′∈V(h) +X +a′∈Az′ +dh +X +i,j=1 +E[ωa′z′iωa′z′j] +≤ +X +z′∈V(h) +X +a′∈Az′ +dh −1 +dh +ρaa′ρzz′ + 1 +dh +ρaa′(1 + 2ρzz′) + += dh + 2 +dh +X +a′∈Az +ρaa′ + d + dh + 1 +ddh +X +z′∈V(h)\{z} +X +a′∈Az′ +ρaa′ +≤ +dh + 2 +dh + +1(a ∈Az) + |Az| +d + ++ d + dh + 1 +ddh +· +X +z′∈V(h)\{z} + +1(a ∈Az′) + + Az′ +d + +, +20 + +PAGE 21 +Published as a conference paper at ICLR 2025 +and thus +Var(γaz) = E + +γ2 +az + +−d −1 +d +· 1(a ∈Az) +≲|Az| +d ++ 1 +dh +X +z′∈V(h) + +1(a ∈Az′) + + Az′ +d + + +≲maxz∈V(h) |Az| +d ++ + V(h) +dh +, +since d ≥|Az|, dh ≥ + V(h) Next, since γaz is a degree 6 polynomial, with probability 1 − +δ +|V||V(h)| +we have that +|γaz −1(a ∈Az)| ≲ +q +Var(γaz) log6(|V|/δ) +≲ +s +maxz∈V(h) |Az| log6(|V|/δ) +d ++ + V(h) log6(|V|/δ) +dh +≤1 +5. +Union bounding over all z ∈V(h), a ∈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(|V|SR/δ) and Hdh ≳S log6(|V|SR/δ). Then, +with probability 1 −δ, there exists a single-layer attention-only transformer FTF( · ; θTF) with +embedding dimension d, number of heads H and head dimension dhsuch that +Pz1:T +1∼D + +arg max +z∈V φ(z)⊤FTF(X; θTF) = zT +1 + += 1. +Remark. +When R ≥D, one can obtain an accuracy of 100% whenever the total parameter count +is +Hddh ≳SR poly log(|V|SR/δ). +Proof of Theorem 10. Partition S into the sets S(1), . . . , S(NS) and R into the sets R(1), . . . , R(NR), +such that + S(i) , + R(j) ≤M and NS = ⌈S +M ⌉, NR = ⌈R +M ⌉. +Let us choose M so that d ≥dh ≳M log6(|V|/δ). The total number of attention heads is then +H = NS + NR ≳S log6(|V|/δ) +dh +. +For each i ∈[NS], we construct the attention head i as follows. First, let +W (i) +K +⊤W (i) +Q = β +X +z∈S(i) +φ(z)φ(EOS)⊤+ β +2 φ(EOS)φ(EOS)⊤ +for a large constant β. Next, set +W (i) +O +⊤W (i) +V += d +dh +X +z∈S(i) +X +a∈Az +dh +X +i=1 +φ(a)φ(z)⊤wiw⊤ +i , +for wi sampled uniformly on the sphere, orthogonal to φ(EOS). +Consider an input sequence (z1, . . . , zT ), and let s be the subject token in this sequence. On the +event that Lemma 1 holds, if s̸ ∈S(i), then zt̸ ∈S(i), and thus +φ(zt)⊤W (i) +K +⊤W (i) +Q φ(EOS) < φ(EOS)⊤W (i) +K +⊤W (i) +Q φ(EOS) −β +2 +21 + +PAGE 22 +Published as a conference paper at ICLR 2025 +for all t < T. As β →∞, the self-attention module fully attends to the EOS token. On the other +hand, if s ∈S(i), then if zt∗= s we have +φ(zt)⊤W (i) +K +⊤W (i) +Q φ(EOS) < φ(zt∗)⊤W (i) +K +⊤W (i) +Q φ(EOS) −β +2 +for all t̸ = t∗. Likewise, as β →∞, the softmax converges to a hardmax on the zt∗token. Alto- +gether, we get that +X⊤S + +XW (i) +K +⊤W (i) +Q xT + += +φ(EOS) +s̸ ∈S(i) +φ(s) +s ∈S(i) . +Next, on the event that Lemma 2 holds, since d ≳R log6(|V|/δ) ≥|As| log6(|V|/δ), we have that + φ(a)⊤W (i) +O +⊤W (i) +V φ(s) −1(a ∈As) + ≤1 +6 +for s ∈S(i). Defining attni := W (i) +O +⊤W (i) +V S + +XW (i) +K +⊤W (i) +Q xT + +, we have that +φ(a)⊤attni ∈ + + + +{0} +s̸ ∈S(i) +[−1 +5, 1 +5] +s ∈S(i), a̸ ∈As +[ 4 +5, 6 +5] +s ∈S(i), a ∈As +. +By an identical construction, for each j ∈[NR], with probability 1 −2δ we can construct the +attention head NS + j such that +φ(a)⊤attnNS+j ∈ + + + +{0} +r̸ ∈R(i) +[−1 +5, 1 +5] +r ∈R(i), a̸ ∈Ar +[ 4 +5, 6 +5] +r ∈R(i), a ∈Ar +, +as long as d ≳D log6(|V|/δ) ≥|Ar| log6(|V|/δ). Therefore by a union bound, with probability +1 −2SRδ we have that (where s ∈S(i) and r ∈S(j) +φ(a)⊤FMHSA(X; θ) = +NS+NR +X +h=1 +φ(a)⊤attnh += φ(a)⊤attni +φ(a)⊤attnNS+j +If a = a∗(s, r), then a ∈As ∩Ar, and thus +φ(a)⊤FMHSA(X; θ) ≥4 +5 + 4 +5 = 8 +5. +Otherwise, either φ(a)⊤attni or φ(a)⊤attnNS+j is ≤1 +5 and thus +φ(a)⊤FMHSA(X; θ) ≥6 +5 + 1 +5 = 7 +5. +Therefore arg maxa∈V φ(a)⊤FMHSA(X; θ) = a∗(s, r). Replacing 2SRδ with δ yields the desired +result. +C.2 +CONSTRUCTION VIA MLP +Lemma 3. Let ϵ be a fixed constant. Assume that q in Assumption 3 satisfies q = +C2 +ϵ for some +C2 > 2. Assume that d ≥Sϵ, Rϵ. Define C(a) = |{(s, r) : a∗(s, r) = a}|. +Let d be odd, and let P, Q be orthogonal ⌊d/2⌋dimensional subspaces of Rd. Define ˜φ(s) = +ΠP φ(s), ˜φ(r) = ΠQφ(r). +There exists universal constants C3, C4 such that if +d ≳(C3 log(|V|/δ)/ϵ)C4/ϵ +m ≳(C3 log(|V|/δ))C4/ϵ · max +a +C(a) +md ≳(C3 log(|V|/δ))C4/ϵ · SR, +22 + +PAGE 23 +Published as a conference paper at ICLR 2025 +then with probability 1 −δ over the draw of the embeddings there exists a two-layer neural network +F(z) = P +i∈[m] viσ(w⊤ +i z) of width m satisfying +arg max +a∈V φ(a)⊤F( ˜φ(s) + ˜φ(r)) = a∗(s, r) +for all s ∈S, r ∈R. +Proof. For odd integers p, k to be determined later, let us set +vi = 1 +m +X +s,r +⟨Hep+k(wi), ˜φ(s)⊗p ⊗˜φ(r)⊗k⟩· φ(a∗(s, r)), +where Hep+k : Rd →(Rd)⊗(p+k) is the Hermite tensor of degree p + k (see Appendix F.1). +Assume without loss of generality that cp+k := E + +σ(p+k)(z) + +, the (p + k)th Hermite coefficient of +σ is positive (the negative case can be handled by negating all the vi in the construction) +For some (s, r), the margin for some a̸ = a∗(s, r) is +γsra = ⟨φ(a∗(s, r)) −φ(a), F( ˜φ(s) + ˜φ(r)) += 1 +m +X +i∈[m] +X +s′,r′ +σ(⟨wi, ˜φ(s) + ˜φ(r)⟩)⟨Hep+k(wi), φ(s′)⊗p ⊗˜φ(r′)⊗k⟩ +· ⟨φ(a∗(s′, r′)), φ(a∗(s, r)) −φ(a)⟩. +We first see that +E[γsra] += +X +s′r′ +E + +σ(⟨wi, ˜φ(s) + ˜φ(r)⟩)⟨Hep+k(wi), φ(s′)⊗p ⊗˜φ(r′)⊗k⟩ + +· (1(a∗(s, r) = a∗(s′, r′)) −1(a = a∗(s′, r′))) += +X +s′r′ +E +h +σ(p+k)(⟨wi, ˜φ(s) + ˜φ(r)⟩)⟨( ˜φ(s) + ˜φ(r))⊗(p+k), φ(s′)⊗p ⊗˜φ(r′)⊗k⟩ +i +· (1(a∗(s, r) = a∗(s′, r′)) −1(a = a∗(s′, r′))) +If either s′̸ = s or r̸ = r′, we see that conditioned on ˜φ(s), ˜φ(r), the quantity φ(s′)⊗p ⊗˜φ(r′)⊗k +is mean zero. Therefore the only nonzero term in the sum is when (s, r) = (s′, r′), and so +E[γsra] = EZ∼N(0,1) + +σ(p+k) + +Z +q +∥˜φ(s)∥2 + ∥˜φ(r)∥2 + +· ∥˜φ(s)∥2p∥˜φ(r)∥2k + +The quantities ∥˜φ(s)∥2 −1 +2, ∥˜φ(r)∥2 −1 +2 are subexponential random variables with Orlicz norm +1/d, and therefore we can bound + E[γsra] −cp+k2−p−k ≲1 +d +We next compute the variance. Define ωis′r′ by +ωis′r′ = σ(⟨wi, ˜φ(s) + ˜φ(r)⟩)⟨Hep+k(wi), φ(s′)⊗p ⊗˜φ(r′)⊗k⟩· ⟨φ(a∗(s′, r′)), φ(a∗(s, r)) −φ(a)⟩ +We first observe that E[ωis1r1ωjs2r2] is zero, unless s1 = s2 and r1 = r2. Next, we compute the +expectation of ωis′r′, conditioned on the embeddings (i.e with respect to the randomness wi): +E[ωis′r′ | φ] += Ewi +h +σ(p+k)(⟨wi, ˜φ(s) + ˜φ(r)⟩) +i +· ⟨( ˜φ(s) + ˜φ(r))⊗(p+k), ˜φ(s′)⊗p ⊗˜φ(r′)⊗k⟩ +· ⟨φ(a∗(s′, r′)), φ(a∗(s, r)) −φ(a)⟩ += EZ∼N(0,1) + +σ(p+k) + +Z +q +∥˜φ(s)∥2 + ∥˜φ(r)∥2 + +· ⟨˜φ(s), ˜φ(s′)⟩p · ⟨˜φ(r), ˜φ(r′)⟩k · ⟨φ(a∗(s′, r′)), φ(a∗(s, r)) −φ(a)⟩. +23 + +PAGE 24 +Published as a conference paper at ICLR 2025 +Therefore for i̸ = j, +E[ωis′r′ωjs′r′] = E +h +E[ωis′r′ | φ]2i +≲c2 +p+kE + +⟨˜φ(s), φ(s′)⟩2p +E + +⟨˜φ(r), ˜φ(r′)⟩2k +E + +⟨φ(a∗(s′, r′)), φ(a∗(s, r)) −φ(a)⟩2 +. +When (s, r) = (s′, r′), then +E[ωisrωjsr] = E +" +EZ∼N(0,1) + +σ(p+k) + +Z +q +∥˜φ(s)∥2 + ∥˜φ(r)∥2 +2 +∥˜φ(s)∥4p∥˜φ(r)∥4k +# +· +1 + d−1 += c2 +p+k2−2p−2k + O(1/d) +Next, define the quantities +ρss′ = E + +⟨˜φ(s), ˜φ(s′)⟩2p +ρrr′ = E + +⟨˜φ(r), ˜φ(r′)⟩2k +ρaa′ = E + +⟨φ(a), φ(a′)⟩2 +, +so that +E[ωis′r′ωjs′r′] ≲c2 +p+kρss′ρrr′ρaa∗(s′,r′) + ρa∗(s,r)a∗(s′r′) + +. +We see that for s̸ = s′, r̸ = r′, a̸ = a′, +ρss′ ≤(2p)p(d/2)−p = (4p)pd−p +ρrr′ ≤(2k)k(d/2)−k = (4k)kd−k +ρaa′ ≤d−1 +Next, see that +E + +ω2 +is′r′ + += E + +σ(⟨wi, ˜φ(s) + ˜φ(r)⟩)2⟨Hep+k(wi), ˜φ(s′)⊗p ⊗˜φ(r′)⊗k⟩2 +E + +⟨φ(a∗(s′, r′)), φ(a∗(s, r)) −φ(a)⟩2 +≤E + +σ(⟨wi, ˜φ(s) + ˜φ(r)⟩)41/2E + +⟨Hep+k(wi), ˜φ(s′)⊗p ⊗˜φ(r′)⊗k⟩41/2ρaa∗(s′,r′) + ρa∗(s,r)a∗(s′r′) + +≤24qρaa∗(s′,r′) + ρa∗(s,r)a∗(s′r′) + +, +where we have applied Lemma 13 to the first two expectations. Altogether, we have that +E + +γ2 +sra + += +X +s′,r′ +m −1 +m +E[ωis′r′ωjs′r′] + 1 +mE + +ω2 +is′r′ + += m −1 +m +E[ωisrωjsr] + m −1 +m +X +(s′,r′)̸=(s,r) +E[ωis′r′ωjs′r′] + 1 +m +X +s′,r′ +E + +ω2 +is′r′ + +, +and thus +Var(γsra) = E + +γ2 +sra + +−c2 +p+k +≲c2 +p+k +X +(s′,r′)̸=(s,r) +ρss′ρrr′ρaa∗(s′,r′) + ρa∗(s,r)a∗(s′r′) + ++ 24q +m +X +s′,r′ +ρaa∗(s′,r′) + ρa∗(s,r)a∗(s′r′) + +For the first sum, we can bound +X +(s′,r′)̸=(s,r) +ρss′ρrr′ρaa∗(s′,r′) + ρa∗(s,r)a∗(s′r′) + +≤ +X +(s′,r′)̸=(s,r) +ρss′ρrr′ +≤SR · (4p)p(4k)kd−p−k + S(4p)pd−p + R(4k)kd−k +For the second sum, we get that +X +s′,r′ +ρaa∗(s′,r′) + ρa∗(s,r)a∗(s′r′) + +≤C(a) + C(a∗(s, r)) + 2SR +d +24 + +PAGE 25 +Published as a conference paper at ICLR 2025 +Altogether, +Var(γsra) +E[γsra]2 ≲S(4p)p +dp ++ R(4k)k +dk ++ S(4p)p +dp +· R(4k)k +dk ++ 24q(C(a) + C(a∗(s, r))) +mc2 +p+k ++ 24qSR +mdc2 +p+k +. +Let δ′ be a fixed failure probability. We see that, for p = 2⌈1 +ϵ ⌉+ 1 +24q log4q+2(1/δ′)S(4p)p +dp +≲2 +4C2 +ϵ log +4C2 +ϵ ++2(1/δ′)( 8 +ϵ )2/ϵ +d +1 +ϵ +≲1, +whenever d ≳(C3 log(1/δ′)/ϵ)C4/ϵ for appropriately chosen constants C3, C4. Likewise, setting +k = 2⌈1 +ϵ ⌉+ 1, we get that +24q log4q+2(1/δ′)R(4k)k +dk +≲1. +Next, setting m ≳28q+2 log4q+2(1/δ′)c−2 +p+k · maxa C(a) and md ≳28q+2 log4q+2(1/δ′)c−2 +p+kSR +yields +24q+2 log4q+2(1/δ′) · 24q(C(a) + C(a∗(s, r))) +mc2 +p+k +≲1 +24q+2 log4q+2(1/δ′) · 24qSR +mdc2 +p+k +≲1. +Altogether, by choosing constants appropriately, we get that +24q+2 log4q+2(1/δ′)e−1 · Var(γsra) +E[γsra]2 ≤1. +Therefore by Lemma 14, with probability 1 −δ′ we have that γsra > 0. Union bounding over all +s, r, a and setting δ′ = +δ +SR|V| yields the desired result. +We next state the formal version of Theorem 4, which we wish to prove: +Theorem 11. Let ϵ be a fixed constant. Assume that σ is a degree q polynomial, where q = C1/ϵ +for some C1 > 2. Assume that d ≥Sϵ, Rϵ. Define C(a) = |{(s, r) : a∗(s, r) = a}|. +Let (d, H, dh, m) satisfy +d ≳(C2 log(|V|/δ)/ϵ)C3/ϵ +Hdh ≳(S + R) log (|V|/δ) +m ≳(C2 log(|V|/δ))C3/ϵ · max +a +C(a) +md ≳(C2 log(|V|/δ))C3/ϵ · SR, +Then, with probability 1 −δ, there exists a single-layer transformer FTF( · ; θTF) with embedding +dimension d, number of heads H, head dimension dh, and MLP width m such that +Pz1:T +1∼D + +arg max +z∈V φ(z)⊤FTF(X; θTF) = zT +1 + += 1. +Remark. +Ignoring polylog factors, and treating ϵ as a constant, the constraints on the architecture +size become +Hdh ≳S + R +and +m ≳C(a) +and +md ≳SR. +We first note that C(a) ≤S, and so m ≳S is sufficient. It is possible for C(a) to be much smaller; +on average we expect C(a) ≈S/D, and we also note that it is possible for C(a) = 1. The main +constraint is that md ≳SR, i.e that the number of MLP parameters scales linearly with the number +of facts that need to be stored. +25 + +PAGE 26 +Published as a conference paper at ICLR 2025 +Proof of Theorem 11. Partition S into the sets S(1), . . . , S(NS) and R into the sets R(1), . . . , R(NR), +such that + S(i) , + R(j) ≤M and NS = ⌈S +M ⌉, NR = ⌈R +M ⌉. Assume that d = Θ(M log(|V|/δ′)) +Let H = ⌈d/dh⌉. For each i ∈[NS], we construct the H′ attention heads corresponding to h ∈ +{(i −1)H′ + 1, . . . , iH′} as follows. First, for all such h, let +W (h) +K +⊤W (h) +Q += β +X +z∈S(i) +φ(z)φ(EOS)⊤+ β +2 φ(EOS)φ(EOS)⊤ +for a large constant β. By an identical argument to as in Theorem 3, on the event that Lemma 1 +holds we have that +X⊤S + +XW (h) +K +⊤W (h) +Q xT + += +φ(EOS) +s̸ ∈S(i) +φ(s) +s ∈S(i) . +The total contribution from these attention heads is then +iH′ +X +h=(i−1)H′+1 +W (h) +O +⊤attn(X; W (h) +K , W (h) +Q , W (h) +V +) = + + +iH′ +X +h=(i−1)H′+1 +W (h) +O +⊤W (h) +V + +· +φ(EOS) +s̸ ∈S(i) +φ(s) +s ∈S(i) +Since H′dh ≥d, we can let PiH′ +h=(i−1)H′+1 W (h) +O +⊤W (h) +V +be a projection onto a ⌈d/2⌉dimensional +subspace P, orthogonal to φ(EOS), and thus +iH′ +X +h=(i−1)H′+1 +W (h) +O +⊤attn(X; W (h) +K , W (h) +Q , W (h) +V +) = +0 +s̸ ∈S(i) +ΠP φ(s) +s ∈S(i) +Altogether, if the sequence (z1, . . . , zT ) contains the subject s, then +H′NS +X +h=1 +W (h) +O +⊤attn(X; W (h) +K , W (h) +Q , W (h) +V +) = ΠP φ(s) +Similarly, if we let Q be a ⌈d/2⌉dimensional subspace orthogonal to P and φ(EOS), then we can +construct the attention heads h ∈{H′NS + 1, . . . , H′NS + H′NR} such that +H′NS+H′NR +X +h=H′NS+1 +W (h) +O +⊤attn(X; W (h) +K , W (h) +Q , W (h) +V +) = ΠQφ(r), +where r is the relation in the sequence (z1, . . . , zT ). Such a construction exists with probability +1 −(NS + NR)δ′. The total number of heads is +H = H′NS + H′NR ∝d(S + R) +dhM +∝(S + R) log(|V|/δ′) +dh +. +The output of the self-attention component is then +FMHSA(X; θ) = ΠP φ(s) + ΠQφ(r) = ˜φ(s) + ˜φ(r). +On the event that Lemma 3 holds, we have that there exists a two-layer neural network F(z) = +P +i∈[m] viσ(w⊤ +i z) of width m such that +arg max +a +φ(a)⊤F(φ(s) + ˜φ(r)) = a∗(s, r). +Scaling V by a large enough constant ensures that +arg max +z∈V φ(z)⊤FTF(X; θTF) = a∗(s, r). +Union bounding over all the high probability events and setting δ = δ′/(NS + NR + 1) yields the +desired result. +26 + +PAGE 27 +Published as a conference paper at ICLR 2025 +D +PROOFS FOR SECTION 5 +D.1 +PRELIMINARIES +Recall that the parameters are θ := {WOV (a, z)}a∈A,z∈V ∪{WKQ(z)}z∈V, and that the cross +entropy loss is +L(θ) := Ez1:T +1 +" +−⟨φ(zT +1), Flin(X; θ)⟩+ log + X +a∈A +exp (⟨φ(a), Flin(X; θ)⟩) +!# +where +φ(a)⊤Flin(X; θ) = +T +X +t=1 +WOV (a, zt)WKQ(zt). +We consider running gradient flow: +˙θ = −∇L(θ) +from the initialization WOV (a, z) = α, WKQ(z) = α +p +|A| + 1 for some α > 0. +We also define Θ by +Θ(a, z) = WKQ(z)WOV (a, z), +and remark that the loss L is convex in Θ. +Lemma 4 (Balancedness). Let C(z1:T , z) denote the number of tokens in z1:T equal to z. The loss +gradients are given by +∂WV O(a,z)L(θ) = −WKQ(z) · Ez1:T [C(z1:T , z) · (1(a = a∗(z1:T )) −ˆp(a | z1:T ))] +∂WKQ(z)L(θ) = − +X +a +WOV (a, z) · Ez1:T [C(z1:T , z) · (1(a = a∗(z1:T )) −ˆp(a | z1:T ))] +As such, the quantity +WKQ(z)2 − +X +a∈A +WV O(a, z)2 +is constant throughout the gradient flow trajectory. +Proof. We first see that +∂WV O(a,z) +φ(a′)⊤Flin(X; θ) + += 1(a = a′) · C(z1:T , z) · WKQ(z), +Similarly, +∂WKQ(z) +φ(a′)⊤Flin(X; θ) + += C(z1:T , z) · WOV (a′, z). +Therefore +∂WV O(a,z)L(θ) += WKQ(z) · E + +−1(zT +1 = a) · C(z1:T , z) + +P +a′∈A exp (⟨φ(a′), Flin(X; θ)⟩) · 1(a = a′) · C(z1:T , z) +P +a′∈A exp (⟨φ(a′), Flin(X; θ)⟩) + += −WKQ(z) · Ez1:T [C(z1:T , z) · (1(a = a∗(z1:T )) −ˆp(a | z1:T ))]. +By a similar computation, +∂WKQ(z)L(θ) += Ez1:T +" +−WOV (zT +1, z) · C(z1:T , z) + +X +a +ˆp(a | z1:T )WOV (a, z) · C(z1:T , z) +# += Ez1:T +" +C(z1:T , z) · + +−WOV (a∗(z1:T ), z) + +X +a +ˆp(a | z1:T )WOV (a, z) +!# += − +X +a +WOV (a, z) · Ez1:T [C(z1:T , z) · (1(a = a∗(z1:T )) −ˆp(a | z1:T ))]. +27 + +PAGE 28 +Published as a conference paper at ICLR 2025 +Under gradient flow, we see that +1 +2 +d +dt + +WKQ(z)2 − +X +a∈A +WV O(a, z)2 +! += WKQ(z) · d +dtWKQ(z) − +X +a∈A +WV O(a, z) · d +dtWV O(a, z) += −WKQ(z) · ∂WKQ(z)L(θ) + +X +a∈A +WV O(a, z) · ∂WV O(a,z)L(θ) += WKQ(z) +X +a +WOV (a, z) · Ez1:T [C(z1:T , z) · (1(a = a∗(z1:T )) −ˆp(a | z1:T ))] +− +X +a∈A +WOV (a, z)WKQ(z) · Ez1:T [C(z1:T , z) · (1(a = a∗(z1:T )) −ˆp(a | z1:T ))] += 0. +Corollary 3. Throughout the gradient flow trajectory, WKQ(z) ≥α. +Proof. At initialization, WKQ(z)2 −P +a∈A WV O(a, z)2 = α2. Since this quantity is an invariant +of gradient flow, it is impossible for WKQ(z) = 0, and thus WKQ(z) > 0 throughout the entire +trajectory. Furthermore, +WKQ(z)2 = +X +a∈A +WV O(a, z)2 + α2 ≥α2, +and thus WKQ(z) ≥α. +D.2 +PROOF OF THEOREM 5 +Proof of Theorem 5. Let us select +ϵ ≤min +1 +2αp(s, r)|A|−1T −2|N|−(T −3), 1 +2α|A|−1S−1R−1δ + +. +There exists a time Tϵ such that for all t ≥Tϵ, ∥∇θL(θ(t))∥≤ϵ. Let us set tδ = Tϵ. Now, consider +some iterate θ := θ(t) for t ≥tδ. +First, see that for s ∈S, +∂WOV (a,s)L(θ) = −WKQ(s) · Ez1:T [C(z1:T , z) · (1(a = a∗(z1:T )) −ˆp(a | z1:T ))] += −WKQ(s) · p(s) · Ez1:T [1(a = a∗(z1:T )) −ˆp(a | z1:T ) | s ∈z1:T ]. +Consider some a̸ ∈As. Then Ez1:T [1(a = a∗(z1:T )) | s ∈z1:T ] = 0, and thus +∂WOV (a,s)L(θ) = WKQ(s) · p(s) · Ez1:T [ˆp(a | z1:T ) | s ∈z1:T ] += WKQ(s) +X +r∈R +p(s, r) · Ez1:T [ˆp(a | z1:T ) | s, r ∈z1:T ] +As such, since + ∂WOV (a,s)L(θ) + ≤ϵ, +Ez1:T [ˆp(a | z1:T ) | s, r ∈z1:T ] ≤ϵα−1p(s, r)−1. +By an identical argument, since + ∂WOV (a,r)L(θ) + ≤ϵ, then for a̸ ∈Ar +Ez1:T [ˆp(a | z1:T ) | s, r ∈z1:T ] ≤ϵα−1p(s, r)−1. +For any a̸ = a∗(s, r), either a̸ ∈As or a̸ ∈Ar. Therefore Ez1:T [ˆp(a | z1:T ) | s, r ∈z1:T ] ≤ +ϵα−1p(s, r)−1 for all a̸ = a∗(s, r), and thus +Ez1:T [ˆp(a∗(s, r) | z1:T ) | s, r ∈z1:T ] ≥1 −ϵα−1p(s, r)−1|A|. +28 + +PAGE 29 +Published as a conference paper at ICLR 2025 +There are at most T 2|N|T −3 sequences z1:T containing (s, r), each of which occurs with equal +probability. Therefore +ˆp(a∗(s, r) | z1:T ) ≥1 −T 2|N|T −3 · ϵα−1p(s, r)−1|A| +for all such z1:T . Then, bounding −log(1 −z) ≤2z for z ∈[0, 1 +2], +E[−log ˆp(a∗(s, r) | z1:T ) | s, r ∈z1:T ] ≤2E[1 −ˆp(a∗(s, r) | z1:T )) | s, r ∈z1:T ] +≤2ϵα−1p(s, r)−1|A|. +Altogether, the loss is +E[−log ˆp(zT +1 | z1:T )] = +X +s,r +p(s, r) · E[−log ˆp(a∗(s, r) | z1:T ) | s, r ∈z1:T ] +≤2ϵα−1|A|SR +≤δ, +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, +WKQ(z) ≤exp(2p(s)t) · α +p +|A| + 1. +Likewise, for z ∈N, +WKQ(z) ≤exp(2Tt/|N|) · α +p +|A| + 1. +Proof. Recall that the update for WKQ(s) is +˙WKQ(s) = p(s)⟨WOV (·, s), p∗(· | s) −Ez1:T [ˆp(· | z1:T ) | s ∈z1:T ]⟩ +≤p(s)∥WOV (·, s)∥∥p∗(· | s) −Ez1:T [ˆp(· | z1:T ) | s ∈z1:T ]∥ +≤2p(s)∥WOV (·, s)∥ +≤2p(s)WKQ(s) +Therefore by Gronwall’s inequality, +WKQ(s) ≤exp(2p(s)t) · α +p +|A| + 1. +Similarly, the update for WKQ(z) for z ∈N is +˙WKQ(z) = ⟨WOV (·, z), Ez1:T [C(z1:T , z) · (1(· = a∗(z1:T )) −ˆp(· | z1:T ))]⟩ +≤∥WOV (·, z)∥· E[C(z1:T , z)∥1(· = a∗(z1:T )) −ˆp(· | z1:T )∥] +≤2WOV (·, z)E[C(z1:T , z)] +≤2T +|N|WKQ(z). +Again by Gronwall’s inequality, +WKQ(z) ≤exp(2Tt/|N|) · α +p +|A| + 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. +29 + +PAGE 30 +Published as a conference paper at ICLR 2025 +Lemma 6. Let αsm, ϵ > 0 be arbitrary parameters satisfying +α2 +smT ≤ +1 +150 log + +ϵ2 +α2(|A| + 1) +−1 +· min +r +∥p∗(· | r) −p0∥. +ϵ2 ≤ +1 +50(|A| + 1) · min +r +∥p∗(· | r) −p0∥ +For a target accuracy ϵmin > 0, define T ∗by +T ∗= max +r +p(r)−1∥p∗(· | r) −p0∥−1 log + +ϵ +α +p +|A| + 1 +! ++ 100(|A| + 1) log |A|ϵ−2ϵ−2 +min +Assume that for z ∈S ∪N that WKQ(z) ≤αsm. Then, there exists t ≤T ∗such that +X +r +p(r)2∥p∗(· | r) −Ez1:T [ˆp(· | z1:T ) | r ∈z1:T ]∥2 ≤ϵ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 conver- +gence. +Stage 1: Escaping the origin. +The gradient flow update on WOV (a, r) is +˙WOV (a, r) = WKQ(r) · p(r)(p∗(a | r) −Ez1:T [ˆp(a | z1:T ) | r ∈z1:T ]) +We thus have + ˙WOV (·, r) −WKQ(r) · p(r)(p∗(· | r) −p0(a)) + ≤WKQ(r) · p(r)∥Ez1:T [ˆp(· | z1:T ) | r ∈z1:T ] −p0∥ +Define p0 = +1 +|A|1A. Observe that +∥Ez1:T [ˆp(· | z1:T ) | r ∈z1:T ] −p0∥≤Ez1:T [∥[ˆp(a | z1:T ) −p0∥| r ∈z1:T ] +≤Ez1:T +"X +t +WKQ(zt)∥WOV (·, zt)∥| r ∈z1:T +# +≤WKQ(r)∥WOV (·, r)∥+ Tα2 +sm +≤WKQ(r)2 + Tα2 +sm. +Thus ˙WOV (·, r) −WKQ(r) · p(r)(p∗(· | r) −p0(a)) + ≤p(r)WKQ(r) +WKQ(r)2 + Tα2 +sm + +Likewise, +˙WKQ(r) = p(r)⟨WOV (·, r), (p∗(· | r) −Ez1:T [ˆp(a | z1:T ) | r ∈z1:T ])⟩, +and thus + ˙WKQ(r) −p(r)⟨WOV (·, r), (p∗(· | r) −p0)⟩ + ≤p(r)∥WOV (·, r)∥∥Ez1:T [ˆp(· | z1:T ) | r ∈z1:T ] −p0∥ +≤p(r)WKQ(r) +WKQ(r)2 + Tα2 +sm + +Define the vector u ∈R2 by +u = + +WKQ(r) +⟨WOV (·, r), +p∗(·|r)−p0 +∥p∗(·|r)−p0∥⟩ + +We see that ˙u −p(r)∥p∗(· | r) −p0∥· + +0 +1 +1 +0 + +u + ≤2p(r)WKQ(r) +WKQ(r)2 + Tα2 +sm + +30 + +PAGE 31 +Published as a conference paper at ICLR 2025 +Therefore +d +dt(∥u∥2) ≤2⟨˙u, u⟩ +≤2p(r)∥p∗(· | r) −p0∥∥u∥2 + 4p(r)∥u∥WKQ(r) +WKQ(r)2 + Tα2 +sm + +≤2p(r)∥p∗(· | r) −p0∥∥u∥2 + 4p(r)∥u∥2 +∥u∥2 + Tα2 +sm + +≤2p(r) +∥p∗(· | r) −p0∥+ 2Tα2 +sm + +∥u∥2 + 4p(r)∥u∥4. +where the last inequality bounds W 2 +KQ(r) ≤∥u∥2. +Define γr := 2p(r) +∥p∗(· | r) −p0∥+ 2Tα2 +sm + +. By Lemma 7 we have that for +t < γ−1 +r +log + +γr +4p(r)∥u0∥2 + 1 +! +, +∥u∥2 ≤ +γr∥u0∥2 exp(γrt) +γr + 4p(r)2(1 −exp(γrt)) +Let Tϵ be the first time that ∥u∥≥ϵ. If Tϵ < γ−1 +r +log + +γr +4p(r)∥u0∥2 + 1 + +, then +ϵ2 ≤∥u∥2 ≤ +γr∥u0∥2 exp(γrTϵ) +γr + 4p(r)2(1 −exp(γrTϵ)) ≤ +γrα2(|A| + 1) exp(γrTϵ) +γr + 4p(r)2(1 −exp(γrTϵ)). +Therefore +Tϵ ≥γ−1 +r +log + +ϵ2γr + 4p(r)ϵ2α2(|A| + 1) +α2(|A| + 1)γr + 4p(r)ϵ2α2(|A| + 1) + +≥γ−1 +r +log + +ϵ2 +2α2(|A| + 1) + +for ϵ2 ≤ +γr +4p(r) On this assumption, +ϵ2 +2α2(|A|+1) ≤ +γr +4p(r)∥u0∥2 , and thus we always have Tϵ ≥ +γ−1 +r +log + +ϵ2 +2α2(|A|+1) + +. +Define Lr by +Lr(θ) := p(r)Ez1:T +1 +" +−⟨φ(zT +1), Flin(X; θ)⟩+ log + X +a∈A +exp (⟨φ(a), Flin(X; θ)⟩) +! +| r ∈z1:T +# +Let us define the relation-only model as +φ(a)⊤Frel(X; θ) = WOV (a, r)WKQ(r) +where r ∈z1:T . We see that + φ(a)⊤Frel(X; θ) −φ(a)⊤Flin(X; θ) + ≤(T −1)α2 +sm. +Define g : R|A| →R by g(z) = log (P +a exp(za)). We see that ∇zg(z) = S(z), where S is the +softmax, and thus +|g(z1) −g(z2)| ≤sup +z ∥∇zg(z)∥1 · ∥g(z1) −g(z2)∥∞≤∥g(z1) −g(z2)∥∞. +Therefore defining the relation-only loss ¯Lr as +¯Lr(θ) := p(r)Es +" +−⟨φ(a∗(s, r), Frel(r; θ)⟩+ log + X +a∈A +exp (⟨φ(a), Flin(r; θ)⟩) +!# += −p(r) +X +a +p(a | r)WOV (a∗(s, r), r)WKQ(r) + p(r) log + X +a∈A +exp (WOV (a, r)WKQ(r)) +! +, +31 + +PAGE 32 +Published as a conference paper at ICLR 2025 +we see that + Lr(θ) −¯Lr(θ) + ≤2(T −1)α2 +sm. +Since log-sum-exp is 1-strongly-convex, recalling that Θ(a, r) := WOV (a, r)WKQ(r), +log + X +a +exp(Θ(a, r)) +! +≤log(|A|) + +X +a +1 +|A|Θ(a, r) + 1 +2∥Θ(·, r)∥2. +Therefore +¯Lr ≤p(r) log |A| −p(r)⟨Θ(·, r), p∗(· | r) −p0⟩+ 1 +2p(r)∥Θ(·, r)∥2 += Lr,0 −p(r)∥p∗(· | r) −p0∥· u1u2 + 1 +2p(r)∥Θ(·, r)∥2. +We next track the evolution of u1u2: +d +dt(u1u2) = ˙u1u2 + u1 ˙u2 +≥p(r)∥p∗(· | r) −p0∥∥u∥2 −4p(r)∥u∥2 +∥u∥2 + (T −1)α2 +sm + +≥p(r) + +∥p∗(· | r) −p0∥−4∥u∥2 −4(T −1)α2 +sm + +∥u∥2 +≥p(r) +∥p∗(· | r) −p0∥−4Tα2 +sm + +∥u∥2 −4p(r)∥u∥4. +for t ≤Tϵ. Since ∥u∥≤ϵ, this is increasing in ∥u∥. +We first have the bound ∥u∥2 ≥WKQ(r)2 ≥α2. Next, we have the bound ∥u∥2 ≥2u1u2. Pick +some time τ ≤Tϵ. Define γ− +r := 2p(r) +∥p∗(· | r) −p0∥−4Tα2 +sm + +. We see that +(u1u2)(τ) ≥ +1 +2γ− +r α2 −4p(r)α4 + +τ ≥1 +4γ− +r α2τ +Next, by Lemma 7, for t ≤Tϵ we have +(u1u2)(t) ≥ +γ− +r (u1u2)(τ) exp(γ− +r (t −τ)) +γ− +r + 8p(r)(u1u2)(τ) exp +γ− +r (t −τ) +. +Plugging in t = γ−1 +r +log + +ϵ2 +2α2(|A|+1) + +, +(u1u2)(τ) exp +γ− +r (t −τ) + +≥1 +4γ− +r α2τ exp +−γ− +r τ + +· exp +γ− +r +γr +log + +ϵ2 +2α2(|A| + 1) + +Selecting τ = 1/γ− +r , we get +(u1u2)(τ) exp +γ− +r (t −τ) + +≥α2 +4e · exp +∥p∗(· | r) −p0∥−4Tα2 +sm +∥p∗(· | r) −p0∥+ 2Tα2sm +log + +ϵ2 +2α2(|A| + 1) + +≥α2 +4e · +ϵ2 +2α2(|A| + 1) · exp + +−6Tα2 +sm +∥p∗(· | r) −p0∥+ 2Tα2sm +log + +ϵ2 +2α2(|A| + 1) + +≥α2 +4e · +ϵ2 +2α2(|A| + 1) · + +1 − +6Tα2 +sm +∥p∗(· | r) −p0∥+ 2Tα2sm +log + +ϵ2 +2α2(|A| + 1) + +≥ +ϵ2 +50(|A| + 1). +whenever +T α2 +sm +∥p∗(·|r)−p0∥+2T α2sm log + +ϵ2 +α2(|A|+1) + +≤ +1 +150. +32 + +PAGE 33 +Published as a conference paper at ICLR 2025 +Therefore +(u1u2)(t) ≥ +ϵ2 +50(|A| + 1) · +1 +1 + 8 p(r) +γ− +r +ϵ2 +50(|A|+1) +≥ +ϵ2 +50(|A| + 1) · +1 +1 + +4ϵ2 +∥p∗(·|r)−p0∥50(|A|+1) +≥ +ϵ2 +100(|A| + 1), +Altogether, we get that the loss is +¯Lr ≤Lr,0 −p(r)∥p∗(· | r) −p0∥· +ϵ2 +100(|A| + 1) + 1 +2p(r)ϵ4 +≤Lr,0 −p(r)∥p∗(· | r) −p0∥· +ϵ2 +200(|A| + 1) +whenever ϵ2 ≤∥p∗(·|r)−p0∥ +100(|A|+1) . +Stage 2: Norm stays large +Next, we want to show that WKQ(r) stays large. We first show that +the relation-only loss ¯L is decreasing. We can compute that +d +dt +¯Lr(θ) = ⟨∇θ ¯Lr, ∇θLr⟩ +Define ˆp(· | r) by +ˆp(a | r) = +exp(WKQ(r)WOV (a, r)) +P +a′ exp(WKQ(r)WOV (a′, r)). +We observe that +∂WOV (·,r) ¯Lr = WKQ(r)p(r)(p∗(· | r) −ˆp(· | r)) +∂WOV (·,r)Lr = WKQ(r)p(r)(p∗(· | r) −Ez1:T [ˆp(· | z1:T ) | r ∈z1:T ]) +and thus + ∂WOV (·,r) ¯Lr −∂WOV (·,r)Lr + ≤WKQ(r)p(r)∥Ez1:T [ˆp(· | z1:T ) | r ∈z1:T ] −ˆp(· | r)∥ +≤WKQ(r)p(r)Tα2 +sm. +Likewise, + ∂WKQ(r) ¯Lr −∂WKQ(r)Lr + = p(r)|⟨WOV (·, r), Ez1:T [ˆp(· | z1:T ) | r ∈z1:T ] −ˆp(· | r)⟩| +≤p(r)∥WOV (·, r)∥∥Ez1:T [ˆp(· | z1:T ) | r ∈z1:T ] −ˆp(· | r)∥ +≤WKQ(r)p(r)Tα2 +sm. +Therefore +d +dtLr(θ) ≥ + ∇θ ¯Lr + 2 − + ∇θ ¯Lr + ∇θ ¯Lr −∇θLr + +≥ + ∇θ ¯Lr + 2 − + ∇θ ¯Lr + √ +2WKQ(r)p(r)Tα2 +sm. +Assume that d +dtLr(θ) < 0. Then +√ +2WKQ(r)p(r)Tα2 +sm ≥ + ∇θ ¯Lr + ≥WKQ(r)p(r)∥p∗(· | r) −ˆp(· | r)∥, +i.e +∥p∗(· | r) −ˆp(· | r)∥≤ +√ +2Tα2 +sm. +33 + +PAGE 34 +Published as a conference paper at ICLR 2025 +Assuming that +√ +2Tα2 +sm < +1 +2S , since p∗(a | r) > 1 +S for p ∗(a | 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)| +Therefore ¯Lr −p(r)H(p∗(· | r)) ≤2p(r)∥ˆp(· | r) −p∗(· | r)∥1 ≤ +√ +2Tα2 +smD. As such, we have +that ¯Lr stays below Lr,0 −p(r)∥p∗(· | r) −p0∥· +ϵ2 +200(|A|+1) for the remainder of the gradient flow +trajectory. +By convexity in Θ space, +Lr,0 −¯Lr(Θ) ≤−⟨∇Θ(·,r) ¯L(0), Θ(·, r)⟩ +≤ + ∇Θ(·,r) ¯L(0) + ∥Θ(·, r)∥ +≤p(r) · ∥p∗(· | r) −p0∥· ∥Θ(·, r)∥. +Therefore +∥Θ(·, r)∥≥ +ϵ2 +100(|A| + 1) +Stage 3: Convergence. +Next, we can bound the loss decrease by +d +dtL(θ) = −∥∇θL∥2 +≤− +X +r + ∂WOV (·,r)L + 2 += − +X +r + ∂WOV (·,r)Lr + 2 += − +X +r +WKQ(r)2p(r)2∥p∗(· | r) −Ez1:T [ˆp(· | z1:T ) | r ∈z1:T ]∥ +≤− +X +r +∥Θ(·, r)∥p(r)2∥p∗(· | r) −Ez1:T [ˆp(· | z1:T ) | r ∈z1:T ]∥2 +≤− +ϵ2 +200(|A| + 1) +X +r +p(r)2∥p∗(· | r) −Ez1:T [ˆp(· | z1:T ) | r ∈z1:T ]∥2 +Since L(Θ) ≤L(Θ0) = log |A|, and L(Θ) ≥0, there exists some t ≤maxr t∗+ 100(|A| + +1) log |A|ϵ−2ϵ−2 +min such that +X +r +p(r)2∥p∗(· | r) −Ez1:T [ˆp(· | z1:T ) | r ∈z1:T ]∥2 ≤ϵ2 +min, +as desired. +To conclude, we must set α, αsm, T ∗appropriately in terms of ϵ in order to apply Lemma 6. +Proof of Theorem 6. Let ϵ = ϵmin ≤ +1 +100(|A|+1) · minr ∥p∗(· | r) −p0∥be the target accuracy. Let +us choose the initialization α so that log + +ϵ +α√ +|A|+1 + += ι, where ι is chosen so that +ι ≥100(|A| + 1) log |A|ϵ−4p(r)∥p∗(· | r) −p0∥. +In this case, we see that +T ∗≤2ι max +r + +p(r)−1∥p∗(· | r) −p0∥−1 +. +34 + +PAGE 35 +Published as a conference paper at ICLR 2025 +Since p∗(· | r) is supported on at most D elements, and |A| ≥2D, we have ∥p∗(· | r) −p0∥−1 ≤ +√ +2D. Therefore T ∗≤2R +√ +D · ι. Let us compute αsm. We see that, since S ≥8R +√ +2D, +WKQ(s) ≤exp + +4R +√ +D +S +ι +! +· α +p +|A| + 1 +≤exp +1 +2ι + +α +p +|A| + 1 += √ϵα · (|A| + 1)1/4 +≤√α +Similarly, since N ≥4R +√ +2DT, +WKQ(s) ≤exp + +4R +√ +DT +|N| +ι +! +· α +p +|A| + 1 +≤exp +1 +2ι + +α +p +|A| + 1 +≤√α +Therefore the assumption holds for αsm = √α. To conclude, we must verify that +Tα ≤ +1 +300ι−1 · min +r +∥p∗(· | r) −p0∥. +But since α = +ϵ +√ +|A|+1e−ι, the RHS scales with e−ι and the RHS scales with ι, and thus the +condition can be obtained for choosing ι 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) ≥0 satisfy +˙z ≤Az + Bz2. +for positive constants A, B. Then +z(t) ≤ +Az(0)eAt +A + Bz(0)(1 −eAt). +Furthermore, if +˙z ≥Az −Bz2, +and z ∈[0, A +2B ] on the interval [0, T], then +z(t) ≥ +Az(0)eAt +A + Bz(0)(eAt −1). +for all t ∈[0, T]. +Both claims follow from the Bihari-LaSalle inequality. +E +PROOFS FROM SECTION 6 +E.1 +ASSOCIATIVE MEMORIES +Proof of Theorem 7. f ∗→F →ˆf is a Markov chain, so by the data processing inequality, +I(f ∗; ˆf) ≤I(f ∗; F ). +35 + +PAGE 36 +Published as a conference paper at ICLR 2025 +Also, by definition of mutual information +I(f ∗; F ) ≤H(F ) ≤B, +where the last inequality follows since F is an B-bit message. Thus I(f ∗; ˆf) ≤B. +Let qx(· | ˆf) be the conditional distribution of f ∗(x) given ˆf. Consider some fixed ˆf. ˆf(x) is also a +probability distribution over [M], and thus by Gibbs’ inequality +Ey∼qx(·| ˆ +f) +h +−log ˆf(x)y +i +≥Ey∼qx(·| ˆ +f) +h +−log qx(y | ˆf) +i +. +Therefore, letting q be the marginal distribution over ˆf and qx the marginal over f ∗(x), +Ef ∗, ˆ +f +h +−log ˆf(x)f ∗(x) +i += E ˆ +f +h +Ey∼qx(·| ˆ +f) +h +−log ˆf(x)y +ii +≥E ˆ +f +h +Ey∼qx(·| ˆ +f) +h +−log qx(y | ˆf) +ii += Ef ∗, ˆ +f +h +−log qx(f ∗(x) | ˆf) +i += Ef ∗, ˆ +f +" +−log qx(f ∗(x), ˆf) +q( ˆf)qx(f ∗(x)) +−log qx(f ∗(x)) +# += −I(f ∗(x); ˆf) + log M. +where in the last step we use the fact that qx is uniform over [M], and plug in the definition of mutual +information. The total loss is thus +Ef ∗, ˆ +f +h +L( ˆf) +i +≥ +X +x∈[N] +p(x) + +−I(f ∗(x); ˆf) + log M + +. +(21) +Since the yi are independent, +B ≥I(f ∗; ˆf) ≥ +X +x∈[N] +I(f ∗(x); ˆf). +Also, 0 ≤I(f ∗(x); ˆf) ≤H(f ∗(x)) = log M. +Therefore equation 21 is minimized when +I(f ∗(x); ˆf) = log M for the B/ log M most frequent tokens. Altogether, +Ef ∗, ˆ +f +h +L( ˆf) +i +≥log M · +X +x>⌈ +B +log M ⌉ +p(x). +Proof of Corollary 1. Let p(x) = Zαx−α, where Zα = P +x∈[N] x−α. We can bound +n +X +x=k +p(x) = +Pn +x=k x−α +Pn +x=1 x−α ≍k1−α. +Therefore +Ef ∗, ˆ +f +h +L( ˆf) +i +≥log M · +X +x>⌈ +B +log M ⌉ +p(x) ≳log M + +B +log M +1−α +≳B1−α. +E.2 +FACTUAL RECALL +Proof. Define ℓ(s, r) := ED, ˆ +f +h +−log ˆf(s, r)a∗(s,r) +i +so that +L = p(s, r) · ℓ(s, r). +36 + +PAGE 37 +Published as a conference paper at ICLR 2025 +Let us define the expanded dataset D := {Ar}r∈R ∪{a∗(s, r)}s∈S,r∈R. We observe that D → +a∗→F →ˆf is a Markov chain, and thus by the data processing inequality +B ≥I(D; ˆf). +Next, by the chain rule, we can decompose +I(D; ˆf) = I(A1, . . . , AR; ˆf) + I(a∗; ˆf | A1, . . . , AR) +≥I(A1, . . . , AR; ˆf) + +X +s,r +I(a∗(s, r); ˆf | A1, . . . , AR) += I(A1, . . . , AR; ˆf) + +X +s,r +I(a∗(s, r); ˆf | Ar), +where the first inequality uses the fact that the a∗(s, r) are conditionally independent given the Ar, +and the second uses that a∗(s, r) is independent of Ar′ given Ar, for r̸ = r′. +We can decompose the first mutual information term, using the fact that the Ar are nearly indepen- +dent: +Lemma 8. Assume that |V| ≥2RD. Then +I(A1, . . . , AR; ˆf) ≥ +X +r +I(Ar; ˆf) −2R2D2 +|V| +. +We next relate I(Ar; ˆf) to the loss. The intuition for this lemma is that for a fixed r the quantity +P +s ℓ(s, r) is small, then the predictor ˆf must contain information about the answer set Ar. +Lemma 9. Assume that |V| ≥2D. Define η := C +q +D +S log(2D2 log |V|) for a sufficiently large +constant C, and assume that η ≤1. Then +I(Ar; ˆf) ≥−(1 + η)D +S · +X +s∈[S] +ℓ(s, r) + D log |V| +D −2D log |V| +|V| +−2D2 +|V| −ηD −1 +| +{z +} +lower order term +Finally, we relate I(a∗(s, r); ˆf | Ar) to the loss. Similarly, the intuition for this lemma is that if the +loss ℓ(s, r) is small, then ˆf must contain information about the true association a∗(s, r). +Lemma 10. For all s, r, +I(a∗(s, r); ˆf | Ar) ≥log D −ℓ(s, r). +The proofs for Lemmas 8 to 10 are deferred to Appendix E.3. +Combining Lemmas 8 to 10, we get +B ≥I(A1, . . . , AR; ˆf) + +X +s,r +I(a∗(s, r); ˆf | Ar) += −(1 + η)D +S +X +s,r +ℓ(s, r) + RD log |V| +D −2RD log |V| +|V| +−2RD2 +|V| +−ηRD −R −2R2D2 +|V| +| +{z +} +lower order term ++ SR log D − +X +s,r +ℓ(s, r) += − + +(1 + η)D +S + 1 + X +s,r +ℓ(s, r) + SR log D + RD log |V| +D −εlot, +where εlot := 2RD log |V| +|V| ++ 2RD2 +|V| ++ ηRD + R + 2R2D2 +|V| +≪RD log |V| +D is a lower order term. +37 + +PAGE 38 +Published as a conference paper at ICLR 2025 +Altogether, we see that in order for all the losses ℓ(s, r) to equal zero, we require +B ≥SR log D + RD log |V| +D −ϵlot ≥SR log D + (1 −c)RD log |V| +D +Furthermore, when p(s, r) = +1 +RS , then L = +1 +SR +P +s,r ℓ(s, r), and the bound becomes +B ≥−((1 + η)RD + RS) · L + SR log D + RD log |V| +D −εlot +−((1 + c)RD + RS) · L + SR log D + (1 −c)RD log |V| +D . +E.3 +AUXILIARY LEMMAS +Lemma 11. For random variables X, Y, Z, +I(X, Y ; Z) ≥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) += H(X, Y ) −H(X, Y | Z) −H(X) + H(X | Z) −H(Y ) + H(Y | Z) += I(X; Y | Z) −I(X; Y ) +≥−I(X; Y ). +Proof of Lemma 8. By Lemma 11, +I(A1, . . . , AR; ˆf) ≥ +X +r +I(Ar; ˆf) − +X +r +I(Ar; A1, . . . , Ar−1) += +X +r +I(Ar; ˆf) − + X +r +H(Ar) + H(A1, . . . , Ar−1) −H(A1, . . . , Ar) +! += +X +r +I(Ar; ˆf) − +X +r +H(Ar) + H(A1, . . . , AR). +Since each Ar is a uniformly random subset of V, we have H(Ar) = log +|V| +D + +. Also, we can bound +H(A1, . . . , AR) = log +|V| +D +|V| −D +D + +· · · +|V| −(R −1)D +D + +. +Thus +X +r +H(Ar) −H(A1, . . . , AR) ≤R log +|V| +D + +|V|−(R−1)D +D + += R log +|V|!(|V| −RD)! +(|V| −D)!(|V| −(R −1)D)! +≤RD log +|V| +|V| −RD +≤2R2D2 +|V| +, +where we used the bound log +1 +1−x ≤2x on (0, 1 +2). Plugging in yields the desired bound. +38 + +PAGE 39 +Published as a conference paper at ICLR 2025 +Proof of Lemma 9. Let (z1, . . . , zD) be a random permutation of Ar. We first aim to relate I(A; ˆf) +to I(zi; ˆf). By the data processing inequality, +I(Ar; ˆf) ≥I(z1, . . . , zD; ˆf). +By Lemma 11, +I(z1, . . . , zD; ˆf) ≥ +X +i +I(zi; ˆf) − +X +i +I(zi; z1, . . . , zi−1) += +X +i +I(zi; ˆf) − +X +i +H(zi) + H(z1, . . . , zD). +The tuple (z1, . . . , zD) is chosen uniformly at random from VD, conditioned on all the zi being +distinct. Therefore H(zi) = log |V|, and H(z1, . . . , zD) = log (|V| · · · (|V| −D + 1)). Thus +X +i +H(zi) −H(z1, . . . , zD) = log + +|V|D +|V| · · · (|V| −D + 1) +! +≤D log +|V| +|V| −D +≤2D2 +|V| . +Altogether, +I(Ar; ˆf) ≥ +X +i +I(zi; ˆf) −2D2 +|V| . +Next, using the definition of mutual information and Gibbs’ inequality, +I(zi; ˆf) = Ezi, ˆ +f +" +log P(zi | ˆf) +P(zi) +# +≥Ezi, ˆ +f +" +log q(zi | ˆf) +P(zi) +# +for any probability distribution q. Let us define q as follows. First, define ˜f(s, r) := (1−ϵ) ˆf(s, r)+ +ϵ +|V|1 ∈∆V, for a small constant ϵ to be chosen later. Next, define +q(z | ˆf) := 1 +S +X +s +˜f(s, r)z. +Plugging in, and observing that P(zi) = +1 +|V|, we get that +I(zi; ˆf) ≥Ezi, ˆ +f +" +log + +1 +S +X +s +˜f(s, r)zi +!# ++ log |V|. +Define Nz := {s : a∗(s, r) = z}. Let E be the event that |Nz| ≥M for all z ∈A. On the event E, +we can bound +log + +1 +S +X +s +˜f(s, r)zi +! +≥log + +1 +S +X +s∈Nzi +˜f(s, r)a∗(s,r) + + += log + + +1 +|Nzi| +X +s∈Nzi +˜f(s, r)a∗(s,r) + ++ log |Nzi| +S +≥ +1 +|Nzi| +X +s∈Nzi +log ˜f(s, r)a∗(s,r) + log |Nzi| +S +≥1 +M +X +s∈Nzi +log ˜f(s, r)a∗(s,r) + log M +S . +39 + +PAGE 40 +Published as a conference paper at ICLR 2025 +Thus +X +i∈[D] +log + +1 +S +X +s +˜f(s, r)zi +! +≥1 +M +X +i∈[D] +X +s∈Nzi +log ˜f(s, r)a∗(s,r) + D log M +S += 1 +M +X +s∈[S] +log ˜f(s, r)a∗(s,r) + D log M +S +≥1 −ϵ +M +X +s∈[S] +log ˆf(s, r)a∗(s,r) −Sϵ +M log |V| + D log M +S . +On E, we have the naive bound +X +i∈[D] +log + +1 +S +X +s +˜f(s, r)zi +! +≥D log ϵ +|V|. +Altogether, we have +X +i∈[D] +I(zi; ˆf) +≥Ezi, ˆ +f + +X +i∈[D] +log + +1 +S +X +s +˜f(s, r)zi +! ++ D log |V| +≥Ezi, ˆ +f + +1(E) · + +1 −ϵ +M +X +s∈[S] +log ˆf(s, r)a∗(s,r) −Sϵ +M log |V| + D log M +S + + + + ++ P(E) · D log ϵ +|V| + D log |V| +≥1 +M Ezi, ˆ +f + +X +s∈[S] +log ˆf(s, r)a∗(s,r) + +−Sϵ +M log |V| + D log M +S + P(E) · D log ϵ +|V| + D log |V| += −1 +M · +X +s∈[S] +ℓ(s, r) −Sϵ +M log |V| + D log M +S + P(E) · D log ϵ +|V| + D log |V| +By Bernstein’s inequality and a union bound (a similar such concentration argument was used in the +lower bound proof in Allen-Zhu & Li (2024)), there exists a constant C such that P(E) ≥1 −δ for +M = S +D −C +r +S +D log(D/δ), +as long as S +≥ +D log(D/δ). +Set ϵ += +1 +|V|, +δ += +1 +2D log |V|, +and define η +:= +2C +q +D +S log(2D2 log |V|) ≤1. We have that +M +S = 1 +D + +1 −C +r +D +S log(D/δ) +! += 1 +D + +1 −η +2 + +, +and thus +S +M = +D +1 −η/2 ≤D(1 + η). +Therefore +X +i∈[D] +I(zi; ˆf) ≥−(1 + η)D +S · +X +s∈[S] +ℓ(s, r) −(1 + η)D log |V| +|V| ++ D log |V| +D + D log(1 −η/2) −1 +≥−(1 + η)D +S · +X +s∈[S] +ℓ(s, r) + D log |V| +D −2D log |V| +|V| +−ηD −1. +40 + +PAGE 41 +Published as a conference paper at ICLR 2025 +Altogether, we have +I(Ar; ˆf) ≥ +X +i +I(zi; ˆf) −2D2 +|V| +≥−(1 + η)D +S · +X +s∈[S] +ℓ(s, r) + D log |V| +D −2D log |V| +|V| +−2D2 +|V| −ηD −1, +as desired. +Proof of Lemma 10. By the definition of mutual information and Gibbs’ inequality, +I(a∗(s, r); ˆf | Ar) = EAr +" +Ea∗(s,r), ˆ +f|Ar +" +log P(a∗(s, r) | ˆf, Ar) +P(a∗(s, r) | Ar) +## += EAr +h +Ea∗(s,r), ˆ +f|Ar +h +log P(a∗(s, r) | ˆf, Ar) +ii ++ log D +≥EAr +h +Ea∗(s,r), ˆ +f|Ar +h +log q(a∗(s, r) | ˆf, Ar) +ii ++ log D +where q(· | ˆf, Ar) is any distribution over V. Let us define q to be +q(a | ˆf, Ar) ∝ˆf(s, r)a · 1(a ∈Ar) +Since a∗(s, r) ∈Ar always, we have that q(a∗(s, r) | ˆf, Ar) ≥ˆf(s, r)a∗(s,r), and thus +I(a∗(s, r); ˆf | Ar) ≥EAr +h +Ea∗(s,r), ˆ +f|Ar +h +log ˆf(s, r)a∗(s,r) +ii ++ log D += ED +h +log ˆf(s, r)a∗(s,r) +i ++ log D += log D −ℓ(s, r). +F +TECHNICAL LEMMAS +Lemma 12. Let u, v be drawn uniformly over the d-dimensional sphere of radius 1. Then +E + +⟨u, v⟩2p +≤(2p)pd−p +Lemma 13 (Hypercontractivity for product distributions). Let f : (Sd−1)k × Rm →R be a poly- +nomial of total degree at most p. Then +∥f∥Lq(ν⊗k +d +⊗µm) ≤(q −1)p/2∥f∥L2(ν⊗k⊗µm), +where νd is the uniform distribution over the sphere Sd−1, and µm is the standard Gaussian in m +dimensions. +Hypercontractivity for the Boolean hypercube (which implies hypercontractivity for Gaussian space) +and for the sphere are consequences of Beckner (1975; 1992). To show Lemma 13, one can use +similar techniques to the proof of Corollary 12 in Montanaro (2012). +Lemma 14. Let f : (Sd−1)k × Rm →R be a polynomial of total degree at most p. Assume that +Ef ≥0, where the expectation is taken with respect to ν⊗k +d +⊗µm. Then if +2pe−1 logp(1/δ)Var(f) +(Ef)2 +≤1, +f ≤0 with probability at most δ. +41 + +PAGE 42 +Published as a conference paper at ICLR 2025 +Proof. By Markov’s inequality, +P(f ≤0) ≤P(|f −Ef| ≥Ef) +≤P(|f −Ef|q ≥(Ef)q) +≤E[|f −Ef|q] +(Ef)q +. +Since f is a degree p polynomial, by Lemma 13 we have that +E[|f −Ef|q]1/q ≤qp/2Var(f)1/2. +Therefore +P(f ≤0) ≤ +qpVar(f) +(Ef)2 +q/2 +. +Setting q = 2 log(1/δ), we see that whenever +2pe−1 logp(1/δ)Var(f) +(Ef)2 +≤1, +we have +P(f ≤0) ≤ +qpVar(f) +(Ef)2 +q/2 +≤δ, +as desired. +F.1 +HERMITE POLYNOMIALS +Let µ be the standard Gaussian in 1 dimension, and let L2(µ) be the function space of square- +integrable functions with respect to this Gaussian measure. The Hermite polynomials {hk}k≥0 +form an orthonormal basis of L2(µ). In particular, hk is a degree k polynomial, satisfying +⟨hi, hk⟩L2(µ) = δij. +One useful property of Hermite polynomials is the following: +Lemma 15. Let u, w ∈Rd with ∥u∥= ∥w∥= 1, and let x ∼N(0, Id). Then +Ex[hk(⟨u, x⟩)hk(⟨w, x⟩)] = ⟨u, w⟩k. +Next, let µd be the standard Gaussian in d dimensions. The function space L2(µd) has an orthonor- +mal basis of Hermite tensors {Hek}k≥0, where Hek : Rm → +Rd⊗k: +Definition 1. Let the kth Hermite tensor Hek : Rm → +Rd⊗k be defined as +Hek(x) = (−1)k ∇kµd(x) +µd(x) , +where µm(x) = (2π)−d/2 exp + +−1 +2∥x∥2 +is the Gaussian density. We remark that each entry of +Hek(x) is a degree k polynomial in x, and +The Hermite tensors satisfy the following useful properties: +Lemma 16 (Properties of Hermite Tensors). +• (Connection to Hermite Polynomials) If w ∈Rd, ∥w∥= 1, then +hk(⟨w, x⟩) = ⟨Hek(x), w⊗k⟩ +• (Stein’s Lemma) For x ∼N(0, Id), f ∈L2(µd), +Ex[f(x)Hek(x)] = Ex + +∇kf(x) + +. +42 diff --git a/results/first-principles-review-20261004/theory-sources/grokking2024.pdf b/results/first-principles-review-20261004/theory-sources/grokking2024.pdf new file mode 100644 index 0000000000000000000000000000000000000000..794b8b678ada07ab056591f09be024fe67547921 --- /dev/null +++ b/results/first-principles-review-20261004/theory-sources/grokking2024.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1c05d388c86f76e2c98d33535cf850a841e8a7c1a56abded762dba8a0729a60 +size 985006 diff --git a/results/first-principles-review-20261004/theory-sources/grokking2024.txt b/results/first-principles-review-20261004/theory-sources/grokking2024.txt new file mode 100644 index 0000000000000000000000000000000000000000..1023ee21f2df478e23d65aaff7b5e87f79eefb02 --- /dev/null +++ b/results/first-principles-review-20261004/theory-sources/grokking2024.txt @@ -0,0 +1,1844 @@ +PAGE 1 +Grokking of Implicit Reasoning in Transformers: +A Mechanistic Journey to the Edge of Generalization +Boshi Wang♠ +Xiang Yue3∗ +Yu Su♠ +Huan Sun♠ +♠The Ohio State University +3Carnegie Mellon University +{wang.13930,yue.149,su.809,sun.397}@osu.edu +Abstract +We study whether transformers can learn to implicitly reason over parametric knowl- +edge, a skill that even the most capable language models struggle with. Focusing on +two representative reasoning types, composition and comparison, we consistently +find that transformers can learn implicit reasoning, but only through grokking, i.e., +extended training far beyond overfitting. The levels of generalization also vary +across reasoning types: when faced with out-of-distribution examples, transformers +fail to systematically generalize for composition but succeed for comparison. We +delve into the model’s internals throughout training, conducting analytical exper- +iments that reveal: 1) the mechanism behind grokking, such as the formation of +the generalizing circuit and its relation to the relative efficiency of generalizing +and memorizing circuits, and 2) the connection between systematicity and the +configuration of the generalizing circuit. Our findings guide data and training +setup to better induce implicit reasoning and suggest potential improvements to +the transformer architecture, such as encouraging cross-layer knowledge sharing. +Furthermore, we demonstrate that for a challenging reasoning task with a large +search space, GPT-4-Turbo and Gemini-1.5-Pro based on non-parametric memory +fail badly regardless of prompting styles or retrieval augmentation, while a fully +grokked transformer can achieve near-perfect accuracy, showcasing the power of +parametric memory for complex reasoning.2 +1 +Introduction +Large language models (LLMs) have been shown deficient in implicit reasoning with their parametric +memory of knowledge and rules. For example, a range of LLMs are found to be incapable of robustly +composing internalized facts [48, 71], and even GPT-4 [42] cannot adequately compare entities’ +attributes despite knowing them [1]. +Deficiency in implicit reasoning has profound implications. It implies the models’ limitations in induc- +ing structured and compressed representations of facts and rules, which lead to redundant knowledge +storage and difficulty in propagating knowledge updates [76], and importantly, fundamentally impede +the model from systematic generalization over knowledge [25]. While explicit verbalizations of +reasoning steps (e.g., chain-of-thought rationales) can improve task performance [67, 64, 73, 55, 31], +they are not available during large-scale (pre-)training where the model’s core capabilities are +acquired [77, 29]. +Is implicit reasoning doomed given that even the most capable models struggle? Can it be resolved +by further scaling data and compute, or are there fundamental limitations of the transformer [62] +that prohibit robust acquisition of this skill? +∗Project started when at OSU. +2Code and data: https://github.com/OSU-NLP-Group/GrokkedTransformer. +38th Conference on Neural Information Processing Systems (NeurIPS 2024). + +PAGE 2 +wife +Barack +Michelle +born in +Michelle +1964 +wife +Barack +born in +[1964] +[younger] +age +Trump +age +Biden +Trump +Biden +78 +82 +Figure 1: We find that transformers can learn to reason implicitly, but this skill is only robustly +acquired through grokking, i.e., an extended period of training far beyond overfitting. Moreover, +the transformer fails to systematically generalize for composition, yet succeeds for comparison. We +conduct a mechanistic study into the model internals throughout grokking, which reveals distinct +generalizing circuits across the two tasks (Figure 4, 5) that explains the variations in systematicity. +In this paper, we rigorously study these questions by constructing synthetic training and evaluation +datasets, training transformers from scratch, and examining their generalization. We conceptualize +reasoning as the induction and application of inference rules, and expose the model to a mixture of +“atomic facts” and “inferred facts” (which are deduced from the atomic facts via a set of latent rules), +resembling “axioms” and “theorems” in a formal system. To evaluate how well the model learns +the rules, we test its ability to make novel deductions (i.e., completing unseen inferred facts) in both +in-distribution (ID) and out-of-distribution (OOD) scenarios.3 This approach allows us to control +the training data and perform clean evaluations, which would be challenging when studying existing +LLMs trained on uncontrolled data. +Our experiments reveal that transformers can learn to perform implicit reasoning, but this skill is +only robustly acquired through extended training far beyond overfitting (Figure 1), a phenomenon +known as grokking [47]. We find that the speed of improvement in generalization correlates with +the ratio between inferred and atomic facts in training, and depends little on the absolute size of +the training data (Figure 2). This suggests a correction of prior explanations of grokking based on +critical data size [33, 61, 78, 21], in that it should instead be the critical data distribution that decides +the characteristics of grokking. Our findings extend prior observations of the grokking phenomenon +primarily in algorithmic and linguistic tasks [47, 38] to the domain of knowledge-based reasoning, +and deepen our understanding of the grokking phenomenon. +Moreover, we find that the transformer exhibits different levels of systematicity across reasoning +types. While ID generalization is consistently observed, in the OOD setting, the model fails to +systematically generalize for composition but succeeds in comparison (Figure 1). To understand why +this happens, we conduct mechanistic analysis of the internal mechanisms of the model. The analysis +uncovers the gradual formation of the generalizing circuit throughout grokking and establishes the +connection between systematicity and its configuration, specifically, the way atomic knowledge +and rules are stored and applied within the circuit. Our findings imply that proper cross-layer +memory-sharing mechanisms for transformers such as memory-augmentation [54, 17] and explicit +recurrence [7, 22, 57] are needed to further unlock transformer’s generalization. +Finally, to demonstrate the power and potential of parametric memory for complex reasoning, we +show that for a reasoning task with a large search space, a fully grokked transformer can achieve +near-perfect accuracy, while state-of-the-art LLMs like GPT-4-Turbo [43] and Gemini-1.5-Pro [16] +based on non-parametric memory fail badly regardless of prompting styles or retrieval augmentation. +3Definitions of ID/OOD are introduced in §2. +2 + +PAGE 3 +2 +General Setup +Training data & ID/OOD evaluation. As stated in §1, we are interested in whether transformers +can induce and apply latent rules over knowledge implicitly in a generalizable way. We create a data- +generating process consisting of 1) sampling a set of basic atomic facts, and 2) using the atomic facts +and latent rules to deduce inferred facts. To better characterize the level of generalization acquired by +the model, we evaluate the model’s in-distribution (ID) and out-of-distribution (OOD) performance. +We prepare two separate sets of atomic facts: atomicID and atomicOOD. Our training set includes +all the atomic facts and a uniformly random portion of the inferred facts deduced from atomicID, +which we call train_inferredID. For evaluation, (1) ID generalization aims to evaluate whether +the model learns the latent rules correctly, by testing its ability to complete unseen inferred facts +also deduced from atomicID, which we denote by test_inferredID. (2) OOD generalization +aims to evaluate the systematicity [25] acquired by the model, namely, the ability to apply rules over +knowledge regardless of its distribution. To do this, we test the model on the facts deduced from +atomicOOD, denoted by test_inferredOOD. +Model & optimization. We use a standard decoder-only transformer model as in GPT-2 [50] with +8 layers, 768 hidden dimensions and 12 attention heads (we explore the impact of different model +scales in Appendix B). Optimization is done by AdamW [34] with learning rate 10−4, batch size +512, weight decay 0.1 and 2000 warm-up steps. Notably, models are trained for a large number of +epochs/steps beyond the point where training performance saturates. More details are in Appendix A. +3 +Composition—Delayed Generalization without Systematicity +We begin our investigation with composition, where a model needs to “chain” different pieces of +facts, e.g., “Barack’s wife is Michelle” and “Michelle is born in 1964”, to successfully complete +a compositional sentence, e.g., “Barack’s wife is born in [1964]”. Prior work extensively studied +whether transformer-based language models can perform implicit composition, and negative results +are consistently reported [48, 1, 71]. Specifically, there exists a “compositionality gap” [48], i.e., +the frequency at which the model knows all the underlying basic facts but fails to compose them, +which is considerable across different LLMs and does not decrease as models scale. Are transformers +doomed to fail on such kind of reasoning, and if so, why? +3.1 +Setup +We focus on two-hop composition in this work. For atomic facts, we generate a random knowledge +graph G consisting of |E| entities and |R| = 200 relations, where each entity (as the subject) has 20 +random distinct relations that each connects to another random entity (as the object). The atomic +facts are then the edges, i.e., (subject, relation, object) triplets in G, which we partition disjointly into +atomicID and atomicOOD (95%: 5%). The rule of (two-hop) composition is +∀h, b, t ∈E, ∀r1, r2 ∈R, (h, r1, b) ∧(b, r2, t) =⇒(h, r1, r2, t), +(1) +which is used to deduce the ID and OOD inferred facts from atomicID and atomicOOD, respectively. +For convenience, in the above rule, we will call h the head entity, b the bridge entity, and t the tail +entity. For both atomic and inferred facts, training/testing is done by having the model predict the +final tail entity. We assign a unique token to each relation/entity by default, and also find that the +results are robust to different tokenizations (details in Appendix C). +We study the influence of the following two aspects on the model’s learned behaviors: +• Ratio between inferred and atomic facts. By varying the amount of inferred facts included in +training, we study the effect of the ratio ϕ = |train_inferredID|/|atomicID| on the model. +• Training data size. We study the impact of the training data size by varying |E|, the total number +of entities, while controlling the ratio ϕ. Note that the size of training data (both atomic/inferred +facts) scales linearly with |E|. +3.2 +Results +Grokking observed in ID generalization but not in OOD generalization. Figure 1(left) shows the +model’s accuracy on the train and test facts throughout optimization, with |E| = 2000 and ϕ = 7.2. +3 + +PAGE 4 +We find that the model can generalize to ID test examples, but high performance is only achieved +through extended training far beyond overfitting, a phenomenon called grokking [47]. Specifically, the +training performance saturates (over 99% accuracy on both atomic and inferred facts) at around 14K +optimization steps, before which the highest ID generalization accuracy is merely 9.2%. However, +generalization keeps improving by simply training for longer, and approaches almost perfect accuracy +after extended optimization lasting around 50 times the steps taken to fit the training data. On the +other hand, OOD generalization is never observed. We extend the training to 2 million optimization +steps, and there is still no sign of OOD generalization. +Inferred/atomic ratio ϕ correlates with generalization speed. Figure 2(a) shows the ID test +accuracy across different ϕ. We omit the other splits since for all settings, the training performance +saturates quickly and the OOD test accuracy remains at zero as earlier.4 It could be seen that the ratio +ϕ strongly correlates with the speed of generalization. A very large ratio can push generalization to +improve at a similar pace as the model fits the training data, reducing the need for extended training.5 +10 +4 +10 +5 +Optimization Step (Log Scale) +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Accuracy +Ratio (Inferred/Atomic) +3.6 +5.4 +7.2 +9.0 +12.6 +18.0 +(a) Effect of changing ratio ϕ (|E| = 2000). +0 +50 +100 +150 +# Epoch +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Accuracy +| |: 10K +| |: 5K +| |: 2K +Train (ID) +Test (ID) +Test (OOD) +(b) Effect of changing |E| (ϕ = 9.0). +Figure 2: The speed of grokking on the in-distribution (ID) test performance (a) correlates with the +ratio between inferred and atomic facts, and (b) is not influenced by the size of training data. +Training data distribution, instead of training data size, qualitatively influences generalization +behavior. When ϕ increases and |E| holds constant, the size of training data also gets larger. Prior +studies hypothesize that training data size plays a central role in order for grokking to happen. In +particular, previous work connects grokking with the notion of critical data size (CDS) [33, 61, 78, 21], +where it is hypothesized that CDS marks the shift from memorization to generalization (via grokking), +and the speed of generalization improves as the training data further scales. However, results from +our controlled experiments seem to contradict such a hypothesis. Figure 2(b) shows the results +of varying |E| with a fixed ϕ = 9.0, where we change the horizontal axis from optimization +step to epoch for better visualization.6 When fixing the ratio ϕ, the training data size does not +qualitatively affect the model’s generalization. Specifically, scaling the data affects neither the +relative speed of ID generalization and training improvement (as seen by the rather constant “gap” +between train_inferredID and test_inferredID curves), nor the systematicity level (OOD +performance stays zero). We also run the experiments across different ϕ and find the results to be +consistent. This suggests that critical data “distribution”, not size, may be the actual deciding factor +behind grokking and generalization. In addition, we find that scaling up the model size also does not +qualitatively change the generalization behaviors observed here (Appendix B), and the main pattern +is that larger models converge in fewer optimization steps, which shares with prior findings [60, 28]. +Summary. We have shown that transformers are capable of acquiring the rule of composition through +grokking, with controlled experiments suggesting the crucial factor of data distribution (e.g., the +inferred/atomic ratio ϕ) in characterizing the model’s generalization. However, important questions +4The training performances of all settings saturate within 25K steps, where larger ϕ takes more steps. +5When ϕ = 18.0, the model achieves 96.7% accuracy before training performance saturates. +6The optimization steps for each epoch scale linearly with the training size since we use a fixed batch size. +4 + +PAGE 5 +still remain: what happens during grokking, why does it happen, and why do transformers struggle +with OOD examples? Answering these questions requires a deeper understanding of (the changes in) +the model’s inner workings, which we investigate next. +3.3 +Analyzing the inner workings of the model throughout grokking +We analyze the internal mechanisms within the model via a combination of two prevalent approaches: +logit lens and causal tracing. We apply our analysis to the setting with |E| = 2000, ϕ = 9.0 on 300 +random examples from train_inferredID. +… +… +… +… +ℎ +𝑟𝑟1 +𝑟𝑟2 +… +… +… +… +ℎ +𝑟𝑟2 +𝑟𝑟1 +′ +𝑡𝑡′(≠𝑡𝑡) +𝑡𝑡 +(3) Intervention +? +… +… +Measure change +Input & Output +Embeddings +Final +LayerNorm +Position +Encoding +𝑟𝑟1 𝑒𝑒8 𝑒𝑒5 +(1) Normal run +(2) Perturbed run +Layer 0 +Layer 1 +Layer 4 +Layer 5 +Layer 8 +… +… +Logit Lens +Activations in +Normal run +States Affected +by Intervention +Figure 3: Illustration of our circuit analysis approach (on the composition task). We use logit lens +to interpret individual states, and use causal tracing to measure the strength of connections between +states. Details are in the main content. +Logit lens. We interpret individual hidden states via logit lens [40, 15, 71], where the activation is +converted into a set of logits for each vocabulary token by multiplying with the output embedding +matrix. We follow the recent practice [71] where the activation first goes through the transformer’s +final normalization layer before multiplying with the output embedding (Figure 3, top right). +Causal tracing. The transformer could be viewed as a causal graph [46] that propagates information +from the input to the output through a grid of intermediate states, which allows for a variety of causal +analyses on its internal computations [63, 35, 19, 65, 12]. For convenience, we will refer to a hidden +state by S[i, a], where i is the layer index and a marks the role of the input token at the same position +as the state (one of {h, r1, r2}). We illustrate our method in Figure 3, where the hidden state of +interest is S[4, r1] and the target is the model’s prediction state S[8, r2]. There are in total three steps: +1. The normal run records the model’s hidden state activations on a regular input (h, r1, r2). +Note that since the model maintains perfect training performance throughout grokking, the final +prediction is always the ground truth tail entity t.7 +2. In the perturbed run, a slightly perturbed input is fed to the model which changes the prediction, +where again the hidden state activations are recorded. For the perturbation, prior work has explored +adding noise to the input [35] and replacing key tokens with semantically close ones [63, 12]. We +adopt token replacement which avoids unnecessary distribution shifts [74]. Specifically, for the +hidden state of interest, we replace the input token at the same position as the state to be a random +alternative of the same type (e.g., r1 →r′ +1) that leads to a different target prediction (e.g., t →t′). +3. Intervention. During the normal run, we intervene the state of interest by replacing its activation +with its activation in the perturbed run. We then run the remaining computations and measure if +the target state (top-1 token through logit lens) is altered. The ratio of such alterations (between 0 +and 1) among the examples quantitatively characterizes the causal strength between the state of +interest and the target. +7For convenience, when we refer to a state as a token, we mean the top token of the state via logit lens. +5 + +PAGE 6 +ℎ +𝑟𝑟1 +𝑟𝑟2 +𝑟𝑟2 … +Layer 0 +Layer 5 +Layer 8 +𝑡𝑡 +… +𝑏𝑏… … +(a) +h +r1 +r2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(b) +0.0 +0.5 +1.0 +1.5 +2.0 +2.5 +3.0 +Optimization step (1e5) +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Grokking starts +MRR(b) at S[5, r1] +MRR(r2) at S[5, r2] +Test (ID) +Test (OOD) +(c) +Figure 4: The (evolution of) generalizing circuit for composition. (a) The generalizing circuit. (b) +The change in causal strengths during grokking, where the target is the prediction state. (c) Mean +reciprocal rank (via logit lens) of the bridge entity b at S[5, r1] and second relation r2 at S[5, r2]. +The generalizing circuit. We run a set of causal tracing and logit lens experiments across different +model checkpoints throughout training. The discovered generalizing circuit (i.e., the causal com- +putational pathways after grokking) is illustrated in Figure 4(a). Specifically, we locate a highly +interpretable causal graph consisting of states in layer 0, 5, and 8, where we have pruned away the +weak nodes/connections (details in Appendix D). Layer 5 splits the circuit into lower and upper +layers, where 1) the lower layers retrieve the first-hop fact (h, r1, b) from the input h, r1, store the +bridge entity b in S[5, r1], and “delay” the processing of r2 to S[5, r2]; 2) the upper layers retrieve the +second-hop fact (b, r2, t) from S[5, r1] and S[5, r2], and store the tail t to the output state S[8, r2]. +What happens during grokking? To understand the underlying mechanism behind grokking, we +track the strengths of causal connections and results from logit lens across different model checkpoints +during grokking (the “start” of grokking is the point when training performance saturates). We +observe two notable amplifications (within the identified graph) that happen during grokking. The +first is the causal connection between S[5, r1] and the final prediction t, which is very weak before +grokking (Appendix D) and grows significantly during grokking (Figure 4(b)). The second is the r2 +component of S[5, r2] via logit lens, for which we plot its mean reciprocal rank (MRR) (Figure 4(c)). +Additionally, we find that the state S[5, r1] has a large component of the bridge entity b throughout +grokking (Figure 4(c)). These observations strongly suggest that the model is gradually forming +the second hop in the upper layers (5-8) during grokking. This also indicates that, before grokking, +the model is very likely mostly memorizing the examples in train_inferredID by directly +associating (h, r1, r2) with t, without going through the first hop. +Why does grokking happen? These observations suggest a natural explanation of why grokking +happens through the lens of circuit efficiency [61]. Specifically, as illustrated above, there exist both +a memorizing circuit Cmem and a generalizing circuit Cgen that can fit the training data. While +Cmem is learned first (which causes training performance to saturate quickly), Cgen is relatively more +efficient, in the sense that it could fit the data with a lower complexity. To see this, we can compare +the amount of facts Cmem and Cgen need to store (denoted as Nmem and Ngen) as a proxy for their +complexity.8 Cmem stores both atomic facts and inferred facts in the weights. Cgen (Figure 4(a)) +stores the atomic facts in the lower layers, and another copy of the atomic facts that appear as the +second hop in the inferred facts in the upper layers. As the inferred/atomic ratio ϕ increases, Nmem +would increase rapidly while Ngen increases slowly and is always bounded by two times the total +amount of atomic facts, and hence, the relative efficiency of Cgen increases. In the long run, the model +will be incentivized to transition from Cmem to Cgen due to implicit bias of the optimization [53] and +explicit regularization such as weight decay which prefers more efficient circuits, and the transition +would happen faster as ϕ increases. This also explains why the training data size does not affect the +speed of grokking, since solely increasing the size does not change the relative efficiency of Cmem +and Cgen. The explanation also implies that a larger regularization factor should accelerate grokking +(and vice versa), which we confirm by varying the degree of weight decay (Appendix E.1). +8While the circuits also consist of other components, they pale in comparison as the number of facts scales. +6 + +PAGE 7 +Explaining and mitigating the deficiency in OOD generalization. The configuration of Cgen also +has another important implication: while the model does acquire compositionality through grokking, +it does not have any incentive to store atomic facts in the upper layers that do not appear as the +second hop during training. This explains why the model fails in the OOD setting where facts +are only observed in the atomic form, not in the compositional form—the OOD atomic facts are +simply not stored in the upper layers when queried during the second hop.9 Such issue originates +from the non-recurrent design of the transformer architecture which forbids memory sharing across +different layers. Our study provides a mechanistic understanding of existing findings that transformers +seem to reduce compositional reasoning to linearized pattern matching [10], and also provides a +potential explanation for the observations in recent findings that LLMs only show substantial positive +evidence in performing the first hop reasoning but not the second [71]. Our findings imply that proper +cross-layer memory-sharing mechanisms for transformers such as memory-augmentation [54, 17] and +explicit recurrence [7, 22, 57] are needed to improve their generalization. We also show that a variant +of the parameter-sharing scheme in Univeral Transformer [7] can improve OOD generalization in +composition (Appendix E.2). +4 +Comparison—Systematic Generalization via Parallel Circuit +We have just shown that the vanilla transformer fails to achieve OOD generalization for composition, +but is the vanilla transformer generally incapable of acquiring systematic implicit reasoning skills? +We show that for comparison, a task where SoTA LLMs such as GPT-4 also struggle [1], the vanilla +transformer does have the capability to acquire systematic generalization, again through grokking. On +the surface, it seems that the comparison task is no different than the composition task—both require +retrieving and reasoning over two pieces of facts. However, as it turns out through our analysis, the +comparison task emits a “parallel circuit” that is learned by the transformer during grokking, which +allows atomic facts to be stored and retrieved in the same region and enables systematicity to happen. +Setup. The comparison task involves comparing the attribute values of entities. We assume there +are |E| = 1000 entities, |A| = 20 attributes and |V| = 20 ordinal values for the attributes. Each +attribute a ∈A has a label space {a<, a=, a>}, a set of relations specifying its comparative form. For +example, an attribute age would have a<, a=, a> to be younger, contemporary, older, respectively. +The atomic facts are (entity, attribute, value) triplets, where we assign a random value v ∈V for +each (e, a) ∈E × A. Again, we randomly partition the atomic facts into atomicID and atomicOOD +(90%: 10%). The rules of comparison are: +∀e1, e2 ∈E, ∀a ∈A, ∀v1, v2 ∈V, (e1, a, v1) ∧(e2, a, v2) ∧v1 < v2 =⇒(a, e1, e2, a<), +∀e1, e2 ∈E, ∀a ∈A, ∀v1, v2 ∈V, (e1, a, v1) ∧(e2, a, v2) ∧v1 = v2 =⇒(a, e1, e2, a=), +∀e1, e2 ∈E, ∀a ∈A, ∀v1, v2 ∈V, (e1, a, v1) ∧(e2, a, v2) ∧v1 > v2 =⇒(a, e1, e2, a>). +(2) +Take the attribute age as an example, the first rule means if the age of e1 is smaller than the +age of e2, then we can infer “In terms of age, the relation between e1 and e2 is younger”. Each +entity/attribute/value/label is assigned a unique token, and training/testing is done by having the +model predict the last token (attribute value for atomic facts; comparative relation for inferred facts). +Results & analysis. Figure 1(right) shows the results for ϕ = 7.2, and we include more results in +Appendix E.3. It can be seen that 1) the model again acquires robust generalization only through +grokking; 2) surprisingly, the model also achieves systematicity in generalization, different from the +case of composition. +Analyzing the model’s internals similarly as in §3.3 (details in Appendix D), we find the generalizing +circuit for comparison illustrated in Figure 5(a). On a separate stream, the model prepares the label +space {a<, a=, a>} from a and stores it in S[7, a]. In the lower layers (0-5), the model retrieves +the two atomic facts and stores the attribute values v1 and v2 at S[5, e1] and S[5, e2]. Then, the +upper layers (5-8) compare v1, v2 and fetch the label from S[7, a] based on the comparison result. +Importantly, there is a major difference compared with the circuit for composition: the two atomic +facts are retrieved in parallel, which suggests that the atomic facts are stored solely in the lower layers, +without having separate copies across different regions as in the circuit for composition. This explains +why systematicity could happen: OOD facts are now stored and accessed in the same way as ID +9We verified that in the OOD setting, S[5, r1] and S[5, r2] encode b and r2 respectively as in the ID case. +7 + +PAGE 8 +facts. Tracking the changes in the model throughout grokking, we observe significantly strengthened +causal connections from S[7, a] and S[5, e1] to the final prediction (Figure 5(b)). We also find that +throughout grokking, S[7, a] always encodes the label space and S[5, e1], S[5, e2] gradually encode +the two attribute values (Figure 5(c)). This confirms that a similar transition from Cmem to Cgen +happens during grokking. +𝑎𝑎 +𝑒𝑒1 +𝑒𝑒2 +𝑣𝑣2 … +Layer 0 +Layer 5 +Layer 8 +𝑡𝑡 +… +… … +Layer 7 +𝑣𝑣1 +𝑎𝑎< 𝑎𝑎= 𝑎𝑎> +(a) +a +e1 +e2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(b) +0 +1 +2 +3 +4 +5 +Optimization step (1e5) +0.2 +0.4 +0.6 +0.8 +1.0 +Grokking starts +MRR(v1) at S[5, e1] +MRR(v2) at S[5, e2] +Test (ID) +Test (OOD) +(c) +Figure 5: The (evolution of) generalizing circuit for comparison. (a) The generalizing circuit. (b) +The change in causal strengths during grokking, where the target is the prediction state. (c) Mean +reciprocal rank (via logit lens) of the two attribute values (v1, v2) at S[5, e1] and S[5, e2]. +The findings here showcase transformer’s ability to learn parallel solutions to seemingly sequential +problems, akin to the findings in Liu et al. [30] where it is shown that transformers can learn +“shortcuts” to automata. The difference in the acquired generalization across the two tasks that +we study also emphasizes the need for controlled and mechanistic study on understanding the +transformer’s reasoning before making general claims on its limitations. +5 +The Power of Parametric Memory for Complex Reasoning +At the high level, our study so far paves the way towards better understanding and improving +transformer’s reasoning with parametric representation of knowledge and rules. But why is parametric +memory practically important? Can we not simply enhance LLMs with non-parametric memory, e.g., +by using their long-context modes and/or doing explicit retrieval, to solve the tasks at hand? +We believe parametric memory has its unique capability to perform deep compression and integration +of information for complex reasoning. To showcase the potential of parametric memory for complex +reasoning, we create a difficult reasoning task with a large search space, and show that 1) it is far out +of reach even for current SoTA models (e.g., GPT-4-Turbo [43] and Gemini-Pro-1.5 [16]) based on +non-parametric memory; 2) a fully grokked transformer can solve the task with near-perfect accuracy. +Our task is a variation of the comparison task above where we use a simple way to massively expand +the search space, based on an additional set of rules that are already contained within the task itself, +namely, the (anti-)symmetry and transitivity of comparison: +∀e1, e2 ∈E, ∀a ∈A, (a, e1, e2, a) =⇒(a, e2, e1, a>/a=/a<), +∀e1, e2, e3 ∈E, ∀a ∈A, ∀y ∈{a<, a=, a>}, (a, e1, e2, y) ∧(a, e2, e3, y) =⇒(a, e1, e3, y). (3) +In the original setting (§4) of the task, for the OOD test set, one can simply retrieve the two OOD +facts and compare the attribute values, which requires no further search. We change the task setting +via the following. For each attribute, 1) we do not add the OOD atomic facts into training, and 2) we +add a random portion of the comparisons between ID entities and OOD entities into training. We test +the models on queries consisting of derivable (from all training facts) comparisons between OOD +entities where any possible proof would involve rules from both Eqs.(2) and Eqs.(3). Consequently, +answering a test query would require the model to successfully locate two ID bridge entities which +can connect the two query entities into a proof (Figure 6). We select a balanced (by a<, a=, a>) +subset from these queries for evaluation. More details are included in Appendix F. +The difficulty of such a task is two-fold. First, the search space is large. For example, on average, +each query entity connects with more than 50 facts, and each bridge entity in the ground truth proof +8 + +PAGE 9 +John +Rick +Leo +Sam +Ben +Eve +Bob +Max +Joe +Tom +10 +Mia +13 +5 +Query Entity +Bridge Entity +Gold Proof +Figure 6: Illustration of the complex reasoning task, which involves comparing the attributes of two +query entities based on a set of facts encompassing a large search space. +connects with more than 900 facts. Second, there are no surface form clues to exploit and bias the +search towards the ground truth proof, unlike most conventional QA benchmarks where the proof +steps are transparent from the query. +To test LLMs based on non-parametric memory, we translate the facts into natural language by simple +templates (Appendix F). Facts/queries for each attribute are grouped/tested separately.10 We test +both the vanilla setup where all facts (28.2K on average) are loaded into the LLM context, and the +retrieval-augmented setup (5.4K facts retrieved on average) where the two-hop neighborhoods of the +two query entities are retrieved, which includes enough facts to deduce the answer. We also try both +standard prompting where the model answers directly, and chain-of-thought (CoT) prompting where +the model is prompted to verbalize the reasoning. We test GPT-4-Turbo and Gemini-Pro-1.5, where +for GPT-4-Turbo we only test the retrieval-augmented setup due to context length limit. +Table 1: Results on the complex reasoning task. Direct/CoT: predict the answer directly/verbalize the +reasoning steps. “+R”: retrieval augmentation. +GPT-4-Turbo +Gemini-Pro-1.5 +Grokked Transformer +Direct+R +CoT+R +Direct +CoT +Direct+R +CoT+R +Accuracy (%) +33.3 +31.3 +28.7 +11.3 +37.3 +12.0 +99.3 +Results. As shown in Table 1, all models based on non-parametric memory fail badly, where the only +setting that surpasses random guess (33.3%) is the retrieval-augmented setting with Gemini-Pro-1.5 +and direct answer prediction. Intriguingly, LLMs perform worse (especially Gemini) when prompted +to reason verbally. Through closer examinations, we find that with CoT, 70.7% of Gemini’s responses +conclude that the answer cannot be decided (which we treat as wrong since the answer can be decided) +after a series of search steps.11 More shockingly, most of the CoT rationales that achieve the correct +final answer are actually wrong due to either hallucinating underivable facts or logical errors. This +illustrates the current models’ inability to reason deeply with non-parametric memory. On the other +hand, a grokked transformer, which is trained extensively on the given facts to compress and integrate +the information to the extreme, could achieve near-perfect accuracy. By examining the model, we +find that it acquires the same generalizing circuit as in Figure 5(a), and remarkably, even though +not explicitly encouraged/trained to do this, the model successfully infers most of the OOD entities’ +attribute values by integrating the observed training facts (Appendix F). +6 +Related Work +Knowledge and reasoning in language models. Numerous work finds that transformer language +models, even SoTA ones such as GPT-4, struggle in implicit reasoning over their parametric knowl- +edge [56, 23, 52, 51, 48, 1, 71], suggesting their limitations in inducing structured and compressed +representations of facts and rules during training. A series of efforts try to understand transformer’s +knowledge and reasoning through controlled experiments [24, 49, 10, 66], which is also our focus. We +10This could also be thought of as performing a retrieval step into the memory based on the attribute. +11The ratio drops a bit to 58.7% when augmenting with retrieval. +9 + +PAGE 10 +find that transformers can learn implicit reasoning over knowledge through grokking, and characterize +the connection between the acquired systematicity level and the inductive bias of transformer. +“Chain-of-Thought” and verbalized reasoning. A series of studies prompt/fine-tune language +models to verbalize (i.e., generate) the intermediate knowledge and reasoning steps [67, 64, 73, 55, +31, 72] during inference, which has been shown to improve performance especially for large models +with strong generation capabilities. There are also theoretical results showing the benefits of such +verbalizations [11, 27]. Our focus here on implicit reasoning is orthogonal, and it is an interesting +open problem to have principled understandings of the role of such verbalizations in reasoning +problems, and also develop methods that can decide the appropriate balance between implicit and +explicit reasoning to handle challenging problems with large intrinsic complexity. Relatedly, recent +work also finds that explicit verbalizations could be a useful medium for teaching models to reason +implicitly via distillation or curriculum [9, 8]. +Grokking is first discovered by Power et al. [47] on a set of small algorithmic reasoning tasks. The +intriguing phenomenon inspired follow-up works proposing different explanations and expanding the +set of tasks where grokking is observed [59, 32, 6, 41, 39, 61, 36, 38, 33, 78, 21]. To our knowledge, +we are the first work to observe grokking in the domain of knowledge-based reasoning, and our +controlled experiments suggest potential corrections of prior hypotheses based on critical data size. +Our formulation of rule induction from atomic and inferred facts is general, which we hope could +inspire future work on understanding grokking and generalization in deep learning. +Analyzing the inner workings of neural models. Recent work tries to open up the “black box” of +neural models through a wide range of techniques; see survey in Ferrando et al. [13]. We apply causal +tracing [63, 35, 19, 65, 12] and logit lens [40, 15, 71] to discover interpretable circuits in the model +to understand the grokking process and how/why generalization happens. +Parametric and non-parametric memory. Our focus in this work is on parametric memory in +language models, and an orthogonal direction is to enhance models with non-parametric memory, +such as extending the effective context length [70, 43, 14, 16] and augmenting with retrieval [18, 26, 3, +58, 75, 37]. The two types of memory are largely complementary to each other—parametric memory +has its unique ability to compress and integrate information but is also inevitably lossy and subject to +hallucination, while non-parametric memory is lossless and could also provide attribution. Similarly +for humans—a human acquires expertise in a domain by acquiring and structuring knowledge in +the brain (parametric), but he/she also wouldn’t memorize all pieces of details and could refer to +the source when necessary (non-parametric). How to decide the tradeoff between parametric and +non-parametric memory (or, how to define the objective for such a tradeoff) is another interesting +open problem for future work. +7 +Conclusion +We find that transformers are capable of learning to implicitly reason over parametric knowledge, +however, such a skill is only robustly acquired through extended training far beyond the point of +overfitting, or grokking. Mechanistic analysis into the model’s internals reveals the configuration and +gradual formation of the generalizing circuit, and also explains the different levels of systematicity +the model acquires across tasks. These findings guide data and training setup to better induce implicit +reasoning, and suggest potential improvements to the transformer architecture to further unlock its +generalization. We conclude by showcasing the unique power of parametric memory on a challenging +reasoning task with a large search space. +Limitations +Scope of our task formulation. As mentioned in §1, we formulate the implicit reasoning problem as +induction and application of inference rules from a mixture of atomic and inferred facts. This may not +apply to the full spectrum of reasoning which has a range of different types and meanings [20]. Still, +our formulation could capture the nature of a wide range of reasoning problems, and crucially, we +believe that it is a good conceptualization of certain aspects of language model (pre-)training, where +the model needs to both memorize the “atomic” world knowledge and also induce generalizable rules +from the massive amount of records of human activities, which allow the model to connect and reason +over knowledge, and ultimately help with humans. +10 + +PAGE 11 +Abstract nature and connection with practice. Our study has an abstract nature, which is required +for the complete solidity and rigor of our experiments and evaluation. We also strive to make +sure that the results are robust to different setups closer to practice through additional experiments +(Appendix B,C,E). Still, there are certain distances from our settings to those in practice. However, +we believe that it is far more important to build solid understandings, even having distances with +practice, than to draw conclusions or make claims that are closer to practice but questionable due to +insufficient control over data and evaluations. +Acknowledgement +The authors would like to thank colleagues from the OSU NLP group and CMU NeuLab for +their thoughtful comments. This research was supported in part by NSF CAREER #1942980, +ARL W911NF2220144, NSF OAC 2112606, and Ohio Supercomputer Center [5]. 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 +[1] Zeyuan Allen-Zhu and Yuanzhi Li. Physics of language models: Part 3.2, knowledge manipula- +tion. In arXiv preprint: abs/2309.14402, 2023. +[2] Nora Belrose, Zach Furman, Logan Smith, Danny Halawi, Igor Ostrovsky, Lev McKinney, +Stella Biderman, and Jacob Steinhardt. Eliciting latent predictions from transformers with the +tuned lens. In arXiv preprint: abs/2303.08112, 2023. +[3] Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie +Millican, George Bm Van Den Driessche, Jean-Baptiste Lespiau, Bogdan Damoc, Aidan Clark, +et al. Improving language models by retrieving from trillions of tokens. In International +conference on machine learning, pages 2206–2240. PMLR, 2022. +[4] Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D. Lee, Deming Chen, and Tri +Dao. Medusa: Simple llm inference acceleration framework with multiple decoding heads. In +arXiv preprint: abs/2401.10774, 2024. +[5] Ohio Supercomputer Center. Ohio supercomputer center, 1987. +[6] Xander Davies, Lauro Langosco, and David Krueger. Unifying grokking and double descent. +In NeurIPS ML Safety Workshop, 2022. +[7] Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Uni- +versal transformers. In International Conference on Learning Representations, 2019. +[8] Yuntian Deng, Yejin Choi, and Stuart Shieber. From explicit cot to implicit cot: Learning to +internalize cot step by step. In arXiv preprint: abs/2405.14838, 2024. +[9] Yuntian Deng, Kiran Prasad, Roland Fernandez, Paul Smolensky, Vishrav Chaudhary, and +Stuart Shieber. Implicit chain of thought reasoning via knowledge distillation. In arXiv preprint: +abs/2311.01460, 2023. +[10] Nouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li, Liwei Jiang, Bill Yuchen Lin, +Sean Welleck, Peter West, Chandra Bhagavatula, Ronan Le Bras, Jena D. Hwang, Soumya +Sanyal, Xiang Ren, Allyson Ettinger, Zaid Harchaoui, and Yejin Choi. Faith and fate: Limits +of transformers on compositionality. In Thirty-seventh Conference on Neural Information +Processing Systems, 2023. +[11] Guhao Feng, Bohang Zhang, Yuntian Gu, Haotian Ye, Di He, and Liwei Wang. Towards +revealing the mystery behind chain of thought: A theoretical perspective. In Thirty-seventh +Conference on Neural Information Processing Systems, 2023. +11 + +PAGE 12 +[12] Jiahai Feng and Jacob Steinhardt. How do language models bind entities in context? In The +Twelfth International Conference on Learning Representations, 2024. +[13] Javier Ferrando, Gabriele Sarti, Arianna Bisazza, and Marta R. Costa-jussà. A primer on the +inner workings of transformer-based language models. In arXiv preprint: abs/2405.00208, +2024. +[14] Yao Fu, Rameswar Panda, Xinyao Niu, Xiang Yue, Hannaneh Hajishirzi, Yoon Kim, and Hao +Peng. Data engineering for scaling language models to 128k context, 2024. +[15] Mor Geva, Avi Caciularu, Kevin Wang, and Yoav Goldberg. Transformer feed-forward layers +build predictions by promoting concepts in the vocabulary space. In Proceedings of the 2022 +Conference on Empirical Methods in Natural Language Processing, pages 30–45, Abu Dhabi, +United Arab Emirates, December 2022. Association for Computational Linguistics. +[16] Google. Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context. +2024. +[17] Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka Grabska- +Barwi´nska, Sergio Gómez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, +et al. Hybrid computing using a neural network with dynamic external memory. Nature, +538(7626):471–476, 2016. +[18] Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. Retrieval +augmented language model pre-training. In International conference on machine learning, +pages 3929–3938. PMLR, 2020. +[19] Michael Hanna, Ollie Liu, and Alexandre Variengien. How does GPT-2 compute greater- +than?: Interpreting mathematical abilities in a pre-trained language model. In Thirty-seventh +Conference on Neural Information Processing Systems, 2023. +[20] Jie Huang and Kevin Chen-Chuan Chang. Towards reasoning in large language models: A +survey. In Anna Rogers, Jordan Boyd-Graber, and Naoaki Okazaki, editors, Findings of the +Association for Computational Linguistics: ACL 2023, pages 1049–1065, Toronto, Canada, July +2023. Association for Computational Linguistics. +[21] Yufei Huang, Shengding Hu, Xu Han, Zhiyuan Liu, and Maosong Sun. Unified view of +grokking, double descent and emergent abilities: A perspective from circuits competition. In +arXiv preprint: abs/2402.15175, 2024. +[22] DeLesley Hutchins, Imanol Schlag, Yuhuai Wu, Ethan Dyer, and Behnam Neyshabur. Block- +recurrent transformers. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun +Cho, editors, Advances in Neural Information Processing Systems, 2022. +[23] Nora Kassner, Benno Krojer, and Hinrich Schütze. Are pretrained language models symbolic +reasoners over knowledge? In Proceedings of the 24th Conference on Computational Natural +Language Learning, pages 552–564, Online, November 2020. Association for Computational +Linguistics. +[24] Nora Kassner, Benno Krojer, and Hinrich Schütze. Are pretrained language models symbolic +reasoners over knowledge? In Proceedings of the 24th Conference on Computational Natural +Language Learning, pages 552–564, Online, November 2020. Association for Computational +Linguistics. +[25] Brenden Lake and Marco Baroni. Generalization without systematicity: On the compositional +skills of sequence-to-sequence recurrent networks. In International conference on machine +learning, pages 2873–2882. PMLR, 2018. +[26] Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman +Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. Retrieval-augmented +generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing +Systems, 33:9459–9474, 2020. +12 + +PAGE 13 +[27] Zhiyuan Li, Hong Liu, Denny Zhou, and Tengyu Ma. Chain of thought empowers transformers +to solve inherently serial problems. In The Twelfth International Conference on Learning +Representations, 2024. +[28] Zhuohan Li, Eric Wallace, Sheng Shen, Kevin Lin, Kurt Keutzer, Dan Klein, and Joey Gon- +zalez. Train big, then compress: Rethinking model size for efficient training and inference of +transformers. In Hal Daumé III and Aarti Singh, editors, Proceedings of the 37th International +Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, +pages 5958–5968. PMLR, 13–18 Jul 2020. +[29] Bill Yuchen Lin, Abhilasha Ravichander, Ximing Lu, Nouha Dziri, Melanie Sclar, Khyathi +Chandu, Chandra Bhagavatula, and Yejin Choi. The unlocking spell on base LLMs: Rethinking +alignment via in-context learning. +In The Twelfth International Conference on Learning +Representations, 2024. +[30] Bingbin Liu, Jordan T. Ash, Surbhi Goel, Akshay Krishnamurthy, and Cyril Zhang. Trans- +formers learn shortcuts to automata. In The Eleventh International Conference on Learning +Representations, 2023. +[31] Jiacheng Liu, Ramakanth Pasunuru, Hannaneh Hajishirzi, Yejin Choi, and Asli Celikyilmaz. +Crystal: Introspective reasoners reinforced with self-feedback. In Houda Bouamor, Juan +Pino, and Kalika Bali, editors, Proceedings of the 2023 Conference on Empirical Methods in +Natural Language Processing, pages 11557–11572, Singapore, December 2023. Association +for Computational Linguistics. +[32] Ziming Liu, Ouail Kitouni, Niklas Nolte, Eric J Michaud, Max Tegmark, and Mike Williams. +Towards understanding grokking: An effective theory of representation learning. In Alice H. +Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho, editors, Advances in Neural +Information Processing Systems, 2022. +[33] Ziming Liu, Eric J Michaud, and Max Tegmark. Omnigrok: Grokking beyond algorithmic data. +In The Eleventh International Conference on Learning Representations, 2023. +[34] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International +Conference on Learning Representations, 2019. +[35] Kevin Meng, David Bau, Alex J Andonian, and Yonatan Belinkov. Locating and editing factual +associations in GPT. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho, +editors, Advances in Neural Information Processing Systems, 2022. +[36] William Merrill, Nikolaos Tsilivis, and Aman Shukla. A tale of two circuits: Grokking as +competition of sparse and dense subnetworks. In ICLR 2023 Workshop on Mathematical and +Empirical Understanding of Foundation Models, 2023. +[37] Sewon Min, Weijia Shi, Mike Lewis, Xilun Chen, Wen-tau Yih, Hannaneh Hajishirzi, and +Luke Zettlemoyer. Nonparametric masked language modeling. In Anna Rogers, Jordan Boyd- +Graber, and Naoaki Okazaki, editors, Findings of the Association for Computational Linguistics: +ACL 2023, pages 2097–2118, Toronto, Canada, July 2023. Association for Computational +Linguistics. +[38] Shikhar Murty, Pratyusha Sharma, Jacob Andreas, and Christopher Manning. Grokking of +hierarchical structure in vanilla transformers. In Anna Rogers, Jordan Boyd-Graber, and Naoaki +Okazaki, editors, Proceedings of the 61st Annual Meeting of the Association for Computational +Linguistics (Volume 2: Short Papers), pages 439–448, Toronto, Canada, July 2023. Association +for Computational Linguistics. +[39] Neel Nanda, Lawrence Chan, Tom Lieberum, Jess Smith, and Jacob Steinhardt. Progress +measures for grokking via mechanistic interpretability. In The Eleventh International Conference +on Learning Representations, 2023. +[40] nostalgebraist. interpreting gpt: the logit lens. 2020. +13 + +PAGE 14 +[41] Pascal Jr. Tikeng Notsawo, Hattie Zhou, Mohammad Pezeshki, Irina Rish, and Guillaume +Dumas. Predicting grokking long before it happens: A look into the loss landscape of models +which grok. In arXiv preprint: abs/2306.13253, 2023. +[42] OpenAI. Gpt-4 technical report. In arXiv preprint: abs/2303.08774, 2023. +[43] OpenAI. New models and developer products announced at devday. 2023. +[44] Koyena Pal, Jiuding Sun, Andrew Yuan, Byron Wallace, and David Bau. Future lens: Antici- +pating subsequent tokens from a single hidden state. In Jing Jiang, David Reitter, and Shumin +Deng, editors, Proceedings of the 27th Conference on Computational Natural Language Learn- +ing (CoNLL), pages 548–560, Singapore, December 2023. Association for Computational +Linguistics. +[45] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, +Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative +style, high-performance deep learning library. Advances in neural information processing +systems, 32, 2019. +[46] Judea Pearl. Causality. Cambridge university press, 2009. +[47] Alethea Power, Yuri Burda, Harri Edwards, Igor Babuschkin, and Vedant Misra. Grokking: Gen- +eralization beyond overfitting on small algorithmic datasets. In arXiv preprint: abs/2201.02177, +2022. +[48] Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah Smith, and Mike Lewis. Measuring +and narrowing the compositionality gap in language models. In Houda Bouamor, Juan Pino, and +Kalika Bali, editors, Findings of the Association for Computational Linguistics: EMNLP 2023, +pages 5687–5711, Singapore, December 2023. Association for Computational Linguistics. +[49] Ben Prystawski, Michael Y. Li, and Noah Goodman. Why think step by step? reasoning +emerges from the locality of experience. In Thirty-seventh Conference on Neural Information +Processing Systems, 2023. +[50] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. +Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. +[51] Jack W Rae, Sebastian Borgeaud, Trevor Cai, Katie Millican, Jordan Hoffmann, Francis Song, +John Aslanides, Sarah Henderson, Roman Ring, Susannah Young, et al. Scaling language +models: Methods, analysis & insights from training gopher. arXiv preprint arXiv:2112.11446, +2021. +[52] Anna Rogers, Olga Kovaleva, and Anna Rumshisky. A primer in BERTology: What we +know about how BERT works. Transactions of the Association for Computational Linguistics, +8:842–866, 2020. +[53] Daniel Soudry, Elad Hoffer, and Nathan Srebro. The implicit bias of gradient descent on +separable data. In International Conference on Learning Representations, 2018. +[54] Sainbayar Sukhbaatar, Jason Weston, Rob Fergus, et al. End-to-end memory networks. Advances +in neural information processing systems, 28, 2015. +[55] Zhiqing Sun, Xuezhi Wang, Yi Tay, Yiming Yang, and Denny Zhou. Recitation-augmented +language models. In The Eleventh International Conference on Learning Representations, 2023. +[56] Alon Talmor, Yanai Elazar, Yoav Goldberg, and Jonathan Berant. olmpics-on what language +model pre-training captures. Transactions of the Association for Computational Linguistics, +8:743–758, 2020. +[57] Shawn Tan, Yikang Shen, Zhenfang Chen, Aaron Courville, and Chuang Gan. Sparse universal +transformer. In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Proceedings of the 2023 +Conference on Empirical Methods in Natural Language Processing, pages 169–179, Singapore, +December 2023. Association for Computational Linguistics. +14 + +PAGE 15 +[58] Yi Tay, Vinh Q. Tran, Mostafa Dehghani, Jianmo Ni, Dara Bahri, Harsh Mehta, Zhen Qin, Kai +Hui, Zhe Zhao, Jai Gupta, Tal Schuster, William W. Cohen, and Donald Metzler. Transformer +memory as a differentiable search index. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, +and Kyunghyun Cho, editors, Advances in Neural Information Processing Systems, 2022. +[59] Vimal Thilak, Etai Littwin, Shuangfei Zhai, Omid Saremi, Roni Paiss, and Joshua Susskind. The +slingshot mechanism: An empirical study of adaptive optimizers and the grokking phenomenon. +In arXiv preprint: abs/2206.04817, 2022. +[60] Kushal Tirumala, Aram Markosyan, Luke Zettlemoyer, and Armen Aghajanyan. Memorization +without overfitting: Analyzing the training dynamics of large language models. Advances in +Neural Information Processing Systems, 35:38274–38290, 2022. +[61] Vikrant Varma, Rohin Shah, Zachary Kenton, János Kramár, and Ramana Kumar. Explaining +grokking through circuit efficiency. In arXiv preprint: abs/2309.02390, 2023. +[62] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, +Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information +processing systems, 30, 2017. +[63] Jesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian, Daniel Nevo, Yaron Singer, +and Stuart Shieber. Investigating gender bias in language models using causal mediation +analysis. Advances in neural information processing systems, 33:12388–12401, 2020. +[64] Boshi Wang, Xiang Deng, and Huan Sun. Iteratively prompt pre-trained language models for +chain of thought. In Proceedings of the 2022 Conference on Empirical Methods in Natural +Language Processing, pages 2714–2730, Abu Dhabi, United Arab Emirates, December 2022. +Association for Computational Linguistics. +[65] Kevin Ro Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris, and Jacob Steinhardt. +Interpretability in the wild: a circuit for indirect object identification in GPT-2 small. In The +Eleventh International Conference on Learning Representations, 2023. +[66] Xinyi Wang, Alfonso Amayuelas, Kexun Zhang, Liangming Pan, Wenhu Chen, and +William Yang Wang. Understanding the reasoning ability of language models from the perspec- +tive of reasoning paths aggregation. In arXiv preprint: abs/2402.03268, 2024. +[67] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, brian ichter, Fei Xia, Ed H. Chi, +Quoc V Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language +models. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho, editors, +Advances in Neural Information Processing Systems, 2022. +[68] Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony +Moi, Pierric Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, +Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain +Gugger, Mariama Drame, Quentin Lhoest, and Alexander Rush. Transformers: State-of-the-art +natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in +Natural Language Processing: System Demonstrations, pages 38–45, Online, October 2020. +Association for Computational Linguistics. +[69] Wilson Wu, John X. Morris, and Lionel Levine. Do language models plan ahead for future +tokens? In arXiv preprint: abs/2404.00859, 2024. +[70] Wenhan Xiong, Jingyu Liu, Igor Molybog, Hejia Zhang, Prajjwal Bhargava, Rui Hou, Louis +Martin, Rashi Rungta, Karthik Abinav Sankararaman, Barlas Oguz, Madian Khabsa, Han Fang, +Yashar Mehdad, Sharan Narang, Kshitiz Malik, Angela Fan, Shruti Bhosale, Sergey Edunov, +Mike Lewis, Sinong Wang, and Hao Ma. Effective long-context scaling of foundation models, +2023. +[71] Sohee Yang, Elena Gribovskaya, Nora Kassner, Mor Geva, and Sebastian Riedel. Do large +language models latently perform multi-hop reasoning? In arXiv preprint: abs/2402.16837, +2024. +15 + +PAGE 16 +[72] Eric Zelikman, Georges Harik, Yijia Shao, Varuna Jayasiri, Nick Haber, and Noah D. Goodman. +Quiet-star: Language models can teach themselves to think before speaking. In arXiv preprint: +abs/2403.09629, 2024. +[73] Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah Goodman. STar: Bootstrapping reasoning with +reasoning. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho, editors, +Advances in Neural Information Processing Systems, 2022. +[74] Fred Zhang and Neel Nanda. Towards best practices of activation patching in language models: +Metrics and methods. In arXiv preprint: abs/2309.16042, 2024. +[75] Zexuan Zhong, Tao Lei, and Danqi Chen. Training language models with memory augmen- +tation. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language +Processing, pages 5657–5673, Abu Dhabi, United Arab Emirates, December 2022. Association +for Computational Linguistics. +[76] Zexuan Zhong, Zhengxuan Wu, Christopher Manning, Christopher Potts, and Danqi Chen. +MQuAKE: Assessing knowledge editing in language models via multi-hop questions. In Houda +Bouamor, Juan Pino, and Kalika Bali, editors, Proceedings of the 2023 Conference on Empirical +Methods in Natural Language Processing, pages 15686–15702, Singapore, December 2023. +Association for Computational Linguistics. +[77] Chunting Zhou, Pengfei Liu, Puxin Xu, Srini Iyer, Jiao Sun, Yuning Mao, Xuezhe Ma, Avia +Efrat, Ping Yu, LILI YU, Susan Zhang, Gargi Ghosh, Mike Lewis, Luke Zettlemoyer, and Omer +Levy. LIMA: Less is more for alignment. In Thirty-seventh Conference on Neural Information +Processing Systems, 2023. +[78] Xuekai Zhu, Yao Fu, Bowen Zhou, and Zhouhan Lin. Critical data size of language models +from a grokking perspective. In arXiv preprint: abs/2401.10463, 2024. +16 + +PAGE 17 +A +Training Details +All implementations were done with PyTorch [45] and Huggingface Transformers [68]. All model +training runs are done on NVIDIA A6000 and A100 GPUs and last 96 hours at maximum. +B +Effect of Model Scale +We run the experiments on composition with larger model scales with |E| = 2000 and ϕ ∈ +{5.4, 9.0, 18.0}. The results are shown in Figure 7. Overall, it could be seen that scaling up +the model won’t qualitatively change the model’s generalization behaviors, and the main pattern is +that larger models converge in fewer optimization steps, which shares with prior findings [60, 28]. +5000 +10000 +15000 +20000 +25000 +30000 +Optimization step +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Accuracy +8 Layers, 768 Dim +24 Layers, 1024 Dim +36 Layers, 1280 Dim +Train (ID) +Test (ID) +Test (OOD) +(a) ϕ = 18.0. +2500 +5000 +7500 10000 12500 15000 17500 20000 22500 +Optimization step +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Accuracy +8 Layers, 768 Dim +24 Layers, 1024 Dim +36 Layers, 1280 Dim +Train (ID) +Test (ID) +Test (OOD) +(b) ϕ = 5.4. +5000 +10000 +15000 +20000 +25000 +30000 +Optimization step +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Accuracy +8 Layers, 768 Dim +24 Layers, 1024 Dim +36 Layers, 1280 Dim +Train (ID) +Test (ID) +Test (OOD) +(c) ϕ = 9.0. +Figure 7: Results for different model scales across different ϕ. Larger models converge in fewer +optimization steps, but have no qualitative changes on the learned behaviors. +C +Effect of Tokenizations +In the experiments in our main content, tokenization is done by having a unique token for each +entity.12 This is different from how real-world entities are typically tokenized—in practice, entities +are usually multi-token, and different entities could share tokens at different positions. We investigate +12Preliminary experiments show that tokenization of the relations does not exhibit notable impacts, which is +expected since relations are always explicitly given. +17 + +PAGE 18 +the effect of tokenizations on the composition task by having two tokens for each entity (resembling +the first name and last name of a person) in the setting with |E| = 2000 and ϕ = 12.6. We generate a +set of unique first names and a set of unique last names with equal size from which the two tokens for +each entity are randomly chosen (we make sure each entity gets a unique ordered pair of tokens). We +define token multiplicity to be the number of entities that share the same first/last name. For example, +when the size of the set of first/last names is 50, the token multiplicity would be 2000/50 = 40. +Figure 8(a) shows the ID test results, where the training and OOD results are the same from earlier +(training performance saturates quickly, OOD result remains zero). It can be seen that a larger token +multiplicity would delay the generalization, which is expected to a certain degree since the scale +of the model is effectively smaller due to having fewer tokens in the vocabulary. Nevertheless, ID +generalization always happens. We also run linear probing on S[5, r1] throughout training to predict +the second token of the bridge entity b in the setting with token multiplicity 40,13, where the results +are shown in Figure 8(b). It can be seen that the second token of b can be perfectly decoded from +S[5, r1] after grokking, and the decodability improves throughout grokking. This suggests that for +the multi-token case, the model is additionally storing the second token of b into S[5, r1] throughout +grokking, which may be another factor that further delays the speed of grokking. These results also +share with recent findings that in many cases, tokens beyond the immediate next token are linearly +encoded in the hidden states [69, 44, 2, 4]. +In summary, different tokenizations affect the results in rather expected ways, and do not influence +our main findings and conclusions. +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +1.2 +1.4 +Optimization step +1e6 +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Accuracy +Multiplicity: 1 +Multiplicity: 4 +Multiplicity: 8 +Multiplicity: 16 +Multiplicity: 40 +(a) +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +1.2 +1.4 +Optimization step +1e6 +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Accuracy +Test (ID) +Probing accuracy +(b) +Figure 8: (a) ID generalization across different token multiplicity. (b) Probing accuracy on the second +token of b at S[5, r1]. +D +More Details on Circuit Analysis +D.1 +Composition +We run causal tracing on hidden states in layer 1-7 and every position, where the target is the final +prediction state S[8, r2]. The changes in the strengths are monotone and smooth, and we show in +Figure 9 the strengths for the model checkpoint at the start and end of grokking, and also their +difference (same as Figure 4(b)). We also find that after grokking, the state S[5, r2] (which encodes +r2) is not affected by perturbing the input h or r1. +Deriving the generalizing circuit. Starting from the 9 states in layers 0, 5, 8 we can directly eliminate +S[8, h] and S[8, r1] since they have no computational paths connecting to S[8, r2]. S[5, h] can be +eliminated as could be seen by Figure 9(c). The connections from S[0, h] and S[0, r1] to S[5, r2] +could be eliminated as mentioned earlier. +13Recall that S[5, r1] is the state that encodes the bridge entity in the generalizing circuit (Figure 4(a)) +18 + +PAGE 19 +h +r1 +r2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(a) +h +r1 +r2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(b) +h +r1 +r2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(c) +Figure 9: Causal strengths on composition task, with the final prediction S[8, r2] as the target. (a) +Start of grokking. (b) Change during grokking. (c) End of grokking. +D.2 +Comparison +Figure 10 includes the causal tracing results where the target is the prediction state S[8, e2], and +Figure 11 includes the results with the target state S[5, e2]. It can be seen that after grokking, S[5, e2] +does not depend on e1, which gives the generalization circuit in Figure 5(a). +Figure 12 shows the rank (via logit lens) of the three relations {a<, a=, a>} in the label space at state +S[7, a], where we use Recall@3 as the measure. It can be seen that S[7, a] encodes the label space +throughout grokking. +a +e1 +e2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(a) +a +e1 +e2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(b) +a +e1 +e2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(c) +Figure 10: Causal strengths on comparison task, with the final prediction S[8, e2] as the target. (a) +Start of grokking. (b) Change during grokking. (c) End of grokking. +E +Additional Results +E.1 +Weight decay +Figure 13 shows the ID generalization performance when varying the degree of weight decay +(|E| = 2000 and ϕ = 9.0). It can be seen that a larger weight decay can improve the speed of +grokking, and vice versa. +19 + +PAGE 20 +a +e1 +e2 +Layer 0 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(a) +a +e1 +e2 +Layer 0 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(b) +a +e1 +e2 +Layer 0 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(c) +Figure 11: Causal strengths on comparison task, with S[5, e2] as the target. (a) Start of grokking. (b) +Change during grokking. (c) End of grokking. +0 +1 +2 +3 +4 +Optimization step (1e5) +0.5 +0.6 +0.7 +0.8 +0.9 +1.0 +Recall@3 +Test (ID) +Test (OOD) +Figure 12: For the comparison task, S[7, a] encodes the label space throughout grokking. +E.2 +Transformer with parameter sharing +We share the parameters of the first 4 layers and the last 4 layers, similar as in Universal Trans- +former [7]. This would allow the model to share the knowledge in the upper and lower layers. The +results on the setting with |E| = 2000 and ϕ = 12.6 are shown in Figure 14. It could be seen that +the parameter-sharing scheme can unlock OOD generalization, even though it is gained much more +slowly than ID generalization during grokking. +E.3 +Comparison task across different inferred/atomic ratio +Figure 15 includes the result for ϕ ∈{3.6, 7.2, 9.0, 12.6} for the comparison task. It can be seen +that a higher ratio ϕ would give a higher generalization speed, consistent with the results in the +composition task. +F +Complex Reasoning Task +For the complex reasoning task, for each attribute, we include 3% random facts from the comparisons +between ID and OOD entities and the comparisons between ID and ID entities. In total, the training +set contains 18K ID atomic facts, 437K (ID, ID) comparisons, and 108K (ID, OOD) comparisons, +altogether 563K facts (28K on average for each attribute). For translating the facts into natural +20 + +PAGE 21 +0.0 +0.5 +1.0 +1.5 +2.0 +2.5 +3.0 +Optimization step (1e5) +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Accuracy +weight decay: 0.03 +weight decay: 0.1 +weight decay: 0.3 +Figure 13: Effect of weight decay. A larger weight decay can improve the speed of grokking, and +vice versa. +0.00 +0.25 +0.50 +0.75 +1.00 +1.25 +1.50 +Optimization step +1e6 +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Accuracy +Test (ID) +Test (OOD) +Figure 14: OOD accuracy of the shared-parameter transformer model. +language for testing LLMs with non-parametric memory, we always use the attribute age14 (we find +that the choice of attribute does not exhibit notable impact) and the templates “The age of {entity} is +{attribute value}.” and “{entity 1} is {younger than/older than/in the same age as} {entity 2}.” for +atomic facts and comparisons. The entities are mapped to distinct random names generated by a +random generator.15 We also try different mappings (e.g., unique IDs) and templates, and find the +results to be consistent. All (retrieved) facts are randomly permuted and concatenated before being +loaded into the LLM context. +The train/test accuracy, and also the accuracy of inferring the attribute values of the query entities +(which we test using the same format as the atomic facts in training) are included in Figure 16. It +could be seen that, during grokking, the model gradually locates the ground truth attribute values of +the query entities (note that the model is not explicitly encouraged or trained to do this), allowing the +model to solve the problem efficiently with near-perfect accuracy. +14Recall that we test each attribute separately by grouping the facts/queries. +15https://pypi.org/project/names/ +21 + +PAGE 22 +0 +1 +2 +3 +4 +5 +Optimization step (1e5) +0.65 +0.70 +0.75 +0.80 +0.85 +0.90 +0.95 +1.00 +Accuracy +: 12.6 +: 9.0 +: 7.2 +: 3.6 +(a) ID accuracy. +0 +1 +2 +3 +4 +5 +Optimization step (1e5) +0.65 +0.70 +0.75 +0.80 +0.85 +0.90 +0.95 +1.00 +Accuracy +: 12.6 +: 9.0 +: 7.2 +: 3.6 +(b) OOD accuracy. +Figure 15: Results for the comparison task across different ratio ϕ. +0 +1 +2 +3 +4 +5 +6 +7 +Optimization step (1e5) +0.2 +0.4 +0.6 +0.8 +1.0 +Accuracy +Train +Test +Atomic (OOD) +Figure 16: Accuracy on the train and test split, and also the accuracy of inferring the attribute values +of the query entities (Atomic (OOD)) for the complex reasoning task in §5. +NeurIPS Paper Checklist +1. Claims +Question: Do the main claims made in the abstract and introduction accurately reflect the +paper’s contributions and scope? +Answer: [Yes] +Justification: All the findings and claims that we make are based on evidence from a set of +controlled experiments, as presented in the different main sections §3,4,5. We also strive to +make sure that the results are robust to alternative setups through additional experiments +included in Appendix B,C,E. +Guidelines: +• The answer NA means that the abstract and introduction do not include the claims +made in the paper. +• The abstract and/or introduction should clearly state the claims made, including the +contributions made in the paper and important assumptions and limitations. A No or +NA answer to this question will not be perceived well by the reviewers. +• The claims made should match theoretical and experimental results, and reflect how +much the results can be expected to generalize to other settings. +22 + +PAGE 23 +• It is fine to include aspirational goals as motivation as long as it is clear that these goals +are not attained by the paper. +2. Limitations +Question: Does the paper discuss the limitations of the work performed by the authors? +Answer: [Yes] +Justification: We have discussed the potential limitations of our work in Appendix 7. We do +not include it in the main content for the submission due to space limits, and will add it to +the main content in the final version (if the paper is accepted). +Guidelines: +• The answer NA means that the paper has no limitation while the answer No means that +the paper has limitations, but those are not discussed in the paper. +• The authors are encouraged to create a separate "Limitations" section in their paper. +• The paper should point out any strong assumptions and how robust the results are to +violations of these assumptions (e.g., independence assumptions, noiseless settings, +model well-specification, asymptotic approximations only holding locally). The authors +should reflect on how these assumptions might be violated in practice and what the +implications would be. +• The authors should reflect on the scope of the claims made, e.g., if the approach was +only tested on a few datasets or with a few runs. In general, empirical results often +depend on implicit assumptions, which should be articulated. +• The authors should reflect on the factors that influence the performance of the approach. +For example, a facial recognition algorithm may perform poorly when image resolution +is low or images are taken in low lighting. Or a speech-to-text system might not be +used reliably to provide closed captions for online lectures because it fails to handle +technical jargon. +• The authors should discuss the computational efficiency of the proposed algorithms +and how they scale with dataset size. +• If applicable, the authors should discuss possible limitations of their approach to +address problems of privacy and fairness. +• While the authors might fear that complete honesty about limitations might be used by +reviewers as grounds for rejection, a worse outcome might be that reviewers discover +limitations that aren’t acknowledged in the paper. The authors should use their best +judgment and recognize that individual actions in favor of transparency play an impor- +tant role in developing norms that preserve the integrity of the community. Reviewers +will be specifically instructed to not penalize honesty concerning limitations. +3. Theory Assumptions and Proofs +Question: For each theoretical result, does the paper provide the full set of assumptions and +a complete (and correct) proof? +Answer: [NA] +Justification: We do not include theoretical results in this paper. +Guidelines: +• The answer NA means that the paper does not include theoretical results. +• All the theorems, formulas, and proofs in the paper should be numbered and cross- +referenced. +• All assumptions should be clearly stated or referenced in the statement of any theorems. +• The proofs can either appear in the main paper or the supplemental material, but if +they appear in the supplemental material, the authors are encouraged to provide a short +proof sketch to provide intuition. +• Inversely, any informal proof provided in the core of the paper should be complemented +by formal proofs provided in appendix or supplemental material. +• Theorems and Lemmas that the proof relies upon should be properly referenced. +4. Experimental Result Reproducibility +23 + +PAGE 24 +Question: Does the paper fully disclose all the information needed to reproduce the main ex- +perimental results of the paper to the extent that it affects the main claims and/or conclusions +of the paper (regardless of whether the code and data are provided or not)? +Answer: [Yes] +Justification: We provide full details on our data, model and training configurations, and +evaluation setup in §2,3,4,5 and the Appendix. +Guidelines: +• The answer NA means that the paper does not include experiments. +• If the paper includes experiments, a No answer to this question will not be perceived +well by the reviewers: Making the paper reproducible is important, regardless of +whether the code and data are provided or not. +• If the contribution is a dataset and/or model, the authors should describe the steps taken +to make their results reproducible or verifiable. +• Depending on the contribution, reproducibility can be accomplished in various ways. +For example, if the contribution is a novel architecture, describing the architecture fully +might suffice, or if the contribution is a specific model and empirical evaluation, it may +be necessary to either make it possible for others to replicate the model with the same +dataset, or provide access to the model. In general. releasing code and data is often +one good way to accomplish this, but reproducibility can also be provided via detailed +instructions for how to replicate the results, access to a hosted model (e.g., in the case +of a large language model), releasing of a model checkpoint, or other means that are +appropriate to the research performed. +• While NeurIPS does not require releasing code, the conference does require all submis- +sions to provide some reasonable avenue for reproducibility, which may depend on the +nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how +to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe +the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should +either be a way to access this model for reproducing the results or a way to reproduce +the model (e.g., with an open-source dataset or instructions for how to construct +the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case +authors are welcome to describe the particular way they provide for reproducibility. +In the case of closed-source models, it may be that access to the model is limited in +some way (e.g., to registered users), but it should be possible for other researchers +to have some path to reproducing or verifying the results. +5. Open access to data and code +Question: Does the paper provide open access to the data and code, with sufficient instruc- +tions to faithfully reproduce the main experimental results, as described in supplemental +material? +Answer: [Yes] +Justification: We have released the data and code with sufficient documentations alongside +the release. +Guidelines: +• The answer NA means that paper does not include experiments requiring code. +• Please see the NeurIPS code and data submission guidelines (https://nips.cc/ +public/guides/CodeSubmissionPolicy) for more details. +• While we encourage the release of code and data, we understand that this might not be +possible, so “No” is an acceptable answer. Papers cannot be rejected simply for not +including code, unless this is central to the contribution (e.g., for a new open-source +benchmark). +24 + +PAGE 25 +• The instructions should contain the exact command and environment needed to run to +reproduce the results. See the NeurIPS code and data submission guidelines (https: +//nips.cc/public/guides/CodeSubmissionPolicy) for more details. +• The authors should provide instructions on data access and preparation, including how +to access the raw data, preprocessed data, intermediate data, and generated data, etc. +• The authors should provide scripts to reproduce all experimental results for the new +proposed method and baselines. If only a subset of experiments are reproducible, they +should state which ones are omitted from the script and why. +• At submission time, to preserve anonymity, the authors should release anonymized +versions (if applicable). +• Providing as much information as possible in supplemental material (appended to the +paper) is recommended, but including URLs to data and code is permitted. +6. Experimental Setting/Details +Question: Does the paper specify all the training and test details (e.g., data splits, hyper- +parameters, how they were chosen, type of optimizer, etc.) necessary to understand the +results? +Answer: [Yes] +Justification: We provide full details on our data, model and training configurations, and +evaluation setup in §2,3,4,5 and the Appendix. +Guidelines: +• The answer NA means that the paper does not include experiments. +• The experimental setting should be presented in the core of the paper to a level of detail +that is necessary to appreciate the results and make sense of them. +• The full details can be provided either with the code, in appendix, or as supplemental +material. +7. Experiment Statistical Significance +Question: Does the paper report error bars suitably and correctly defined or other appropriate +information about the statistical significance of the experiments? +Answer: [No] +Justification: All of our experimental results are obtained with specified random seeds for +reproducibility. We do not perform extensive additional re-runs of the experiments, however, +we find preliminarily that the results are very robust to randomness in the setup. In addition, +our results exhibit strong patterns from controlled variations in the parameter settings, which +we believe is a side-proof that the results are statistically significant. +Guidelines: +• The answer NA means that the paper does not include experiments. +• The authors should answer "Yes" if the results are accompanied by error bars, confi- +dence intervals, or statistical significance tests, at least for the experiments that support +the main claims of the paper. +• The factors of variability that the error bars are capturing should be clearly stated (for +example, train/test split, initialization, random drawing of some parameter, or overall +run with given experimental conditions). +• The method for calculating the error bars should be explained (closed form formula, +call to a library function, bootstrap, etc.) +• The assumptions made should be given (e.g., Normally distributed errors). +• It should be clear whether the error bar is the standard deviation or the standard error +of the mean. +• It is OK to report 1-sigma error bars, but one should state it. The authors should +preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis +of Normality of errors is not verified. +• For asymmetric distributions, the authors should be careful not to show in tables or +figures symmetric error bars that would yield results that are out of range (e.g. negative +error rates). +25 + +PAGE 26 +• If error bars are reported in tables or plots, The authors should explain in the text how +they were calculated and reference the corresponding figures or tables in the text. +8. Experiments Compute Resources +Question: For each experiment, does the paper provide sufficient information on the com- +puter resources (type of compute workers, memory, time of execution) needed to reproduce +the experiments? +Answer: [Yes] +Justification: We provide details on computing resources in Appendix A. +Guidelines: +• The answer NA means that the paper does not include experiments. +• The paper should indicate the type of compute workers CPU or GPU, internal cluster, +or cloud provider, including relevant memory and storage. +• The paper should provide the amount of compute required for each of the individual +experimental runs as well as estimate the total compute. +• The paper should disclose whether the full research project required more compute +than the experiments reported in the paper (e.g., preliminary or failed experiments that +didn’t make it into the paper). +9. Code Of Ethics +Question: Does the research conducted in the paper conform, in every respect, with the +NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? +Answer: [Yes] +Justification: We believe our research conforms with the Code of Ethics in every respect. +Guidelines: +• The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +• If the authors answer No, they should explain the special circumstances that require a +deviation from the Code of Ethics. +• The authors should make sure to preserve anonymity (e.g., if there is a special consid- +eration due to laws or regulations in their jurisdiction). +10. Broader Impacts +Question: Does the paper discuss both potential positive societal impacts and negative +societal impacts of the work performed? +Answer: [No] +Justification: Our research is at the foundational level which is not tied to particular applica- +tions or deployments, and hence we believe there are no negative societal impacts. +Guidelines: +• The answer NA means that there is no societal impact of the work performed. +• If the authors answer NA or No, they should explain why their work has no societal +impact or why the paper does not address societal impact. +• Examples of negative societal impacts include potential malicious or unintended uses +(e.g., disinformation, generating fake profiles, surveillance), fairness considerations +(e.g., deployment of technologies that could make decisions that unfairly impact specific +groups), privacy considerations, and security considerations. +• The conference expects that many papers will be foundational research and not tied +to particular applications, let alone deployments. However, if there is a direct path to +any negative applications, the authors should point it out. For example, it is legitimate +to point out that an improvement in the quality of generative models could be used to +generate deepfakes for disinformation. On the other hand, it is not needed to point out +that a generic algorithm for optimizing neural networks could enable people to train +models that generate Deepfakes faster. +26 + +PAGE 27 +• The authors should consider possible harms that could arise when the technology is +being used as intended and functioning correctly, harms that could arise when the +technology is being used as intended but gives incorrect results, and harms following +from (intentional or unintentional) misuse of the technology. +• If there are negative societal impacts, the authors could also discuss possible mitigation +strategies (e.g., gated release of models, providing defenses in addition to attacks, +mechanisms for monitoring misuse, mechanisms to monitor how a system learns from +feedback over time, improving the efficiency and accessibility of ML). +11. Safeguards +Question: Does the paper describe safeguards that have been put in place for responsible +release of data or models that have a high risk for misuse (e.g., pretrained language models, +image generators, or scraped datasets)? +Answer: [NA] +Justification: We believe our work poses no such risks. +Guidelines: +• The answer NA means that the paper poses no such risks. +• Released models that have a high risk for misuse or dual-use should be released with +necessary safeguards to allow for controlled use of the model, for example by requiring +that users adhere to usage guidelines or restrictions to access the model or implementing +safety filters. +• Datasets that have been scraped from the Internet could pose safety risks. The authors +should describe how they avoided releasing unsafe images. +• We recognize that providing effective safeguards is challenging, and many papers do +not require this, but we encourage authors to take this into account and make a best +faith effort. +12. Licenses for existing assets +Question: Are the creators or original owners of assets (e.g., code, data, models), used in +the paper, properly credited and are the license and terms of use explicitly mentioned and +properly respected? +Answer: [Yes] +Justification: We have credited the original creators of assets such as the code framework in +Appendix A. +Guidelines: +• The answer NA means that the paper does not use existing assets. +• The authors should cite the original paper that produced the code package or dataset. +• The authors should state which version of the asset is used and, if possible, include a +URL. +• The name of the license (e.g., CC-BY 4.0) should be included for each asset. +• For scraped data from a particular source (e.g., website), the copyright and terms of +service of that source should be provided. +• If assets are released, the license, copyright information, and terms of use in the package +should be provided. For popular datasets, paperswithcode.com/datasets has +curated licenses for some datasets. Their licensing guide can help determine the license +of a dataset. +• For existing datasets that are re-packaged, both the original license and the license of +the derived asset (if it has changed) should be provided. +• If this information is not available online, the authors are encouraged to reach out to +the asset’s creators. +13. New Assets +Question: Are new assets introduced in the paper well documented and is the documentation +provided alongside the assets? +Answer: [Yes] +27 + +PAGE 28 +Justification: We have documented our assets alongside the release. +Guidelines: +• The answer NA means that the paper does not release new assets. +• Researchers should communicate the details of the dataset/code/model as part of their +submissions via structured templates. This includes details about training, license, +limitations, etc. +• The paper should discuss whether and how consent was obtained from people whose +asset is used. +• At submission time, remember to anonymize your assets (if applicable). You can either +create an anonymized URL or include an anonymized zip file. +14. Crowdsourcing and Research with Human Subjects +Question: For crowdsourcing experiments and research with human subjects, does the paper +include the full text of instructions given to participants and screenshots, if applicable, as +well as details about compensation (if any)? +Answer: [NA] +Justification: Our work is not involved with such subjects. +Guidelines: +• The answer NA means that the paper does not involve crowdsourcing nor research with +human subjects. +• Including this information in the supplemental material is fine, but if the main contribu- +tion of the paper involves human subjects, then as much detail as possible should be +included in the main paper. +• According to the NeurIPS Code of Ethics, workers involved in data collection, curation, +or other labor should be paid at least the minimum wage in the country of the data +collector. +15. Institutional Review Board (IRB) Approvals or Equivalent for Research with Human +Subjects +Question: Does the paper describe potential risks incurred by study participants, whether +such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) +approvals (or an equivalent approval/review based on the requirements of your country or +institution) were obtained? +Answer: [NA] +Justification: Our work is not involved with such subjects. +Guidelines: +• The answer NA means that the paper does not involve crowdsourcing nor research with +human subjects. +• Depending on the country in which research is conducted, IRB approval (or equivalent) +may be required for any human subjects research. If you obtained IRB approval, you +should clearly state this in the paper. +• We recognize that the procedures for this may vary significantly between institutions +and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the +guidelines for their institution. +• For initial submissions, do not include any information that would break anonymity (if +applicable), such as the institution conducting the review. +28 diff --git a/results/first-principles-review-20261004/theory-sources/hc2025.pdf b/results/first-principles-review-20261004/theory-sources/hc2025.pdf new file mode 100644 index 0000000000000000000000000000000000000000..0ef542e834705cd70a42695b65f3b00a411e1639 --- /dev/null +++ b/results/first-principles-review-20261004/theory-sources/hc2025.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:706ed949149b3fa30ffdf98e630798e8b4f3add41787ac856a1035de4e60231a +size 7140584 diff --git a/results/first-principles-review-20261004/theory-sources/hc2025.txt b/results/first-principles-review-20261004/theory-sources/hc2025.txt new file mode 100644 index 0000000000000000000000000000000000000000..e06a17037d72d1355fa589a7b1a77a46aa185028 --- /dev/null +++ b/results/first-principles-review-20261004/theory-sources/hc2025.txt @@ -0,0 +1,4697 @@ +PAGE 1 +Published as a conference paper at ICLR 2025 +HYPER-CONNECTIONS +Defa Zhu, Hongzhi Huang, Zihao Huang, Yutao Zeng, Yunyao Mao, Banggu Wu, +Qiyang Min, Xun Zhou +Seed-Foundation-Model Team, ByteDance +{zhudefa,huanghongzhi.51,huangzihao.notabot,yutao.zeng, +maoyunyao.myy,wubanggu,minqiyang,zhouxun}@bytedance.com +ABSTRACT +We present hyper-connections, a simple yet effective method that can serve as an +alternative to residual connections. This approach specifically addresses common +drawbacks observed in residual connection variants, such as the seesaw effect +between gradient vanishing and representation collapse. Theoretically, hyper- +connections allow the network to adjust the strength of connections between fea- +tures at different depths and dynamically rearrange layers. We conduct experiments +focusing on the pre-training of large language models, including dense and sparse +models, where hyper-connections show significant performance improvements +over residual connections. Additional experiments conducted on vision tasks also +demonstrate similar improvements. We anticipate that this method will be broadly +applicable and beneficial across a wide range of AI problems. +1 +INTRODUCTION +100 +200 +300 +400 +500 +Tokens (Billions) +2.275 +2.300 +2.325 +2.350 +2.375 +2.400 +Loss +x1.8 0.027 +Training Loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (Billions) +2.65 +2.70 +2.75 +2.80 +2.85 +Loss +x1.8 0.028 +C4 en val. loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (Billions) +57.5 +60.0 +62.5 +65.0 +67.5 +70.0 +Accuracy (%) +HellaSwag Acc. +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (Billions) +32.5 +35.0 +37.5 +40.0 +42.5 +45.0 +47.5 +Accuracy (%) +ARC Challenge Acc. +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +Figure 1: The performance of the baseline model OLMoE-1B-7B and the model with hyper- +connections, OLMoE-1B-7B-DHC×4. (1) and (2) show the training loss (0.99 EMA smoothed) +and the C4-en validation loss, respectively. Our method converges 1.8 times faster compared to the +baseline and maintains a significant advantage at the 500B tokens. (3) and (4) show the accuracy +curves on HellaSwag and ARC-Challenge, demonstrating the superior performance of the +OLMoE-1B-7B-DHC×4 model. +Deep learning has achieved tremendous success across various domains, where residual connections +(He et al., 2016) have been instrumental in contemporary neural network architectures, including +transformers and CNNs. Residual connections help mitigate the problem of gradient vanishing, +enabling the effective training of very deep networks. However, it is important to acknowledge that +residual connections are not infallible solutions and still present limitations that remain unresolved. +The two main variants of residual connections, Pre-Norm and Post-Norm, each make distinct +trade-offs between gradient vanishing and representation collapse. Pre-Norm applies normalization +operations to the input before each residual block, effectively addressing the problem of gradient +vanishing (Bengio et al., 1994; Glorot & Bengio, 2010). However, it can also lead to the issue of +collapse in deep representations (Liu et al., 2020), where hidden features in deeper layers become +highly similar, diminishing the contribution of additional layers as their number increases. In contrast, +Post-Norm applies normalization after the output of each residual block, reducing the influence of a +hidden state on subsequent layers. This approach can alleviate the issue of representation collapse but +1 + +PAGE 2 +Published as a conference paper at ICLR 2025 +layer ++ ++ +(c) Depth-connections +(b) Hyper-connections +𝛽! +𝛼!,! +𝛼#,# +𝛽# +h# +h! +layer ++ +(d) Width-connections +𝛼#,$ +𝛼!,! +𝛼#,# +𝛼#,! +𝛼!,# +𝛼!,$ +h# +h! +layer ++ +𝛼#,$ +𝛼!,! +𝛼#,# +𝛼#,! +𝛼!,# +𝛼!,$ +h# +h! ++ ++ +𝛽! +𝛽# +: scalar, weights of hyper-connections +: hidden vectors +layer +: attention or FFN ++ ++ +ℎ ++ +layer +(a) Residual connections +Figure 2: Hyper-connections (HC) with an expansion rate of n = 2. (a) Residual connections. +(b) Hyper-connections: β1, β2, α0,0, α0,1, α1,0, α1,1, α2,1, and α2,2 are learnable scalars or scalars +predicted by the network , depending on the specific HC version. These connections enable lateral +information exchange and vertical integration of features across depths. The Transformer with HC +is shown in Fig. 17. They can be decoupled into depth-connections and width-connections. (c) +Depth-connections perform a weighted sum between the layer output and the hidden vector h1. (d) +Width-connections allow information exchange between the hidden vectors h1 and h2. +also reintroduces the problem of vanishing gradients. The vanishing gradient and the representation +collapse are like two ends of a seesaw, with these two variants making respective trade-offs between +these issues. The key issue is that residual connections, including both Pre-Norm and Post-Norm +variants, predefine the strength of connections between the output and input within a layer. +0 +5 +10 +15 +20 +25 +30 + +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 + +Pre-Norm +Hyper-Connection +cos(hi +0, hi+1 +0 +) +Layer Index i +Figure 3: +Cosine similarity be- +tween the input of the current +and the previous layers for the +OLMo-1B +models +(Groeneveld +et al., 2024). The curve represents +the median of similarity, while the +shaded area indicates the range be- +tween the 5th and 95th percentiles. +The red curve shows the model +with Pre-Norm, and the blue curve +shows that with hyper-connections. +Driven by the limitations of residual connections, an important +question arises: Can neural networks autonomously learn the +optimal strength of connections to improve performance? To +address this, we propose hyper-connections (HC), which lead to +significantly improved performance with a negligible increase +in computation and parameters. We will show that both Post- +Norm and Pre-Norm variants can be expressed as specific non- +trainable forms of hyper-connections, as discussed in § 3.1. +The core idea of hyper-connections (HC) is to propose learnable +depth-connections and width-connections, as depicted in Fig.2 +(b). These connections flexibly integrate features vertically +across depths, compared to the residual connections shown in +Fig.2 (a). Depth-connections can be considered as a general- +ized residual connections, assigning weights to the connections +between the inputs and outputs of each layer. To enable the +network to model different depth-connections simultaneously, +we expand the network’s input into n copies, each having its +own depth connection, as shown in Fig. 2 (b). This design +allows multiple hidden vectors to reserve multiple patterns con- +necting preceding layers, as shown in § 4.5. Moreover, we +establish width connections between the n hidden vectors, al- +lowing information exchange between hidden vectors within +the same layer, as shown in Fig. 2 (b). We argue that n (> 1) +hidden states are necessary. As analyzed in Appendix F, the +seesaw effect persists when n = 1, and experiments show that it +does not improve performance, as shown in Fig. 5. In contrast, +when n > 1, hyper-connections can not only learn to adjust the +strength of residuals but also rearrange layers, either sequentially or in parallel, as discussed in § 3.2. +To further enhance flexibility, we introduce dynamic hyper-connections (DHC), enabling the network +to adjust connection weights according to the input. Notably, although HC seem to increase the +network’s width by n times, the additional parameters and computational cost are almost negligible, +as analyzed in Appendix B. The Transformer with HC is shown in Fig. 17. +Our research, primarily centered on large language models (LLMs) pre-training, also extends to visual +generation and classification tasks. Using Pre-Norm as a baseline, we demonstrate the significant +benefits of hyper-connections, including 1B and 7B dense models as well as 7B MoE models, as +2 + +PAGE 3 +Published as a conference paper at ICLR 2025 +detailed in § 4. The benefits are particularly prominent for OLMoE (Muennighoff et al., 2024) as +presented in Fig.1. The model utilizing DHC converges 1.8 times faster and shows an improvement +of 6 points on ARC-Challenge compared to the baseline trained with 500 B tokens. According to our +visualization analysis, as shown in Fig.3, the baseline model tends toward representation collapse, +characterized by high similarity between features of adjacent layers. In contrast, models with HC +exhibit significantly lower similarity between features across adjacent layers and a wider range of +similarities. This suggests that HC enhance the impact of each layer. Further discussion is provided +in §4.5 and in Appendix F. These compelling pieces of evidence demonstrate the generality of the +hyper-connections principle, and we anticipate their applicability in numerous other AI challenges. +2 +METHOD +2.1 +STATIC HYPER-CONNECTIONS +Consider the hidden vector hk−1 ∈Rd (or hk−1 ∈Rd×1) as the input to the k-th layer, with +the initial input h0 to the network. Initially, h0 ∈Rd is replicated n times to form the initial +hyper hidden matrix H0 = +h0 +h0 +. . . +h0⊺∈Rn×d. Here, n is the expansion rate. For +the k-th layer, the input consists of the hyper hidden matrix from the previous layer Hk−1 = +hk−1 +1 +hk−1 +2 +. . . +hk−1 +n +⊺∈Rn×d. Finally, we sum the last hyper hidden matrix row-wise to +obtain the required hidden vector, which is then passed through a final projector to produce the +final output of the network (i.e., a normalization layer and an unembedding layer in transformers). +To simplify the notation in subsequent analysis, we omit the layer index and simply denote the +hyper-hidden matrix as H = (h1 +h2 +. . . +hn)⊺. +The hyper-connections (HC) can be represented by a matrix HC, where each element defines the +connection weight. The matrix is structured as follows: +HC = + +01×1 +B +Am +Ar + += + + + + + + +0 +β1 +β2 +· · · +βn +α1,0 +α1,1 +α1,2 +· · · +α1,n +α2,0 +α2,1 +α2,2 +· · · +α2,n +... +... +... +... +... +αn,0 +αn,1 +αn,2 +· · · +αn,n + + + + + + +∈R(n+1)×(n+1). +(1) +Consider a network layer T , it integrates self-attention layers and feed-forward networks within +transformers. The output of the HC, denoted by ˆH, can be simply formulated as follows: +ˆH = HC(T , H) = B⊺T (H⊺Am)⊺+ Ar +⊺H. +(2) +We use Am as weights to perform a weighted sum on the input H = (h1 +h2 +. . . +hn)⊺to obtain +the input h0 of the current layer T , which is given by: +h⊺ +0 = Am +⊺H, +(3) +While Ar is used to connect H and map it to a hyper hidden matrix H′, as shown below: +H′ = Ar +⊺H. +(4) +Subsequently, the output is given by: +ˆH = B⊺(T h0)⊺+ H′. +(5) +The depth-connections can be decoupled as the following matrix, which is shown at Fig 2 (a): +DC = + +B +diag(Ar) + += + +β1 +β2 +· · · +βn +α1,1 +α2,2 +· · · +αn,n + +∈R2×n, +(6) +where the first row B represents the weights of the output of the current layer T , and the last row +diag(Ar) represents the weights of the input. We use diag(Ar) to represent the flatten vector of the +diagonal entries of Ar. +3 + +PAGE 4 +Published as a conference paper at ICLR 2025 +The width-connections matrix can be defined as follows, which is shown at Fig 2 (b): +WC = (Am +Ar) ∈Rn×(n+1). +(7) +The algorithm that employs hyper-connections is presented in Algorithm 1. +2.2 +DYNAMIC HYPER-CONNECTIONS +The entries of HC can dynamically depend on the input H, which the matrix representation of +dynamic hyper-connections (DHC) is defined as follows: +HC(H) = + +01×1 +B(H) +Am(H) +Ar(H) + +(8) +Similarly, given a layer T and input H, we obtain the output of the DHC as follows: +ˆH = HC(H)(T , H). +(9) +In practice, we combine the dynamic and static matrices to achieve DHC. The dynamic parameters are +obtained through a linear transformation. To stabilize the training process, we introduce normalization +before the linear transformation and apply the tanh activation function after it, scaling it by a small +initial learnable factor. The following equations detail how these dynamic parameters are computed: +H = norm(H) +(10) +B(H) = sβ ◦tanh(HWβ)⊺+ B ∈R1×n +(11) +Am(H) = sα ◦tanh(HWm) + Am ∈Rn×1 +(12) +Ar(H) = sα ◦tanh(HWr) + Ar ∈Rn×n +(13) +Our experiments in § 4 demonstrate that dynamic hyper-connections outperform static hyper- +connections in language modeling tasks. The PyTorch implementations for both the static and +dynamic variants of hyper-connections are detailed in Algorithm 2 and 3. +2.3 +INITIALIZATION +In order to make the initialization of the hyper-connections equivalent to the Pre-Norm residual +connections, we adopt the following initialization strategy. The dynamic parameters Wβ, Wm, and +Wr in Eqs. 11, 12, and 13 are initialized to 0, while the static matrices are initialized as follows: +01×1 +Bk +Am +k +Ar +k + += + +01×1 +11×n +ek mod n +en×n + +, +(14) +where k is the index of the layer. mod denotes the modulo operation. +3 +WHY HYPER-CONNECTIONS +In this section, we elucidate the rationale behind hyper-connections. We explore how variants of +residual connections, namely Pre-Norm and Post-Norm, can be viewed as non-trainable hyper- +connections, and introduce the concept of sequential-parallel duality, demonstrating how hyper- +connections can dynamically optimize layer arrangements to enhance network performance. A +visulize analysis of hyper-connections through an unfolded view is discussed in § 4.5. +3.1 +RESIDUAL CONNECTIONS AS NON-TRAINABLE HYPER-CONNECTIONS +The Pre-Norm and Post-Norm residual connections can be represented as the following hyper- +connections matrices with an expansion rate n = 1: +4 + +PAGE 5 +Published as a conference paper at ICLR 2025 +HCP reNorm = + +0 +1 +1 +1 + +, +(15) +HCP ostNorm = + + +0 +1 +√ +σ2 +i +σ2o+2σio +1 +1 +√ +σ2 +i +σ2o+2σio + +, +(16) +where σi and σo denote the standard deviations of the input and output of the neural network layer, +respectively, and σio is the covariance between them. +For Pre-Norm, its hyper-connection matrix is a 2 × 2 matrix where the bottom right triangular part +is filled with 1 and the rest is a placeholder 0. For Post-Norm, the weights depend on the variances +and covariance of the input and output, forming a 2 × 2 matrix. Therefore, their hyper-connection +matrices are non-trainable. In this work, we propose hyper-connections that can be (n + 1) × (n + 1) +matrices, with weights that are trainable or even predicted based on the input. The complete derivation +is provided in Appendix G. +3.2 +SEQUENTIAL-PARALLEL DUALITY +Given a series of neural network modules, we have the option to arrange them either sequentially or +in parallel. However, hyper-connections offer an approach that learns to rearrange these layers in a +configuration blending both sequential and parallel arrangements. +layer 1 ++ ++ +(a) Sequential Arrangement += +layer 1 ++ +(b) Parallel Arrangement += ++ +layer 2 ++ += +layer 2 ++ ++ += ++ +Figure 4: Sequential and parallel arrangements of hyper-connections with n = 2. +Without loss of generality, we set the expansion rate to n = 2. If the hyper-connections are learned as +the following matrix, the neural network will be arranged sequentially: +HC = + 0 +1 +1 +1 +1 +0 +0 +0 +1 +! +. +(17) +In this case, the depth connection degenerates into a residual connection, as shown in Fig. 4 (a). +When the hyper-connections for odd and even layers (with layer numbering starting from 1) are de- +fined by the following matrices, the neural network will be arranged in parallel every two consecutive +layers, similar to the arrangement of parallel transformer blocks in transformers (Wang, 2021), as +shown in Fig. 4 (b). The general and complete derivation is provided in Appendix H. +HCodd = + 0 +1 +0 +1 +1 +1 +1 +1 +1 +! +, +(18) +HCeven = + 0 +0 +1 +0 +1 +0 +1 +0 +1 +! +. +(19) +Thus, learning the hyper-connection matrix in various forms can create layer arrangements that +surpass traditional sequential and parallel configurations, resulting in a soft-mixture or even dynamic +5 + +PAGE 6 +Published as a conference paper at ICLR 2025 +arrangement. For static hyper-connections, the layer arrangement within the network remains fixed +after training. In contrast, dynamic hyper-connections allow the arrangement to adapt dynamically +for each token. +4 +RESULTS +100 +150 +200 +250 +300 +350 +400 +450 +500 +Tokens (Billions) +2.40 +2.45 +2.50 +2.55 +2.60 +Training Loss +Training Loss vs Tokens +OLMo-1B-baseline +OLMo-1B-DHCx1 +OLMo-1B-DHCx2 +OLMo-1B-DHCx4 +OLMo-1B-DHCx8 +100 +150 +200 +250 +300 +350 +400 +450 +500 +Tokens (Billions) +2.40 +2.45 +2.50 +2.55 +2.60 +Training Loss +Training Loss vs Tokens +OLMo-1B-baseline +OLMo-1B-DHCx1 W/O tanh +OLMo-1B-DHCx2 W/O tanh +OLMo-1B-DHCx4 W/O tanh +OLMo-1B-DHCx8 W/O tanh +Figure 5: Comparison of training loss curves for different expansion rate. The left subfigure includes +models with dynamic hyper-connections (DHC) at various expansion rates, while the right subfigure +shows the effect of omitting the tanh function. Both subfigures illustrate how increasing the expansion +rate leads to improved training loss performance over 500B tokens. Results are smoothed using an +exponential moving average with a coefficient of 0.99. +Table 1: Ablation study on expansion rates n with training on 500 B tokens. +Methods +V2 Eval +Loss ↓ +V2 Eval +PPL ↓ +V3 Eval +Loss ↓ +V3 Eval +PPL ↓ +Down Stream +Avg, Acc. ↑ +OLMo-1B +2.811 +18.023 +2.544 +14.229 +62.5 +OLMo-1B-DHC×1 W/O tanh +2.822 +18.270 +2.556 +14.428 +62.3 +OLMo-1B-DHC×2 W/O tanh +2.792 +17.663 +2.537 +14.033 +63.8 +OLMo-1B-DHC×4 W/O tanh +2.779 +17.451 +2.516 +13.844 +64.4 +OLMo-1B-DHC×8 W/O tanh +2.777 +17.425 +2.514 +13.819 +63.8 +OLMo-1B-DHC×1 +2.819 +18.125 +2.556 +14.418 +62.3 +OLMo-1B-DHC×2 +2.802 +17.950 +2.534 +14.114 +63.0 +OLMo-1B-DHC×4 +2.781 +17.509 +2.514 +13.826 +63.8 +OLMo-1B-DHC×8 +2.778 +17.445 +2.516 +13.843 +62.8 +We primarily conduct experiments on pre-training of large language model, including dense and +Mixture-of-Experts (MoE) (Shazeer et al., 2017) models, and extend to visual generation and +classification tasks. Due to space constraints, we include the vision experiments in the Appendix E. +Experiment Settings. We employ the experimental setup outlined by OLMo (Groeneveld et al., +2024) for dense models and by OLMoE (Muennighoff et al., 2024) for MoE models. For dense +models, we use dolmap-v1.5-sample (Soldaini et al., 2024) as our training dataset. We conduct +ablation studies on 1B models and assess the effectiveness of our method at the 7B model scale. For +MoE models, we train the OLMoE-1B-7B model, both with and without hyper-connections, on the +OLMOE-MIX dataset. These models activate 1.3B out of a total of 7B parameters. All experiments +are trained on 500B tokens. +Implementation. We maintain the training configuration of the baseline model, replacing the residual +connections with hyper-connections. The static component in Eqs. 1, 11, 12, 13 does not utilize weight +decay, whereas the dynamic component does. Since the hyper hidden vectors of the final transformer +block are ultimately summed, we ensure that the standard deviation (std) of the output (before the +final layernorm and unembedding layers) remains consistent with the original. At initialization, we +scale the std of the weights of the output module at all layers, including those of the second linear +layer of the feedforward network and the output projector of the attention module, by a factor of √n, +6 + +PAGE 7 +Published as a conference paper at ICLR 2025 +where n represents the expansion rate. The parameters and computational overhead introduced by +hyper-connections is negligible, see Table. 7 and 8. +Metrics. In accordance with the methodology of OLMo (Groeneveld et al., 2024), we report +the average perplexities (PPL) and losses on both the V2 and V3 validation sets, along with the +average metrics for zero-shot evaluation on downstream benchmarks (refer to Table 13). We observe +significant volatility in the zero-shot performance indicators for the datasets (highlighted in grey +in Table 13), with fluctuations exceeding 20% across neighboring checkpoints. For more reliable +and consistent results, we excludes these volatile datasets from our analysis. For the MoE models, +in line with OLMoE, we also present losses on V3 validation sets, and accuracies on downstream +benchmarks (refer to Table 14). +4.1 +ABLATION STUDY +We use the dynamic hyperconnections with an expansion rate of n = 4 and include the tanh function +as the default method, marked with the suffix -DHC, while -SHC denotes static hyper-connections. +The evaluation results are presented in Table 1, and the training loss curves are depicted in Fig. 5. We +observe that with an expansion rate of n = 1, the performance of DHC is inferior to the baseline. +However, for n > 1, DHC significantly outperforms the baseline, achieving superior results at n = 4, +with the increase to n = 8 providing minimal additional benefits. Notably, OLMo-1B-DHC×8 W/O +tanh excels on both V2 and V3 validation sets, with a reduction in V2 Eval Loss by 0.034 and +V3 Eval Loss by 0.029 compared to the baseline. Furthermore, the decline rate of training losses +for DHC (n ≥2) is steeper than that of the baseline, and DHC demonstrates greater stability, with no +spikes observed in any DHC experiments. +Static and dynamic hyper-connections. Table 2 presents an ablation study comparing SHC and +DHC. All hyper-connection (HC) variants significantly outperform the baseline. At an expansion +rate of 2, the improvements of DHC and SHC are similar. However, at an expansion rate of 4, DHC +performs notably better than SHC. +Table 2: Ablation study on static and dynamic hyper-connections with training on 500 B tokens. +Methods +V2 Eval +Loss ↓ +V2 Eval +PPL ↓ +V3 Eval +Loss ↓ +V3 Eval +PPL ↓ +Down Stream +Avg, Acc. ↑ +OLMo-1B +2.811 +18.023 +2.544 +14.229 +62.5 +OLMo-1B-SHC×2 +2.799 +17.778 +2.538 +14.152 +63.4 +OLMo-1B-DHC×2 +2.802 +17.950 +2.534 +14.114 +63.0 +OLMo-1B-DHC×2 W/O tanh +2.792 +17.663 +2.529 +14.033 +63.8 +OLMo-1B-SHC×4 +2.791 +17.671 +2.528 +14.025 +63.6 +OLMo-1B-DHC×4 +2.781 +17.509 +2.515 +13.826 +63.8 +OLMo-1B-DHC×4 W/O tanh +2.779 +17.451 +2.516 +13.844 +64.4 +The importance of B and WC. As shown in Table 3, not training WC leads to significant per- +formance declines, with the V2 loss increasing by 0.021 and the V3 loss by 0.017, as seen when +comparing the 4th and 6th lines of Table 3. In contrast, the impact is less pronounced when B is not +trained. Therefore, ensuring the trainability of both WC and B is crucial. +4.2 +COMPARISON WITH RELATED WORKS +We implemented the Altup (Baykal et al., 2024) and ResiDual (Xie et al., 2023) methods in OLMo. +Altup is motivated to widen the hidden dimension while maintaining low computation cost by passing +only a part of hidden state to transformer blocks. By contrast, ResiDual is proposed to combine both +Pre- and Post-Norm in a two-stream style. Both methods expand the hidden size by n times with +negligible computational overhead, with ResiDual expanding it exactly 2 times. For a fair comparison, +we set n = 2 in our experiments. Unfortunately, although these methods show gains in the early +stages of training, they are gradually surpassed by the baseline, as demonstrated by the results in +Table 4 and the training loss curves in Fig. 15. +7 + +PAGE 8 +Published as a conference paper at ICLR 2025 +Table 3: Ablation study on OLMo-1B-DHC×4. In the B or WC column, the symbol "✗" denotes +parameters that are not trainable from initialization. +WC +B +Tanh +V2 Eval +Loss ↓ +V2 Eval +PPL ↓ +V3 Eval +Loss ↓ +V3 Eval +PPL ↓ +Down Stream +Avg, Acc. ↑ +✗ +✓ +✗ +2.804 +17.912 +2.537 +14.145 +62.5 +✓ +✗ +✗ +2.781 +17.493 +2.518 +13.874 +63.6 +✓ +✓ +✗ +2.779 +17.773 +2.516 +13.823 +64.4 +✗ +✓ +✓ +2.802 +17.914 +2.532 +14.072 +63.4 +✓ +✗ +✓ +2.783 +17.504 +2.520 +13.906 +63.4 +✓ +✓ +✓ +2.781 +17.835 +2.515 +13.807 +63.8 +Table 4: Performance of related methods on OLMo-1B models. +Methods +V2 Eval +Loss ↓ +V2 Eval +PPL ↓ +V3 Eval +Loss ↓ +V3 Eval +PPL ↓ +Down Stream +Avg, Acc. ↑ +OLMo-1B +2.811 +18.023 +2.544 +14.229 +62.5 +OLMo-1B-ResiDual +2.825 +18.375 +2.551 +14.346 +62.0 +OLMo-1B-Altup×2 +2.827 +18.268 +2.558 +14.454 +62.4 +OLMo-1B-DHC×2 +2.802 +17.950 +2.534 +14.114 +63.0 +OLMo-1B-DHC×2 W/O tanh +2.792 +17.663 +2.529 +14.033 +63.8 +4.3 +7B MODELS +100 +200 +300 +400 +500 +Tokens (Billions) +2.2 +2.3 +2.4 +Loss +Training Loss +OLMo-7B +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (Billions) +2.5 +2.6 +2.7 +Loss +C4-en Loss +OLMo-7B +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (Billions) +55 +60 +65 +70 +Accuracy (%) +HellaSwag Acc. +OLMo-7B +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (Billions) +82 +84 +86 +88 +90 +92 +Accuracy (%) +SciQ Acc. +OLMo-7B +OLMo-7B-DHCx4 +Figure 6: (1) and (2) Training loss (0.99 EMA smoothed) and C4-en validation loss for OLMo-7B and +OLMo-7B-DHC×4 models. (3) and (4) Accuracy curves on hellaswag and sciq, demonstrating +the superior performance of the OLMo-7B-DHC×4 model. +We evaluate the effectiveness of hyper-connections on the 7B model, training a model with DHCs with +an expansion rate of 4, denoted as OLMo-7B-DHC×4. According to Table 5, OLMo-7B-DHC×4 +significantly outperforms the baseline OLMo-7B model in all average metrics. In the V2 evaluation, +OLMo-7B-DHC×4 shows improvements of 0.022 for loss and 0.293 for PPL. Furthermore, the +average score of downstream benchmarks 0.710 surpasses the baseline 0.701, with the results of +specific tasks shown in Fig. 10. +Based on Fig 6, the OLMo-7B-DHC×4 model consistently shows better metrics compared to baseline, +including training and validation loss and accuracy in downstream benchmarks. Notably, after 400 B +tokens, the model maintains its improvement without the gains diminishing. This indicates that the +OLMo-7B-DHC×4 model continues to provide consistent benefits in reducing loss, even at higher +token counts. Furthermore, according to Fig. 6, the baseline model exhibits frequent spikes, while +our model with DHCs shows no spikes throughout the training. This shows that our approach not +only achieves better loss but also ensures more stable training. +4.4 +MOE MODELS +We evaluate the effectiveness of hyper-connections on the Mixture-of-Experts (MoE) model. We +retrain the original OLMoE-1B-7B model as the baseline and train a model that applies Dynamic +8 + +PAGE 9 +Published as a conference paper at ICLR 2025 +Table 5: Performance of 7B models. FLOPs refers to the computation per token in the forward pass. +Methods +Params +(B) +FLOPs +(G) +V2 +Loss ↓ +V2 +PPL ↓ +V3 +Loss ↓ +V3 +PPL ↓ +Tasks Avg. +Acc. ↑ +OLMo-7B +6.9 +13.36 +2.581 +14.316 +2.322 +11.324 +70.1 +OLMo-7B-DHC×4 +6.9 +13.38 +2.559 +14.023 +2.304 +11.120 +71.0 +Hyper-Connections (DHC) with n = 4, replacing the residual connections. The full results are shown +in Fig. 9, which illustrates that hyper-connections outperform residual connections in almost all +metrics. In many metrics, our method requires only half of the training tokens to achieve the same +performance as the baseline. Fig. 1 and Table 6 highlight some of the results, such as a reduction +in training loss of approximately 0.027, a reduction in loss on the C4-en validation set of 0.028, an +improvement of 6 points on the ARC-Challengeand an improvement of 1.2 points on MMLU Var. +Table 6: Downstream evaluations for MoE models training with 500B tokens under the OLMoE +evaluation setting. ARC-C stands for ARC-Challenge, and ARC-E for ARC-Easy. MMLU Var is +a modified version of MMLU that includes varying few-shot examples, providing stable feedback +during early training, as outlined in the OLMoE setting (Muennighoff et al., 2024). +Methods +MMLU +Var +Hella- +Swag +ARC-C +ARC-E +PIQA +Wino- +Grande +BoolQ +OLMoE-1B-7B +38.5 +69.5 +41.8 +72.8 +77.6 +64.4 +65.4 +OLMoE-1B-7B-DHC×4 +39.7 +70.2 +47.8 +76.7 +78.2 +64.6 +68.5 +4.5 +VISUALIZATION ANALYSIS +0 +4 +8 12 16 20 24 28 32 +Hyper-Connection +0 +4 +8 +12 +16 +20 +24 +28 +32 +0 +4 +8 12 16 20 24 28 32 +Post-Norm +0 +4 +8 +12 +16 +20 +24 +28 +32 +0 +4 +8 12 16 20 24 28 32 +Pre-Norm +0 +4 +8 +12 +16 +20 +24 +28 +32 +0 +4 +8 12 16 20 24 28 32 +Pre-Norm PTB +0 +4 +8 +12 +16 +20 +24 +28 +32 +0 +4 +8 12 16 20 24 28 32 +Two-hop Residual +0 +4 +8 +12 +16 +20 +24 +28 +32 +1.0 +0.5 +0.0 +0.5 +1.0 +←- PTB +Figure 7: Visualization of connection matrices for hyper-connections and various related baseline +methods. The attention layers, which have odd ids, are marked with green tick marks. +In this section, we investigate the learned hyper-connection weights and show how the output of +the former layer contributes to the latter ones. To this end, we convert hyper-connections to dense +connections cross layers. Consider the input hidden vectors hk +0 in k-th layer, it can be unfolded as a +weighted summation over previous layer outputs: +hk +0 = +k−1 +X +j=0 +c(0) +kj T j(hj +0), +(20) +where c(0) +kj describes how much layer-j (T j) contributes to layer-k’s input hk +0. Then, C(0) denotes +a dense connection weight matrix. In particular, let layer-0 be the word embedding and T 0 be an +identity mapping, layer-L+1 be the hidden state before the unembedding layer, which is a summation +over the last hidden vectors, i.e., hL+1 +0 += P +j hL +j . +OLMo-1B-DHC×4 model is adopted for visualization. We take the checkpoint at 500B tokens and +forward random validation text to obtain dynamic hyper-connection weights. In addition, we show +connection patterns for some related baseline methods. Finally, the visualization is illustrated in +Fig. 13. We present the following findings, with more detailed discussions provided in Appendix F. +9 + +PAGE 10 +Published as a conference paper at ICLR 2025 +Connection patterns for baseline methods. For Pre-Norm baseline, the connection matrix is simply +a lower triangular matrix with diagonal elements erased, because each transformer layer joins the +residual equally. In the Pre-Norm parallel transformer block (PTB) baseline, the connection matrix +appears jagged because the input to the FFN layer does not depend on the output of the previous +attention layer. For Post-Norm baseline, the connection only holds for adjacent layers, as the weight +for bottom layers decays every time the residual passes a post-norm layer. For the two-hop residual +baseline (Ma et al., 2024), the outputs of attention layers are not added to residual and only contributes +to the next one FFN layer, resulting in a vertical strip pattern in the connection matrix. +Λ-shaped connection pattern. In the connection matrix for hyper-connections, a long-term decay +pattern can be observed, where layers are generally preferred to rely on a few adjacent layer outputs. +Moreover, the bottom layers (e.g. layer 0,2) are observed frequently used in most of subsequent layers. +Therefore, the two patterns together form a Λ-shaped connection pattern. Note that the long-term +decay pattern is a Post-Norm style pattern, while the frequently accessed pattern is Pre-Norm style, +indicating that the hyper-connection introduces a free mixture of Pre- and Post-Norm architecture. +Input word embedding is eliminated from model output. As per the first column in the connection +matrix for layer inputs, the input word embedding contributes to most of the layers except for the final +one. This last layer, which products the model’s output, is used for next token prediction. In most +cases, keeping a component of input embedding in model output is harmful to next token prediction, +especially when using a tied word embedding such as that employed by OLMo-1B. Similar results +are found in previous works (Ma et al., 2023). +Parallel transformer blocks are observed. As discussed in § 3.2, parallel transformer block, which +performs attention and FFN in parallel, is a special case for hyper-connection. In practice, PTB-like +patterns, which can be identified by the local jagged pattern, are surprisingly observed to be learned +by hyper-connections. For instance, layer 11 has a minimal contribution to the input of layer 12 (refer +to row 12 in the hyper-connection connection matrix). This suggests that layers 11 and 12 can operate +in parallel, thereby forming a PTB module. +Attention layers tend to have fewer long-term connections. It is observed that attention layers at +the bottom barely have long-term contribution, a trend that persists until layer 17. Upon examining +the connection matrix for hyper hiddens (refer to Fig. 13 in the appendix), it’s evident that the outputs +of the FFN layers have significantly greater magnitudes than those of the attention layers. This pattern +resembles a two-hop residual connection design, wherein the attention output contributes to the input +of the following FFN layer, but doesn’t join the main residual path. +5 +RELATED WORK +Transformers (Vaswani et al., 2017) have revolutionized various fields, particularly natural language +processing and computer vision. They rely heavily on residual connections to facilitate the training +of deep models. Our hyper-connections approach can replace residual connections, providing stable +training and consistent improvements in both natural language processing and computer vision. +The issues of gradient vanishing and representation collapse (Bengio et al., 1994; Glorot & +Bengio, 2010; Liu et al., 2020) have been extensively studied. The combinations of normalization +techniques (Ioffe & Szegedy, 2015; Ba et al., 2016) and residual connections (He et al., 2016), +like Pre-Norm and Post-Norm, actually reflects different emphases in solving these two issues. +However, despite these advancements, the fundamental trade-off between gradient vanishing and +representation collapse in deep networks remains a critical challenge. Building on these findings, our +work introduces a novel approach that enables neural networks to autonomously learn the optimal +strength of connections, potentially improving both gradient stability and representation quality. +6 +CONCLUSION +In conclusion, we have introduced hyper-connections as an effective alternative to residual connections +in transformers. Our analysis reveals that hyper-connections not only overcome the limitations of +residuals but also enable dynamic adjustments in network architecture. Experimental results confirm +their promising benefits across various tasks, including pre-training of large language model, image +generation, and image classification. +10 + +PAGE 11 +Published as a conference paper at ICLR 2025 +ACKNOWLEDGEMENTS +This research was conducted at ByteDance Inc. We are grateful for the suggestions and assistance +provided by Yaowei Zheng, Yuyu Zhang, Yunshui Li, Xiang Li, Bairen Yi, Zhenyi Lu and Xintian +Han. +REFERENCES +Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. In arXiv preprint +arXiv:1607.06450, 2016. +Cenk Baykal, Dylan Cutler, Nishanth Dikkala, Nikhil Ghosh, Rina Panigrahy, and Xin Wang. +Alternating updates for efficient transformers. Advances in Neural Information Processing Systems, +36, 2024. +Yoshua Bengio, Patrice Simard, and Paolo Frasconi. Learning long-term dependencies with gradient +descent is difficult. IEEE transactions on neural networks, 5(2), 1994. +Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. Piqa: Reasoning about physical +commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, +volume 34, 2020. +Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina +Toutanova. Boolq: Exploring the surprising difficulty of natural yes/no questions. arXiv preprint +arXiv:1905.10044, 2019. +Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and +Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge. +arXiv:1803.05457v1, 2018. +Ido Dagan, Oren Glickman, and Bernardo Magnini. The pascal recognising textual entailment +challenge. In Machine learning challenges workshop. Springer, 2005. +Marie-Catherine De Marneffe, Mandy Simons, and Judith Tonhauser. The commitmentbank: In- +vestigating projection in naturally occurring discourse. In proceedings of Sinn und Bedeutung, +volume 23, 2019. +Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale +hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition. +Ieee, 2009. +Bill Dolan and Chris Brockett. Automatically constructing a corpus of sentential paraphrases. In +Third international workshop on paraphrasing (IWP2005), 2005. +Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas +Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An +image is worth 16x16 words: Transformers for image recognition at scale. +arXiv preprint +arXiv:2010.11929, 2020. +Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural +networks. In Proceedings of the thirteenth international conference on artificial intelligence and +statistics. JMLR Workshop and Conference Proceedings, 2010. +Dirk Groeneveld, Iz Beltagy, Pete Walsh, Akshita Bhagia, Rodney Kinney, Oyvind Tafjord, +Ananya Harsh Jha, Hamish Ivison, Ian Magnusson, Yizhong Wang, et al. Olmo: Accelerat- +ing the science of language models. arXiv preprint arXiv:2402.00838, 2024. +Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image +recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, +2016. +11 + +PAGE 12 +Published as a conference paper at ICLR 2025 +Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob +Steinhardt. Measuring massive multitask language understanding. Proceedings of the International +Conference on Learning Representations (ICLR), 2021. +Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by +reducing internal covariate shift. In International conference on machine learning. PMLR, 2015. +Matt Gardner Johannes Welbl, Nelson F. Liu. Crowdsourcing multiple choice science questions. +2017. +Vijay Korthikanti, Jared Casper, Sangkug Lym, Lawrence McAfee, Michael Andersch, Mohammad +Shoeybi, and Bryan Catanzaro. Reducing activation recomputation in large transformer models. +arXiv preprint arXiv:2205.05198, 2022. +Liyuan Liu, Xiaodong Liu, Jianfeng Gao, Weizhu Chen, and Jiawei Han. Understanding the difficulty +of training transformers. arXiv preprint arXiv:2004.08249, 2020. +Haoyan Ma, Xiang Li, Xia Yuan, and Chunxia Zhao. Denseformer: A dense transformer framework +for person re-identification. IET Computer Vision, 17(5), 2023. +Xuezhe Ma, Xiaomeng Yang, Wenhan Xiong, Beidi Chen, Lili Yu, Hao Zhang, Jonathan May, Luke +Zettlemoyer, Omer Levy, and Chunting Zhou. Megalodon: Efficient llm pretraining and inference +with unlimited context length. arXiv preprint arXiv:2404.08801, 2024. +Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. Can a suit of armor conduct +electricity? a new dataset for open book question answering. In EMNLP, 2018. +Niklas Muennighoff, Luca Soldaini, Dirk Groeneveld, Kyle Lo, Jacob Morrison, Sewon Min, Weijia +Shi, Pete Walsh, Oyvind Tafjord, Nathan Lambert, Yuling Gu, Shane Arora, Akshita Bhagia, +Dustin Schwenk, David Wadden, Alexander Wettig, Binyuan Hui, Tim Dettmers, Douwe Kiela, Ali +Farhadi, Noah A. Smith, Pang Wei Koh, Amanpreet Singh, and Hannaneh Hajishirzi. Olmoe: Open +mixture-of-experts language models, 2024. URL https://arxiv.org/abs/2409.02060. +William Peebles and Saining Xie. Scalable diffusion models with transformers. arXiv preprint +arXiv:2212.09748, 2022. +Melissa Roemmele, Cosmin Adrian Bejan, and Andrew S Gordon. Choice of plausible alternatives: +An evaluation of commonsense causal reasoning. In 2011 AAAI spring symposium series, 2011. +Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. Winogrande: An +adversarial winograd schema challenge at scale. Communications of the ACM, 64(9), 2021. +Maarten Sap, Hannah Rashkin, Derek Chen, Ronan LeBras, and Yejin Choi. Socialiqa: Commonsense +reasoning about social interactions. arXiv preprint arXiv:1904.09728, 2019. +N Shazeer, A Mirhoseini, K Maziarz, A Davis, Q Le, G Hinton, and J Dean. The sparsely-gated +mixture-of-experts layer. Outrageously large neural networks, 2017. +Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew Y Ng, and +Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. +In Proceedings of the 2013 conference on empirical methods in natural language processing, 2013. +Luca Soldaini, Rodney Kinney, Akshita Bhagia, Dustin Schwenk, David Atkinson, Russell Authur, +Ben Bogin, Khyathi Chandu, Jennifer Dumas, Yanai Elazar, et al. Dolma: An open corpus of three +trillion tokens for language model pretraining research. arXiv preprint arXiv:2402.00159, 2024. +Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant. Commonsenseqa: A question +answering challenge targeting commonsense knowledge. arXiv preprint arXiv:1811.00937, 2018. +Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz +Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information +processing systems, 2017. +12 + +PAGE 13 +Published as a conference paper at ICLR 2025 +Ben Wang. Mesh-Transformer-JAX: Model-Parallel Implementation of Transformer Language +Model with JAX. +https://github.com/kingoflolz/mesh-transformer-jax, +May 2021. +Mitchell Wortsman, Peter J Liu, Lechao Xiao, Katie Everett, Alex Alemi, Ben Adlam, John D +Co-Reyes, Izzeddin Gur, Abhishek Kumar, Roman Novak, et al. Small-scale proxies for large-scale +transformer training instabilities. arXiv preprint arXiv:2309.14322, 2023. +Shufang Xie, Huishuai Zhang, Junliang Guo, Xu Tan, Jiang Bian, Hany Hassan Awadalla, Arul +Menezes, Tao Qin, and Rui Yan. Residual: Transformer with dual residual connections. arXiv +preprint arXiv:2304.14802, 2023. +Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. Hellaswag: Can a machine +really finish your sentence? arXiv preprint arXiv:1905.07830, 2019. +Biao Zhang and Rico Sennrich. +Root mean square layer normalization. +Advances in Neural +Information Processing Systems, 32, 2019. +13 + +PAGE 14 +Published as a conference paper at ICLR 2025 +A +TRANSFORMER WITH HYPER-CONNECTIONS +Attention ++ ++ ++ +(b) Transformer with Hyper-Connections +ℎ! +Repeat +Attention +FFN +Attention +FFN ++ ++ ++ ++ +(b) Transformer with Residual Connections +FFN ++ ++ ++ +Attention ++ ++ ++ +FFN ++ ++ ++ ++ +𝛼",! +" +𝛽" +" +h" +! +𝛼$,! +" +𝛼"," +" +𝛼$," +" +𝛼",$ +" +𝛼$,$ +" +𝛽$ +" +h$ +! +𝛼",! +$ +𝛽" +$ +h" +" +𝛼$,! +$ +𝛼"," +$ +𝛼$," +$ +𝛼",$ +$ +𝛼$,$ +$ +𝛽$ +$ +h$ +" +𝛼",! +% +𝛽" +% +h" +$ +𝛼$,! +% +𝛼"," +% +𝛼$," +% +𝛼",$ +% +𝛼$,$ +% +𝛽$ +% +h$ +$ +𝛼",! +& +𝛽" +& +h" +% +𝛼$,! +& +𝛼"," +& +𝛼$," +& +𝛼",$ +& +𝛼$,$ +& +𝛽$ +& +h$ +% +h" +' +h$ +( +ℎ' +ℎ! +ℎ' +Figure 8: Comparison between transformers with hyper-connections and that with residual connec- +tions. +14 + +PAGE 15 +Published as a conference paper at ICLR 2025 +B +PARAMETERS, COMPUTATION AND MEMORY FOOTPRINT ANALYSIS +Static Hyper-Connections. All learnable parameters are included in the hyper-connection matrix +HC in Eq. 1. The number of parameters in one HC is given by: +|θSHC| = |θB| + |θA| = n + n · (n + 1) = n · (n + 2), +(21) +where n is the expansion rate, |θB| is the number of parameters in B in SHC, and |θA| is the number +of parameters in A. Each layer contains two hyper-connection modules (one for the self attention +and one for the feedforward network). Thus, the number of extra parameters is: +Pextra = |θSHC| × 2 × L, +(22) +where L is the number of layers. For example, in OLMo-1B-SHC×4, Pextra = 4×(4+2)×2×16 = +768. +Dynamic Hyper-Connections. The parameters of DHC are defined in Eqs. 10, 11, 12, and 13, and +the number of parameters is given by: +|θDHC| = |θnorm| + |sβ| + |θWβ| + |θB| + |sα| + |θWm| + |θAm| + |θWr| + |θAr| +(23) += |θnorm| + 1 + dmodel + n + 1 + dmodel + n + dmodel × n + n × n +(24) += |θnorm| + dmodel × (n + 2) + n × (n + 2) + 2, +(25) +where dmodel is the dimension of the hidden states in the transformer, and |θnorm| depends on the +type of normalization module. In OLMo models, there are no parameters for normalization, so +|θnorm| = 0. In OLMoE, |θnorm| = dmodel. Similar to the static hyper-connections, the number of +extra parameters is: +Pextra = |θDHC| × 2 × L, +(26) +For example, for OLMo-1B-DHC×4, Pextra = (0 + 2048 × (4 + 2) + 4 × (4 + 2) + 2) × 2 × 16 = +394, 048. +The number of parameters for DHC and SHC used in the experiments is detailed in Table 7, while +their corresponding FLOPs comparisons are provided in Table 8. Regardless of whether SHC or DHC +is used, the additional parameters and computational overhead introduced are minimal and can be +considered negligible. +Table 7: Comparison of number of parameters. +Method +HC Params(B) +Total Params(B) +Total Params ∆rate (%) +OLMo-1B +- +1.17676442 +- +OLMo-1B-SHC×2 +0.0000026 +1.17676467 ++0.00002% +OLMo-1B-SHC×4 +0.0000077 +1.17676518 ++0.00007% +OLMo-1B-DHC×2 +0.0002625 +1.17702688 ++0.02230% +OLMo-1B-DHC×4 +0.0003940 +1.17715846 ++0.03349% +OLMo-7B +- +6.88809574 +- +OLMo-7B-DHC×4 +0.0013124 +6.88967027 ++0.02286% +OLMoE-1B-7B +- +6.91909427 +- +OLMoE-1B-7B-DHC×4 +0.0003940 +6.91948832 ++0.00570% +Computation Analysis. The main computational cost of SHC and DHC lies in line 5 of Algorithm 1, +where the complexity is O(dmodel × n × (n + 1)). The computational cost of the FFN is O(2 × +dmodel × dffn), and that of the projection part of attention is O(4 × dmodel × dmodel). Since O(dmodel × +n × (n + 1)) ≪O(4 × dmodel × dmodel) < O(2 × dmodel × dffn), the computational cost of HC is +negligible compared to the cost of both FFN and the attention projection part. Here, dffn is the inner +dimension of the FFN. The detailed computation cost statistics are presented in Table 8. +15 + +PAGE 16 +Published as a conference paper at ICLR 2025 +Table 8: FLOPs per token in forward pass. +Method +HC FLOPs (G) +Total FLOPs (G) +Total FLOPs ∆rate (%) +OLMo-1B +- +2.3536 +- +OLMo-1B-SHC×2 +0.0010 +2.3545 ++0.038% +OLMo-1B-SHC×4 +0.0031 +2.3566 ++0.127% +OLMo-1B-DHC×2 +0.0020 +2.3554 ++0.076% +OLMo-1B-DHC×4 +0.0049 +2.3583 ++0.200% +OLMo-7B +- +13.3647 +- +OLMo-7B-DHC×4 +0.0197 +13.3844 ++0.147% +OLMoE-1B-7B +- +2.3580 +- +OLMoE-1B-7B-DHC×4 +0.0049 +2.3629 ++0.208% +Memory Footprint. The introduction of HC results in a minor increase in activation memory +usage during training. For a transformer model with L layers, a model dimension of dmodel, batch +size b, sequence length s, and number of attention heads a, the activation memory is calculated +as sbdmodelL(34 + 5as/dmodel), as outlined in Korthikanti et al. (2022). Incorporating HC with an +expansion rate of n adds an extra memory overhead of 2nsbdmodelL. For n = 2, this contributes less +than 15% to the total memory usage of a standard transformer. Notably, the memory consumption is +mostly driven by the weight parameters, which experience only a slight increase with HC. Additionally, +given HC’s low computational cost, the hidden states generated by HC can be discarded post forward +pass and recomputed during backpropagation to further optimize memory usage. With this approach, +the additional memory requirement is reduced to nsbdmodel. During inference, the memory usage +for activations is largely determined by the Key-Value cache, which is not impacted by the extra +activations brought by HC. Moreover, the hidden states from earlier layers can be released as soon as +the next layer’s computations start, significantly lowering memory requirements. The actual memory +footprint is empirically measured on 8 GPUs, as shown in Table 9. +Table 9: Measured Memory Footprint on 8 GPUs. +Method +Memory (GB) +Memory ∆Rate (%) +Micro Batch Size +(tokens per GPU) +OLMo-1B +41.11 +- +16,384 +OLMo-1B-SHC×2 +47.55 ++15.7% +16,384 +OLMo-1B-SHC×4 +51.85 ++26.0% +16,384 +OLMo-1B-DHC×2 +47.56 ++15.7% +16,384 +OLMo-1B-DHC×4 +51.86 ++26.1% +16,384 +OLMo-7B +26.27 +- +2,048 +OLMo-7B-DHC×4 +33.70 ++28.28% +2,048 +OLMoE-1B-7B +31.59 +- +4,096 +OLMoE-1B-7B-DHC×4 +34.65 ++9.7% +4,096 +16 + +PAGE 17 +Published as a conference paper at ICLR 2025 +C +MOE 1B/7B MODEL EXPERIMENTS +100 +200 +300 +400 +500 +Tokens (B) +2.3 +2.4 +2.5 +training loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.7 +2.8 +C4 en val. loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.5 +2.6 +2.7 +dolma books val. loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.75 +2.80 +2.85 +2.90 +dolma cc val. loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.10 +2.15 +2.20 +2.25 +2.30 +dolma pes2o val. loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.90 +2.95 +3.00 +3.05 +dolma reddit val. loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +1.00 +1.05 +1.10 +dolma stack val. loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.3 +2.4 +dolma wiki val. loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.5 +2.6 +2.7 +2.8 +ice val. loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +3.00 +3.05 +3.10 +3.15 +3.20 +m2d2-s2orc val. loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.00 +2.05 +2.10 +2.15 +2.20 +pile val. loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.3 +2.4 +2.5 +wikitext 103 val. loss +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +28 +30 +32 +34 +MMLU stem Var Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +30 +32 +34 +MMLU hum. Var Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +35.0 +37.5 +40.0 +42.5 +MMLU soc. sci. Var Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +40 +45 +50 +MMLU other Var Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +34 +36 +38 +40 +MMLU avg. Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +60 +65 +70 +HellaSwag Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +88 +90 +92 +94 +SciQ Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +35 +40 +45 +ARC Challenge Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +65 +70 +75 +ARC easy Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +74 +76 +78 +PIQA Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +57.5 +60.0 +62.5 +65.0 +WinoGrande Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +36 +38 +40 +42 +44 +Openbook QA Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +60 +65 +BoolQ Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +77.5 +80.0 +82.5 +85.0 +87.5 +COPA Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +42.5 +45.0 +47.5 +50.0 +Commonsense QA Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +44 +45 +46 +47 +48 +Social Iqa Acc. (%) +OLMoE-1B-7B +OLMoE-1B-7B-DHCx4 +Figure 9: Loss curves in V3 validation sets and accuracy curves on downstream tasks for +OLMoE-1B7B and OLMoE-1B7B-DHC×4 models. +17 + +PAGE 18 +Published as a conference paper at ICLR 2025 +D +7B MODEL EXPERIMENTS +100 +200 +300 +400 +500 +Tokens (B) +2.5 +2.6 +2.7 +c4 en val. loss +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.6 +2.7 +2.8 +2.9 +dolma books val. loss +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.5 +2.6 +2.7 +dolma cc val. loss +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.1 +2.2 +2.3 +dolma pes2o val. loss +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.8 +2.9 +3.0 +dolma reddit val. loss +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +0.95 +1.00 +1.05 +dolma stack val. loss +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.3 +2.4 +2.5 +dolma wiki val. loss +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.5 +2.6 +2.7 +2.8 +ice val. loss +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +3.0 +3.1 +3.2 +m2d2-s2orc val. loss +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.0 +2.1 +2.2 +pile val. loss +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +2.4 +2.5 +2.6 +2.7 +wikitext 103 val. loss +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +55 +60 +65 +70 +HellaSwag Acc. (%) +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +82.5 +85.0 +87.5 +90.0 +92.5 +SciQ Acc. (%) +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +70 +75 +80 +85 +COPA Acc. (%) +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +32.5 +35.0 +37.5 +40.0 +Openbook QA Acc. (%) +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +72 +74 +76 +78 +PIQA Acc. (%) +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +55 +60 +65 +WinoGrande Acc. (%) +OLMo-7B- +OLMo-7B-DHCx4 +100 +200 +300 +400 +500 +Tokens (B) +55 +60 +65 +70 +ARC-Easy Acc. (%) +OLMo-7B- +OLMo-7B-DHCx4 +Figure 10: Loss curves in V3 validation set and accuracy curves on downstream tasks for OLMo-7B +and OLMo-7B-DHC×4 models. +18 + +PAGE 19 +Published as a conference paper at ICLR 2025 +E +VISION EXPERIMENTS +Datasets. We use the ILSVRC-2012 ImageNet dataset (Deng et al., 2009) with 1k classes and 1.3M +images (see ImageNet in the following) for image generation and classification. +E.1 +IMAGE GENERATION +To investigate the generalizability of hyper-connections in image generation, our experiments are +conducted using the DiT framework (Peebles & Xie, 2022) training the models for 1400 epochs. +In order to save experimental costs, we use FP16 precision, introduce flash-attention to speed up +training, and introduce QK-Norm (Wortsman et al., 2023) to stabilize training. +Table 10: Benchmarking class-conditional image generation on ImageNet 256×256, with cfg=1.50. +NP, P, and R are short for Numerical Precision, Precision, and Recall, respectively. +Method +NP +QK-Norm +Size (M) +FID↓ +sFID↓ +IS↑ +P↑ +R↑ +DiT-XL/2 +FP32 +✗ +675 +2.27 +4.60 +278.24 +0.83 +0.57 +DiT-XL/2 +FP16 +✓ +675 +2.36 +4.54 +269.46 +0.83 +0.58 +DiT-1B/2 +FP16 +✓ +983 +2.13 +4.50 +288.69 +0.82 +0.59 +DiT-XL/2-SHC×2 +FP16 +✓ +675 +2.18 +4.52 +287.24 +0.82 +0.60 +Our experimental results demonstrate that DiT models incorporating hyper-connections exhibit +comparable performance metrics to DiT models with 50% more parameters. This finding underscores +the efficiency and efficacy of hyper-connections in enhancing model performance without increasing +model size. +E.2 +IMAGE CLASSIFICATION +For the image classification experiments, we train ViT/16-Base and ViT/16-Large models with images +at a resolution of 224 × 224 for 300 epochs, following the experimental setup used by (Dosovitskiy +et al., 2020).To speed up the training process, we use bfloat16 numerical precision. The training +configuration is detailed in Table 12. Within this configuration, we replace the residual connections +with static and dynamic hyper-connections, referred to as SHC and DHC, respectively, using an +expansion rate of n = 2. The top-1 accuracy results are presented in Table 11, and the training loss +curves for ViT/16-Large and ViT/16-Large with DHC×2 are shown in Fig. 11. +For the Base model (85M), our re-implemented ViT/16 achieves 76.38% accuracy on 224 × 224 +images. The SHC and DHC enhance performance to 77.60% and 77.26%, respectively. representing +relative increases of 1.22% and 0.88%. For the Large model (307M parameters), ViT/16 achieves +77.25% accuracy. The SHC and DHC configurations further enhance accuracy to 78.38% and 79.94%, +respectively. This corresponds to relative improvements of 1.13% and 2.69%, with DHC showing the +highest performance. These results demonstrate that hyper-connections (SHC and DHC) significantly +improve accuracy, especially in the Large model scale. +Table 11: Accuracy on ImageNet. ViT*/16 refers to the results reported by (Dosovitskiy et al., +2020), whereas ViT/16 denotes our re-implemented baseline. SHC and DHC indicate that residual +connections are replaced with static and dynamic hyper-connections, respectively. +Model Scales +Params (M) +ViT*/16 +ViT/16 +ViT/16-SHC×2 +ViT/16-DHC×2 +384 × 384 +224 × 224 +Base +85 +77.91 +76.38 +77.60 +77.26 +Large +307 +76.53 +77.25 +78.38 +79.94 +19 + +PAGE 20 +Published as a conference paper at ICLR 2025 +30000 +40000 +50000 +60000 +70000 +80000 +90000 +Steps +0.2 +0.4 +0.6 +0.8 +1.0 +1.2 +1.4 +1.6 +1.8 +Loss +Training Loss +ViT/16-Lagre +ViT/16-Lagre-DHCx2 +Figure 11: Training loss curves of ViT/16-Large and ViT/16-Large-DHC×2, smoothed using an +Exponential Moving Average (EMA) with a decay rate of 0.999. The gain from Hyper-Connections +decreases as training progresses, likely due to pass over the same dataset across many epochs, +resulting in diminishing returns from the additional capacity provided by Hyper-Connections. +E.3 +VISULIZATION OF DHC +We randomly select three categories from the ImageNet dataset and sample the corresponding +examples from the validation set. These samples are fed into the ViT-Base/16-DHC×2 model to +compute the dynamic connection weights of the DHC in the final layer. As shown in Fig. 12, we +visualize the distribution of these weights. We observe that the intra-class distribution of beta is +highly concentrated, indicating that samples within the same category tend to have similar beta values. +In contrast, the distribution of alpha is less concentrated, but the differences between the distributions +of different categories are more pronounced, as exemplified by α2,0. +Table 12: Training hyperparameters for ViT. +Hyperparameter +Value +Learning Rate (lr) +0.003 +Batch Size +4096 +Scheduler +Cosine Annealing with Linear Warmup (10k steps) +Data Augmentation +Mixup (α = 0.2) +Epochs +300 +Optimizer +AdamW (β1 = 0.9, β2 = 0.999, ϵ = 1e −8) +Gradient Clipping +1.0 +Weight Decay +0.3 +Dropout +0.1 +Precision +bf16 +20 + +PAGE 21 +Published as a conference paper at ICLR 2025 +0.95 +1.00 +1.05 +1.10 +1.15 +1.20 +1 +0 +10 +20 +30 +Frequency +33:loggerhead turtle +0.95 +1.00 +1.05 +1.10 +1.15 +1.20 +1 +0 +10 +20 +30 +40 +Frequency +998:capitulum +0.95 +1.00 +1.05 +1.10 +1.15 +1.20 +1 +0 +10 +20 +30 +40 +Frequency +779:school bus +0.95 +1.00 +1.05 +1.10 +1.15 +1.20 +2 +0 +5 +10 +15 +20 +25 +30 +Frequency +33:loggerhead turtle +0.95 +1.00 +1.05 +1.10 +1.15 +1.20 +2 +0 +5 +10 +15 +20 +25 +Frequency +998:capitulum +0.95 +1.00 +1.05 +1.10 +1.15 +1.20 +2 +0 +10 +20 +30 +40 +50 +Frequency +779:school bus +0.65 +0.60 +0.55 +0.50 +0.45 +0.40 +0.35 +1, 0 +0 +2 +4 +6 +8 +Frequency +33:loggerhead turtle +0.65 +0.60 +0.55 +0.50 +0.45 +0.40 +0.35 +1, 0 +0 +5 +10 +15 +20 +25 +30 +Frequency +998:capitulum +0.65 +0.60 +0.55 +0.50 +0.45 +0.40 +0.35 +1, 0 +0 +1 +2 +3 +4 +5 +Frequency +779:school bus +0.9 +1.0 +1.1 +1.2 +1.3 +1, 1 +0 +1 +2 +3 +4 +5 +Frequency +33:loggerhead turtle +0.9 +1.0 +1.1 +1.2 +1.3 +1, 1 +0 +1 +2 +3 +4 +Frequency +998:capitulum +0.9 +1.0 +1.1 +1.2 +1.3 +1, 1 +0 +10 +20 +30 +40 +50 +Frequency +779:school bus +0.1 +0.0 +0.1 +0.2 +0.3 +1, 2 +0 +1 +2 +3 +4 +5 +Frequency +33:loggerhead turtle +0.1 +0.0 +0.1 +0.2 +0.3 +1, 2 +0 +1 +2 +3 +4 +Frequency +998:capitulum +0.1 +0.0 +0.1 +0.2 +0.3 +1, 2 +0 +10 +20 +30 +40 +50 +Frequency +779:school bus +2.00 +2.05 +2.10 +2.15 +2.20 +2.25 +2.30 +2.35 +2.40 +2, 0 +0 +1 +2 +3 +4 +5 +6 +Frequency +33:loggerhead turtle +2.00 +2.05 +2.10 +2.15 +2.20 +2.25 +2.30 +2.35 +2.40 +2, 0 +0 +5 +10 +15 +Frequency +998:capitulum +2.00 +2.05 +2.10 +2.15 +2.20 +2.25 +2.30 +2.35 +2.40 +2, 0 +0 +1 +2 +3 +4 +Frequency +779:school bus +0.2 +0.1 +0.0 +0.1 +0.2 +2, 1 +0 +2 +4 +6 +Frequency +33:loggerhead turtle +0.2 +0.1 +0.0 +0.1 +0.2 +2, 1 +0 +1 +2 +3 +4 +5 +Frequency +998:capitulum +-0.20 +-0.10 +0.00 +0.10 +0.20 +2, 1 +0 +10 +20 +30 +40 +50 +Frequency +779:school bus +Figure 12: Distribution of weights of last DHC in ViT-Base/16-DHC×2 model. +F +MORE VISUALIZATION AND ANALYSIS +Unfolding hyper-connections. +We first introduce how to determine the connection matrix C(0) for +hyper-connections. To simplify writing, the layer output T k(hk +0) is denoted by T k for short. The +21 + +PAGE 22 +Published as a conference paper at ICLR 2025 +0 +4 +8 12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +0 +4 +8 12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +0 +4 +8 12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +0 +4 +8 12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +0 +4 +8 12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +1.0 +0.5 +0.0 +0.5 +1.0 +C(0) +C(1) +C(2) +C(3) +C(4) +(a) Connection matrix for DHC model. +0 +4 +8 12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +0 +4 +8 12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +0 +4 +8 12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +0 +4 +8 12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +0 +4 +8 12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +1.0 +0.5 +0.0 +0.5 +1.0 +C(0) +C(1) +C(2) +C(3) +C(4) +(b) Connection matrix for SHC model. +Figure 13: Visualization of unfolded connection matrix. +Matrices from left to right are +C(0)(Connections for {hj +0}L+1 +j=0 ), C(i) (Connections for {h′j +i}L+1 +j=0 ) for i ∈{1, 2, 3, 4}. The at- +tention layers, which have odd ids, are marked with green tick marks. +recurrent form of hyper connection in Eq. 2 is expanded as follows: +h0 +k =Hk⊺Am +k = (T k−1Bk−1 + Hk−1⊺Ar +k−1)Am +k += +k−1 +X +j=0 +T jBj(Ar +j+1Ar +j+2...Ar +k−1)Am +k += +k−1 +X +j=0 +T jBj( +k−1 +Y +t=j+1 +Ar +t)Am +k. +(27) +Therefore, we obtain connection matrix c(0) +kj = Bj(Qk−1 +t=j+1 Ar +t)Am +k. Similarly, the connection +matrix C(i) for the i-th hyper hidden from k-th layer can be computed by substituting the last Am +k +with Ar +k in Eq. 27, i.e., +H′k = Ar +k⊺Hk = +k−1 +X +j=0 +( +k +Y +t=j+1 +Ar +t)⊺Bj⊺T j⊺ +(28) +c(i) +kj = + +( +k +Y +t=j+1 +Ar +t) +⊺ +Bj⊺ + + +i +. +(29) +Visualization for hyper hidden. +We visualize connection matrices for hyper hiddens in Fig. 13 to +reveal how hyper-connection maintains intermediate layer outputs. First of all, the four hyper hiddens +are dissimilar and show completely different connection patterns. Then, we can see outputs from +FFN layers are preserved long-termly in hyper hiddens, while attention layers are reserved less. It +is also observed that the long-term connections are usually stored in pairs of hyper hiddens, where +the connection is positive in one hyper hidden but negative in the other, for example, column 0 and +2 in C(1), C(3). With such strategy, these connections can be easily eliminated in the sum-pooling +operation before the unembedding layer. +SHC shares similar connection pattern with DHC. +We show the connection matrices for +OLMo-1B-SHC×4 model in Fig. 13b. Comparing to DHC, as shown in Fig. 13a, SHC shares +exactly the same connection patterns. Moreover, we observe many more PTB-like blocks in SHC, +e.g., layers from 13 to 18. Note that the connection relation for SHC is token independent, and such +PTB-like blocks can be physically reorganized to be parallelly computed. +22 + +PAGE 23 +Published as a conference paper at ICLR 2025 +0 +4 +8 +12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +↓wasted +(a) OLMo-1B-DHC×1 +0 +4 +8 +12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(b) OLMo-1B-DHC×2 +0 +4 +8 +12 16 20 24 28 32 +0 +4 +8 +12 +16 +20 +24 +28 +32 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +(c) OLMo-1B-DHC×4 +Figure 14: Comparison of unfolded connection matrices for OLMo-1B-DHC×1, OLMo-1B-DHC×2 +and OLMo-1B-DHC×4 model. +How HC×1 fails. +The OLMo-1B×1 model is observed to perform worse than baseline in our +experiments. Its connection matrix is visualized in Fig. 14 to show how it fails. Above all, we observe +that layer 17 is wasted, who has no connection to subsequent layers at all. Secondly, compared to +HC×2 and HC×4 models, the Λ shaped pattern does not appear. Note that HC×1 does not support +the pattern of Λ in its mathematical formulation, where the connections to previous layers must be +weakened or strengthened simultaneously. Thus, the lack of connection from the early layers to the +final layers may suffer from gradient vanishing, like post-norm style transformers, which leads to +performance degeneration. +23 + +PAGE 24 +Published as a conference paper at ICLR 2025 +G +DERIVATION OF NON-TRAINABLE HYPER-CONNECTION MATRIX FOR +RESIDUAL CONNECTIONS +G.1 +PRE-NORM RESIDUAL CONNECTION +In the Pre-Norm residual connection, the input to a layer is first normalized before being passed +through the layer. The output of the layer is then added to the original input. This can be represented +as: +ˆh = T (Norm(h)) + h. +(30) +By incorporating the normalization operator into the layer, T := T ◦Norm, we can express the entire +process as: +ˆh = T (h) + h. +(31) +To express this using hyper-connections, the matrix for Pre-Norm can be structured as follows: +HCP reNorm = + +0 +1 +1 +1 + +(32) +Given hyper hidden matrix H = h⊺, we prove that the output of HCPreNorm ˆH = ˆh⊺. +Proof. +ˆH = HC(T , H) += B⊺T (H⊺Am)⊺+ Ar +⊺H += T (h)⊺+ h⊺ += ˆh⊺. +(33) +G.2 +POST-NORM RESIDUAL CONNECTION +In the Post-Norm residual connection, the input to a layer is passed through the layer first, and +then the output is normalized after being added to the original input. In matrix form, this can be +represented as: +h′ = T (h) +(34) +The summation of the input and the normalized output of the layer is: +ˆh = Norm(h + h′) +(35) +We consider Norm to be LayerNorm (Zhang & Sennrich, 2019). The analysis process for RMSNorm +is almost identical. In fact, the affine transformation can be incorporated into the subsequent layer, +while the mean subtraction operation can be integrated into the current layer. +T = C ◦T ◦A, +(36) +where A is the affine transformation, and C is the re-centering operator. Thus, the mean of the output +of T is 0. +To express this using hyper-connections with an expansion rate n = 1, we need a hyper-connection +matrix HC that encapsulates this operation: +HCP ostNorm = + + +0 +1 +√ +σ2 +h+σ2 +h′+2σhh′ +1 +1 +√ +σ2 +h+σ2 +h′+2σhh′ + += + +0 +B +Am +Ar + +. +(37) +24 + +PAGE 25 +Published as a conference paper at ICLR 2025 +Similar to the previous proof, we prove that the output of HCPostNorm is equivalent to the transpose of +the output of the Post-Norm residual connection: +ˆH = ˆh⊺. +(38) +Proof. Note that +σh+h′ = +q +σ2 +h + σ2 +h′ + 2σhh′. +(39) +Given this fact, we can derive the Post-Norm: +ˆh = Norm(h′ + h) += h′ + h −µh′+h +σh+h′ += +1 +σh′+h +(h′ + h) += +1 +p +σ2 +h + σ2 +h′ + 2σhh′ (h′ + h) +(40) +For hyper-connections side, we have: +ˆH = B⊺h′⊺+ H′ += B⊺h′⊺+ ArH += B⊺h′⊺+ Arh⊺ += +1 +p +σ2 +h + σ2 +h′ + 2σhh′ h′⊺+ +1 +p +σ2 +h + σ2 +h′ + 2σhh′ h⊺ += ˆh⊺. +(41) +25 + +PAGE 26 +Published as a conference paper at ICLR 2025 +H +SEQUENTIAL-PARALLEL DUALITY +H.1 +HYPER-CONNECTION MATRIX OF SEQUENTIAL ARRANGEMENT +In this section, we demonstrate that the following hyper-connection matrix will produce n identical +networks arranged sequentially with residual connections between them: +HC = + +01×1 +11×n +e1 +en×n + +, +(42) +where en×n denotes an n × n identity matrix, ei ∈Rn×1 represents the i-th column of en×n, and +11×n signifies a 1 × n matrix of ones. +We will use mathematical induction to prove that hk +i = hk +j and hk+1 +i += T k(hk +i ) + hk +i , ∀i, j ∈ +{0, 1, . . . , n}, ∀k ∈{0, 1, . . . , L}, where L is the number of layers. +Proof. BASE CASE +For k = 0, we have the initial condition h0 +i = h0 +j, ∀i, j ∈{0, 1, . . . , n}, as we define H0 = +h0 +h0 +. . . +h0⊺∈Rn×d. +INDUCTION HYPOTHESIS +Assume that for some k ∈{1, . . . , L −1}, we have hk +i = hk +j and hk +i = T k(hk−1 +i +) + hk−1 +i +, +∀i, j ∈{0, 1, . . . , n}. +INDUCTION STEP +We have +Hk+1 = HC(T k, Hk) +(43) += B⊺(h′k +0 )⊺+ H′k +(44) += B⊺Am +⊺Hk + Ar +⊺Hk +(45) += 1n×1T k(e⊺ +1Hk) + en×nHk +(46) += +T k(hk +1) +T k(hk +1) +. . . +T k(hk +1) +⊺+ +hk +1 +hk +2 +. . . +hk +n +⊺ +(47) += +T k(hk +1) + hk +1 +T k(hk +1) + hk +2 +. . . +T k(hk +1) + hk +n +⊺ +(48) += +hk+1 +1 +hk+1 +2 +. . . +hk+1 +n +⊺ +(49) +Since hk +i = hk +j , ∀i, j ∈{0, 1, . . . , n}, it follows that T k(hk +1) + hk +i = T k(hk +1) + hk +j . Thus, we have +hk+1 +i += hk+1 +j +(50) +Since hk +i = hk +j , ∀i, j ∈{0, 1, . . . , n}, it follows that hk +1 = hk +i , ∀i ∈{0, 1, . . . , n}. Thus, we have +hk+1 +i += T k(hk +1) + hk +i +(51) += T k(hk +i ) + hk +i +(52) +26 + +PAGE 27 +Published as a conference paper at ICLR 2025 +H.2 +HYPER-CONNECTION MATRIX OF PARALLEL ARRANGEMENT +In this section, we demonstrate that the following hyper-connection matrix will produce a network +where every n adjacent layers are arranged in parallel, with each layer incorporating residual connec- +tions. We define a parallel-arranged network such that n adjacent layers form a group, with layers +within a group being parallel and groups arranged sequentially. The output of k-th group is given by: +hk+1 = +n +X +i=1 +(T k×n+i(hk) + hk). +(53) +It can be proved that this arrangement can be described by the following hyper-connection matrices. +First, for k where k −1 ≡0 (mod n): +HC{k|k−1≡0 +(mod n)} = + +01×1 +e⊺ +1 +1n×1 +1n×n, + +(54) +where the HC matrix can be decomposed into two operations: 1) sum up all the outputs of the +previous group and use it as the input of the current layer and as the residual of the subsequent layers; +2) sum up the output and input saving to the first hidden vector slot. +Next, for k where k −1 ≡i (mod n) and i̸ = 0: +HC{k|k−1≡i +(mod n),i̸=0} = + +01×1 +e⊺ +i +ei +en×n, + +. +(55) +where the HC matrix selects the i-th hidden vector as the input of the current layer, and sums up the +output and input, saving to the i-th hidden vector slot. +This means: +hk+1 =HC(k+1)×n(T (k+1)×n, +(56) +HC(k+1)×n−1(T (k+1)×n−1, +(57) +· · · +(58) +HCk×n+1(T k×n+1, hk))) +(59) +This can also be proved by mathematical induction; however, the conclusion is quite obvious through +drawing, and the proof process is very tedious. Therefore, we don’t repeat the similar proof here. +27 + +PAGE 28 +Published as a conference paper at ICLR 2025 +I +PSEUDOCODE OF HYPER-CONNECTIONS +Algorithm 1 Network with Hyper-Connections +Require: Initial hidden vector h0 ∈Rd +Require: Expansion rate n +Ensure: Final output y +1: Initialize: +2: H0 ← +h0 +h0 +. . . +h0⊺∈Rn×d +3: for k = 1 to L do +▷For each layer +4: +H ←Hk−1 +5: +(h0 +H′) ←WCk⊺H +▷Width Connections +6: +h′ +0 ←T k(h0) +▷Layer Computation +7: +ˆH ←Bk⊺h′ +0 + H′ +▷Depth Connections +8: +Hk ←ˆH +9: end for +10: Final Output: +11: hL ←sum rows of HL +12: hL ←Normalization Layer(hL) +13: y ←Output Layer(hL) +14: return y +28 + +PAGE 29 +Published as a conference paper at ICLR 2025 +J +PYTORCH IMPLEMENTATION OF HYPER-CONNECTIONS +Algorithm 2 Pseudocode of hyper-connections in a PyTorch-like style. +# h: hyper hidden matrix (BxLxNxD) +class HyperConnection(nn.Module): +def __init__(self, dim, rate, layer_id, dynamic, device=None): +super(HyperConnection, self).__init__() +self.rate = rate +self.layer_id = layer_id +self.dynamic = dynamic +self.static_beta = nn.Parameter(torch.ones((rate,), device=device)) +init_alpha0 = torch.zeros((rate, 1), device=device) +init_alpha0[layer_id % rate, 0] = 1. +self.static_alpha = nn.Parameter(torch.cat([init_alpha0, torch.eye((rate), device= +device)], dim=1)) +if self.dynamic: +self.dynamic_alpha_fn = nn.Parameter(torch.zeros((dim, rate+1), device=device)) +self.dynamic_alpha_scale = nn.Parameter(torch.ones(1, device=device) * 0.01) +self.dynamic_beta_fn = nn.Parameter(torch.zeros((dim, ), device=device)) +self.dynamic_beta_scale = nn.Parameter(torch.ones(1, device=device) * 0.01) +self.layer_norm = LayerNorm(dim) +def width_connection(self, h): +# get alpha and beta +if self.dynamic: +norm_h = self.layer_norm(h) +if self.dynamic: +wc_weight = norm_h @ self.dynamic_alpha_fn +wc_weight = F.tanh(wc_weight) +dynamic_alpha = wc_weight * self.dynamic_alpha_scale +alpha = dynamic_alpha + self.static_alpha[None, None, ...] +else: +alpha = self.static_alpha[None, None, ...] +if self.dynamic: +dc_weight = norm_h @ self.dynamic_beta_fn +dc_weight = F.tanh(dc_weight) +dynamic_beta = dc_weight * self.dynamic_beta_scale +beta = dynamic_beta + self.static_beta[None, None, ...] +else: +beta = self.static_beta[None, None, ...] +# width connection +mix_h = alpha.transpose(-1, -2) @ h +return mix_h, beta +def depth_connection(self, mix_h, h_o, beta): +h = torch.einsum("blh,bln->blnh", h_o, beta) + mix_h[..., 1:, :] +return h +Algorithm 3 Pseudocode of transformer with hyper-connections in a PyTorch-like style. +# h: hyper hidden matrix (BxLxNxD) +# atten_hyper_connection, ffn_hyper_connection: hyper-connection modules +# attn_norm, ffn_norm: normalization modules +# Attention Block +mix_h, beta = atten_hyper_connection.width_connection(h) +h = attn_norm(mix_h[...,0,:]) +h = self_attention(h) +h = atten_hyper_connection.depth_connection(mix_h, dropout(h), beta) +# FFN Block +mix_h, beta = ffn_hyper_connection.width_connection(h) +h = ffn_norm(mix_h[...,0,:]) +h = ffn(h) +h = ffn_hyper_connection.depth_connection(mix_h, dropout(h), beta) +29 + +PAGE 30 +Published as a conference paper at ICLR 2025 +K +VALIDATION SETS AND DOWNSTREAM TASKS +Table 13: OLMo’s default configuration was evaluated using multiple metrics. Perplexity (PPL) +and loss were used for the V2 and V3 Validation Sets, while zero-shot testing was applied to the +Downstream Benchmarks. However, the grey benchmarks were excluded from our analysis due to +the instability of their performance indicators. +V2 Validation Sets +v2-small-4chan-validation +v2-small-c4_100_domains-validation +v2-small-c4_en-validation +v2-small-gab-validation +v2-small-ice-validation +v2-small-m2d2_s2orc-validation +v2-small-m2d2_wiki-validation +v2-small-manosphere-validation +v2-small-mc4_en-validation +v2-small-pile-validation +v2-small-ptb-validation +v2-small-twitterAEE-validation +v2-small-wikitext_103-validation +V3 Validation Sets +v3-small-c4_en-validation +v3-small-dolma_books-validation +v3-small-dolma_common-crawl-validation +v3-small-dolma_pes2o-validation +v3-small-dolma_reddit-validation +v3-small-dolma_stack-validation +v3-small-dolma_wiki-validation +v3-small-ice-validation +v3-small-m2d2_s2orc-validation +v3-small-pile-validation +v3-small-wikitext_103-validation +Downstream Benchmarks +piqa (Bisk et al., 2020) +hellaswag (Zellers et al., 2019) +winogrande (Sakaguchi et al., 2021) +openbook_qa (Mihaylov et al., 2018) +sciq (Johannes Welbl, 2017) +arc_easy (Clark et al., 2018) +copa (Roemmele et al., 2011) +commitment_bank (De Marneffe et al., 2019) +mrpc (Dolan & Brockett, 2005) +rte (Dagan et al., 2005) +sst2 (Socher et al., 2013) +30 + +PAGE 31 +Published as a conference paper at ICLR 2025 +Table 14: Downstream Benchmarks for OLMoE. +Downstream Benchmarks for OLMoE +piqa (Bisk et al., 2020) +hellaswag (Zellers et al., 2019) +winogrande (Sakaguchi et al., 2021) +openbook_qa (Mihaylov et al., 2018) +sciq (Johannes Welbl, 2017) +arc_easy (Clark et al., 2018) +arc_challenage (Clark et al., 2018) +copa (Roemmele et al., 2011) +boolq (Clark et al., 2019) +commonsense_qa (Talmor et al., 2018) +social_iqa (Sap et al., 2019) +mmlu (Hendrycks et al., 2021) +L +1B MODEL EXPERIMENTS +100 +200 +300 +400 +500 +Tokens (Billions) +2.4 +2.5 +2.6 +2.7 +2.8 +2.9 +Loss +Training Loss +OLMo-1B +OLMo-1B-ResiDual +OLMo-1B-Altupx2 +OLMo-1B-DHCx2 +OLMo-1B-DHCx2 W/O tanh +Figure 15: Training loss curves of related works, smoothed using Exponential Moving Average +(EMA) with a decay rate of 0.99. +31 + +PAGE 32 +Published as a conference paper at ICLR 2025 +200 +400 +600 +800 +1000 +Tokens (Billions) +2.35 +2.40 +2.45 +2.50 +2.55 +2.60 +Loss +Training Loss +OLMo-1B +OLMo-1B-DHCx1 +OLMo-1B-DHCx2 +OLMo-1B-DHCx4 +OLMo-1B-DHCx8 +Figure 16: Training loss curves of DHC with tanh over 500 billion tokens, smoothed using +Exponential Moving Average (EMA) with a decay rate of 0.99. +200 +400 +600 +800 +1000 +Tokens (Billions) +2.35 +2.40 +2.45 +2.50 +2.55 +2.60 +Loss +Training Loss +OLMo-1B +OLMo-1B-DHCx1 W/O tanh +OLMo-1B-DHCx2 W/O tanh +OLMo-1B-DHCx4 W/O tanh +OLMo-1B-DHCx8 W/O tanh +Figure 17: Training loss curves of DHC without tanh over 500 billion tokens, smoothed using +Exponential Moving Average (EMA) with a decay rate of 0.99. +32 + +PAGE 33 +Published as a conference paper at ICLR 2025 +100 +200 +300 +400 +500 +Tokens (Billions) +2.4 +2.5 +2.6 +2.7 +2.8 +2.9 +Loss +Training Loss +OLMo-1B +OLMo-1B-PTB +OLMo-1B-DHCx4 W/O tanh +OLMo-1B-DHCx4 +Figure 18: Training loss curves comparied with parallel transformer blocks (PTB), smoothed using +Exponential Moving Average (EMA) with a decay rate of 0.99. +Table 15: Results on downstream benchmarks for 1B models. +Method +arc_easy +copa +hellaswag +openbook_qa +piqa +sciq +winogrande +avg. +OLMo-1B +56.8 +76.0 +56.1 +33.8 +74.4 +85.1 +55.6 +62.5 +Scaling n in DHC W/O tanh +OLMo-1B-DHCx1 W/O tanh +56.8 +75.0 +55.3 +33.4 +72.9 +85.4 +57.1 +62.3 +OLMo-1B-DHCx2 W/O tanh +63.0 +74.0 +57.1 +34.6 +73.5 +86.0 +58.2 +63.8 +OLMo-1B-DHCx4 W/O tanh +61.2 +80.0 +57.5 +33.6 +75.5 +85.8 +56.9 +64.4 +OLMo-1B-DHCx8 W/O tanh +61.1 +75.0 +57.6 +35.4 +73.8 +85.2 +58.5 +63.8 +Scaling n in DHC +OLMo-1B-DHCx1 +59.7 +74.0 +55.5 +33.6 +73.5 +85.4 +54.5 +62.3 +OLMo-1B-DHCx2 +59.7 +73.0 +56.7 +34.0 +74.7 +85.2 +57.9 +63.0 +OLMo-1B-DHCx4 +59.8 +79.0 +58.1 +32.4 +74.3 +86.1 +57.1 +63.8 +OLMo-1B-DHCx8 +56.8 +75.0 +58.0 +34.4 +73.8 +84.2 +57.3 +62.8 +Scaling n in SHC +OLMo-1B-SHCx2 +59.1 +77.0 +56.6 +35.4 +74.2 +85.3 +56.4 +63.4 +OLMo-1B-SHCx4 +59.3 +77.0 +56.7 +34.0 +74.3 +86.6 +57.1 +63.6 +Non-trainable WC +OLMo-1B-DHCx4 +60.5 +78.0 +56.2 +34.0 +73.5 +86.0 +55.8 +63.4 +OLMo-1B-DHCx4 W/O tanh +59.1 +72.0 +56.8 +35.0 +73.3 +86.0 +55.5 +62.5 +Non-trainable B +OLMo-1B-DHCx4 +59.5 +77.0 +57.9 +33.8 +73.3 +85.6 +56.6 +63.4 +OLMo-1B-DHCx4 W/O tanh +60.4 +74.0 +57.6 +34.0 +74.9 +86.7 +57.5 +63.6 +33 + +PAGE 34 +Published as a conference paper at ICLR 2025 +Table 16: Losses of V2 validation sets for 1B Model. +Method +4chan +c4_100_domains +c4_en +gab +ice +m2d2_s2orc +m2d2_wiki +manosphere +mc4_en +pile +ptb +twitterAAE +wikitext_103 +avg +OLMo-1B +2.319 +2.615 +2.762 +3.364 +2.719 +3.085 +2.594 +3.028 +2.522 +2.250 +2.953 +3.672 +2.657 +2.811 +Scaling n in DHC W/O tanh +OLMo-1B-DHCx1 W/O tanh +2.320 +2.626 +2.773 +3.379 +2.725 +3.102 +2.609 +3.036 +2.531 +2.264 +2.948 +3.703 +2.672 +2.822 +OLMo-1B-DHCx2 W/O tanh +2.311 +2.600 +2.749 +3.362 +2.700 +3.069 +2.583 +3.015 +2.503 +2.231 +2.908 +3.635 +2.625 +2.792 +OLMo-1B-DHCx4 W/O tanh +2.295 +2.591 +2.735 +3.344 +2.686 +3.056 +2.562 +3.005 +2.492 +2.221 +2.898 +3.632 +2.610 +2.779 +OLMo-1B-DHCx8 W/O tanh +2.292 +2.589 +2.734 +3.350 +2.685 +3.060 +2.562 +3.006 +2.492 +2.218 +2.878 +3.628 +2.609 +2.777 +Scaling n in DHC +OLMo-1B-DHCx1 +2.323 +2.625 +2.775 +3.376 +2.728 +3.090 +2.606 +3.037 +2.533 +2.262 +2.961 +3.652 +2.678 +2.819 +OLMo-1B-DHCx2 +2.309 +2.608 +2.754 +3.367 +2.703 +3.061 +2.587 +3.022 +2.509 +2.237 +2.930 +3.704 +2.636 +2.802 +OLMo-1B-DHCx4 +2.290 +2.591 +2.738 +3.354 +2.683 +3.064 +2.564 +3.005 +2.492 +2.218 +2.890 +3.641 +2.611 +2.781 +OLMo-1B-DHCx8 +2.295 +2.591 +2.739 +3.353 +2.684 +3.054 +2.567 +3.008 +2.493 +2.219 +2.876 +3.631 +2.608 +2.778 +Scaling n in SHC +OLMo-1B-SHCx2 +2.307 +2.610 +2.757 +3.360 +2.703 +3.063 +2.587 +3.023 +2.511 +2.238 +2.933 +3.643 +2.643 +2.799 +OLMo-1B-SHCx4 +2.300 +2.603 +2.751 +3.357 +2.692 +3.062 +2.580 +3.018 +2.504 +2.232 +2.899 +3.653 +2.627 +2.791 +Non-trainable WC +OLMo-1B-DHCx4 +2.312 +2.608 +2.752 +3.357 +2.700 +3.077 +2.583 +3.024 +2.508 +2.238 +2.959 +3.678 +2.636 +2.802 +OLMo-1B-DHCx4 W/O tanh +2.308 +2.609 +2.755 +3.357 +2.710 +3.100 +2.585 +3.025 +2.510 +2.240 +2.945 +3.663 +2.644 +2.804 +Non-trainable Beta +OLMo-1B-DHCx4 +2.296 +2.594 +2.742 +3.348 +2.684 +3.051 +2.569 +3.008 +2.497 +2.221 +2.917 +3.627 +2.622 +2.783 +OLMo-1B-DHCx4 W/O tanh +2.295 +2.592 +2.739 +3.347 +2.689 +3.066 +2.567 +3.005 +2.496 +2.222 +2.887 +3.638 +2.606 +2.781 +34 + +PAGE 35 +Published as a conference paper at ICLR 2025 +Table 17: Perplexities of V2 validation sets for 1B models. +Method +4chan +c4_100_domains +c4_en +gab +ice +m2d2_s2orc +m2d2_wiki +manosphere +mc4_en +pile +ptb +twitterAAE +wikitext_103 +avg +OLMo-1B +10.167 +13.666 +15.829 +28.901 +15.166 +21.860 +13.377 +20.651 +12.453 +9.488 +19.161 +39.328 +14.251 +18.023 +Scaling n in DHC W/O tanh +OLMo-1B-DHCx1 W/O tanh +10.174 +13.815 +16.004 +29.328 +15.259 +22.231 +13.587 +20.823 +12.562 +9.620 +19.071 +40.580 +14.462 +18.270 +OLMo-1B-DHCx2 W/O tanh +9.920 +13.340 +15.412 +28.340 +14.676 +21.243 +12.965 +20.181 +12.079 +9.219 +18.129 +37.768 +13.594 +17.451 +OLMo-1B-DHCx4 W/O tanh +10.082 +13.470 +15.625 +28.848 +14.882 +21.521 +13.234 +20.392 +12.217 +9.312 +18.321 +37.905 +13.806 +17.663 +OLMo-1B-DHCx8 W/O tanh +9.897 +13.313 +15.387 +28.488 +14.658 +21.337 +12.960 +20.200 +12.084 +9.185 +17.782 +37.650 +13.592 +17.425 +Scaling n in DHC +OLMo-1B-DHCx1 +10.210 +13.810 +16.031 +29.265 +15.302 +21.986 +13.539 +20.847 +12.584 +9.606 +19.326 +38.564 +14.555 +18.125 +OLMo-1B-DHCx2 +10.061 +13.568 +15.710 +29.002 +14.925 +21.349 +13.284 +20.524 +12.294 +9.362 +18.727 +40.592 +13.957 +17.950 +OLMo-1B-DHCx4 +9.877 +13.344 +15.430 +28.624 +14.633 +21.410 +13.006 +20.186 +12.080 +9.189 +18.102 +38.136 +13.606 +17.509 +OLMo-1B-DHCx8 +9.922 +13.346 +15.467 +28.591 +14.640 +21.198 +13.025 +20.240 +12.097 +9.196 +17.749 +37.743 +13.570 +17.445 +Scaling n in SHC +OLMo-1B-SHCx2 +10.046 +13.601 +15.753 +28.782 +14.931 +21.391 +13.294 +20.562 +12.319 +9.374 +18.791 +38.212 +14.060 +17.778 +OLMo-1B-SHCx4 +9.977 +13.507 +15.655 +28.691 +14.766 +21.372 +13.194 +20.457 +12.234 +9.315 +18.149 +38.569 +13.836 +17.671 +Non-trainable WC +OLMo-1B-DHCx4 +10.054 +13.587 +15.721 +28.689 +15.023 +22.186 +13.263 +20.594 +12.310 +9.390 +19.016 +38.959 +14.070 +17.912 +OLMo-1B-DHCx4 W/O tanh +10.092 +13.566 +15.666 +28.704 +14.873 +21.696 +13.242 +20.579 +12.276 +9.377 +19.272 +39.570 +13.963 +17.914 +Non-trainable Beta +OLMo-1B-DHCx4 +9.927 +13.354 +15.475 +28.417 +14.722 +21.454 +13.021 +20.185 +12.135 +9.228 +17.932 +38.005 +13.553 +17.493 +OLMo-1B-DHCx4 W/O tanh +9.932 +13.386 +15.510 +28.436 +14.641 +21.130 +13.051 +20.253 +12.142 +9.220 +18.478 +37.610 +13.766 +17.504 +35 + +PAGE 36 +Published as a conference paper at ICLR 2025 +Table 18: Losses of V3 validation sets for 1B model. +Method +c4_en +dolma_books +dolma_common-crawl +dolma_pes2o +dolma_reddit +dolma_stack +dolma_wiki +ice +m2d2_s2orc +pile +wikitext_103 +avg +OLMo-1B +2.702 +2.906 +2.722 +2.333 +2.980 +1.041 +2.487 +2.715 +3.199 +2.232 +2.663 +2.544 +Scaling n in DHC W/O tanh +OLMo-1B-DHCx1 W/O tanh +2.712 +2.928 +2.732 +2.349 +2.991 +1.045 +2.499 +2.721 +3.219 +2.246 +2.677 +2.556 +OLMo-1B-DHCx2 W/O tanh +2.676 +2.880 +2.698 +2.306 +2.961 +1.024 +2.456 +2.682 +3.174 +2.204 +2.617 +2.516 +OLMo-1B-DHCx4 W/O tanh +2.689 +2.890 +2.706 +2.317 +2.969 +1.030 +2.471 +2.697 +3.200 +2.213 +2.633 +2.529 +OLMo-1B-DHCx8 W/O tanh +2.674 +2.876 +2.695 +2.303 +2.960 +1.022 +2.454 +2.680 +3.176 +2.200 +2.616 +2.514 +Scaling n in DHC +OLMo-1B-DHCx1 +2.714 +2.927 +2.732 +2.346 +2.991 +1.045 +2.499 +2.723 +3.211 +2.245 +2.683 +2.556 +OLMo-1B-DHCx2 +2.694 +2.901 +2.712 +2.321 +2.976 +1.032 +2.478 +2.699 +3.202 +2.218 +2.642 +2.534 +OLMo-1B-DHCx4 +2.675 +2.876 +2.697 +2.301 +2.962 +1.021 +2.455 +2.679 +3.176 +2.200 +2.617 +2.515 +OLMo-1B-DHCx8 +2.677 +2.880 +2.701 +2.304 +2.964 +1.022 +2.456 +2.680 +3.177 +2.201 +2.614 +2.516 +Scaling n in SHC +OLMo-1B-SHCx2 +2.698 +2.907 +2.718 +2.325 +2.980 +1.032 +2.479 +2.700 +3.198 +2.221 +2.650 +2.537 +OLMo-1B-SHCx4 +2.689 +2.892 +2.711 +2.315 +2.973 +1.028 +2.472 +2.688 +3.195 +2.214 +2.633 +2.528 +Non-trainable WC +OLMo-1B-DHCx4 +2.695 +2.903 +2.716 +2.324 +2.978 +1.035 +2.477 +2.705 +3.201 +2.221 +2.649 +2.537 +OLMo-1B-DHCx4 W/O tanh +2.692 +2.899 +2.714 +2.321 +2.976 +1.032 +2.474 +2.695 +3.189 +2.219 +2.641 +2.532 +Non-trainable Beta +OLMo-1B-DHCx4 +2.679 +2.880 +2.697 +2.306 +2.961 +1.025 +2.458 +2.684 +3.188 +2.204 +2.612 +2.518 +OLMo-1B-DHCx4 W/O tanh +2.681 +2.886 +2.702 +2.306 +2.966 +1.024 +2.462 +2.680 +3.183 +2.204 +2.628 +2.520 +36 + +PAGE 37 +Published as a conference paper at ICLR 2025 +Table 19: Perplexities of V3 validation sets for 1B models. +Method +c4_en +dolma_books +dolma_common-crawl +dolma_pes2o +dolma_reddit +dolma_stack +dolma_wiki +ice +m2d2_s2orc +pile +wikitext_103 +avg +OLMo-1B +14.908 +18.289 +15.216 +10.305 +19.686 +2.832 +12.026 +15.098 +24.503 +9.319 +14.334 +14.229 +Scaling n in DHC W/O tanh +OLMo-1B-DHCx1 W/O tanh +15.064 +18.699 +15.356 +10.473 +19.909 +2.843 +12.167 +15.191 +25.013 +9.451 +14.540 +14.428 +OLMo-1B-DHCx2 W/O tanh +14.531 +17.817 +14.857 +10.038 +19.323 +2.783 +11.662 +14.608 +23.906 +9.061 +13.694 +13.844 +OLMo-1B-DHCx4 W/O tanh +14.711 +17.996 +14.975 +10.146 +19.479 +2.800 +11.830 +14.839 +24.524 +9.146 +13.917 +14.033 +OLMo-1B-DHCx8 W/O tanh +14.494 +17.749 +14.813 +10.000 +19.306 +2.779 +11.630 +14.587 +23.948 +9.021 +13.684 +13.819 +Scaling n in DHC +OLMo-1B-DHCx1 +15.093 +18.675 +15.360 +10.442 +19.909 +2.845 +12.174 +15.225 +24.810 +9.436 +14.632 +14.418 +OLMo-1B-DHCx2 +14.794 +18.190 +15.061 +10.191 +19.612 +2.806 +11.915 +14.870 +24.589 +9.187 +14.043 +14.114 +OLMo-1B-DHCx4 +14.514 +17.743 +14.829 +9.989 +19.343 +2.776 +11.650 +14.573 +23.948 +9.028 +13.689 +13.826 +OLMo-1B-DHCx8 +14.546 +17.807 +14.889 +10.011 +19.366 +2.779 +11.653 +14.579 +23.964 +9.030 +13.653 +13.843 +Scaling n in SHC +OLMo-1B-SHCx2 +14.854 +18.293 +15.150 +10.230 +19.689 +2.807 +11.934 +14.876 +24.478 +9.214 +14.150 +14.152 +OLMo-1B-SHCx4 +14.717 +18.028 +15.049 +10.121 +19.550 +2.796 +11.846 +14.699 +24.407 +9.155 +13.912 +14.025 +Non-trainable WC +OLMo-1B-DHCx4 +14.810 +18.224 +15.120 +10.215 +19.650 +2.816 +11.902 +14.954 +24.552 +9.220 +14.135 +14.145 +OLMo-1B-DHCx4 W/O tanh +14.756 +18.160 +15.095 +10.191 +19.613 +2.806 +11.868 +14.807 +24.273 +9.203 +14.021 +14.072 +Non-trainable Beta +OLMo-1B-DHCx4 +14.574 +17.820 +14.840 +10.038 +19.320 +2.787 +11.677 +14.647 +24.233 +9.059 +13.621 +13.874 +OLMo-1B-DHCx4 W/O tanh +14.593 +17.926 +14.904 +10.032 +19.405 +2.785 +11.724 +14.588 +24.108 +9.060 +13.839 +13.906 +37 diff --git a/results/first-principles-review-20261004/theory-sources/implicit2025.pdf b/results/first-principles-review-20261004/theory-sources/implicit2025.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3aabda041fa7d30f59cd2f0b79378f13d47b7135 --- /dev/null +++ b/results/first-principles-review-20261004/theory-sources/implicit2025.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67f5c1a93dfe36b13c531725fe377b4b6ff7ea452fb1f324d6af7f01a3d57515 +size 1917956 diff --git a/results/first-principles-review-20261004/theory-sources/implicit2025.txt b/results/first-principles-review-20261004/theory-sources/implicit2025.txt new file mode 100644 index 0000000000000000000000000000000000000000..c0ce8da00b1bd1aee62618cd19443b6b9bde010b --- /dev/null +++ b/results/first-principles-review-20261004/theory-sources/implicit2025.txt @@ -0,0 +1,1860 @@ +PAGE 1 +How do Transformers Learn Implicit Reasoning? +Jiaran Ye♠† +Zijun Yao♠† +Zhidian Huang♠ +Liangming Pan♡‡ +Jinxin Liu♠ +Yushi Bai♠ +Amy Xin♠ +Weichuan Liu♢ +Xiaoyin Che♢ +Lei Hou♠‡ +Juanzi Li♠ +♠DCST, BNRist; KIRC, Institute for Artificial Intelligence, Tsinghua University, China +♡MOE Key Lab of Computational Linguistics, Peking University, China +♢Siemens AG, China +{yejr23, yaozj20}@mails.tsinghua.edu.cn +{houlei, lijuanzi}@tsinghua.edu.cn +Abstract +Recent work suggests that large language models (LLMs) can perform multi-hop +reasoning implicitly—producing correct answers without explicitly verbalizing +intermediate steps—but the underlying mechanisms remain poorly understood. In +this paper, we study how such implicit reasoning emerges by training transformers +from scratch in a controlled symbolic environment. Our analysis reveals a three- +stage developmental trajectory: early memorization, followed by in-distribution +generalization, and eventually cross-distribution generalization. We find that train- +ing with atomic triples is not necessary but accelerates learning, and that second-hop +generalization relies on query-level exposure to specific compositional structures. +To interpret these behaviors, we introduce two diagnostic tools: cross-query seman- +tic patching, which identifies semantically reusable intermediate representations, +and a cosine-based representational lens, which reveals that successful reason- +ing correlates with the cosine-base clustering in hidden space. This clustering +phenomenon in turn provides a coherent explanation for the behavioral dynamics +observed across training, linking representational structure to reasoning capability. +These findings provide new insights into the interpretability of implicit multi-hop +reasoning in LLMs, helping to clarify how complex reasoning processes unfold +internally and offering pathways to enhance the transparency of such models. +§ +https://github.com/Jiaran-Ye/ImplicitReasoning +1 +Introduction +Large language models (LLMs) demonstrate strong performance on complex, multi-step reasoning +tasks [9, 7, 29, 1, 32, 19, 14]. Typically, these reasoning abilities are elicited using chain-of- +thought (CoT) prompting, which encourages models to explicitly articulate intermediate reasoning +steps [28, 35, 6, 33, 30]. Beyond CoT, recent studies indicate that LLMs can also engage in implicit +reasoning [37, 5, 11, 15], producing correct answers without verbalizing intermediate steps. +While implicit reasoning is widely acknowledged, the internal mechanisms that empower this ability +remain unclear. In this paper, we aim to uncover the internal processes of implicit reasoning by +examining a concrete, structured scenario: multi-hop implicit reasoning, where the model must +answer compositional queries (e.g., (e1, r1, r2) →e3) by implicitly traversing an intermediate entity +e2, without explicitly verbalizing it. A fundamental question in this scenario is that: does the +model genuinely conduct step-by-step reasoning internally, or is it merely recalling the answer from +its memorized knowledge? Although both behaviors can produce correct outcomes, they reflect +†Equal Contribution. +‡Corresponding Author. +39th Conference on Neural Information Processing Systems (NeurIPS 2025). + +PAGE 2 +Figure 1: We track the evolution of bridge entity representations across training. In the memory +phase (left), intermediate entities are explicitly decodable but geometrically scattered. In the implicit +reasoning phase (right), representations converge in cosine space, supporting structured multi-hop +reasoning through early-to-late layer transitions. Queries that share an bridge entity are composed for +cosine-based representation analysis. +fundamentally distinct cognitive processes. This observation motivates our central research question: +How do LLMs acquire and perform implicit reasoning during training and inference? +Existing studies that investigate implicit reasoning often rely on pretrained LLMs whose training +data lacks precise experimental control, making it challenging to conclusively determine whether +models have genuinely learned implicit multi-step reasoning or instead rely on its prior knowledge +or shortcut solutions [12, 34, 5]. Symbolic datasets [25, 27, 26] partially alleviate this concern by +training models from scratch, yet they still lack the fine-grained experimental control and behavioral +granularity necessary for deeper analysis. To address these limitations, we construct an extended +symbolic environment, featuring targeted omissions and query-level variations, to precisely identify +whether implicit reasoning and generalization truly emerge. +To facilitate the analysis under our symbolic environment, we introduce two diagnostic tools that +overcome specific limitations of prior methods: (1) cross-query semantic patching, which enhances +causal interpretability by locating intermediate entity representations based on their semantic trans- +ferability across queries rather than solely their impact on final outputs; and (2) a cosine-based +representational lens, which avoids assumptions inherent in decoding-based probing by examining +structural consistency of internal representations across reasoning contexts. Together, these tools +enable precise examination of the internal processes driving implicit reasoning. +Our empirical analysis begins with a behavioral study conducted under fine-grained experimental +control (Section 2). Under a complete training configuration, we observe that multi-hop implicit +reasoning emerges in three distinct stages: memorization, in-distribution generalization, and finally +cross-distribution generalization. Through ablation studies, we further demonstrate that while expo- +sure to in-distribution (ID) triples is not strictly necessary for achieving in-distribution generalization, +its absence significantly delays the onset of this behavior. Additionally, we find that generalization to +second-hop queries fails unless the model encounters exact compositional structures during training, +revealing a strong dependency on query-level exposure. +These behavioral insights reveal previously unreported patterns, motivating us to revisit and probe the +internal mechanisms of implicit reasoning. In Section 3, we first use cross-query semantic patching +to localize intermediate entity representations, typically identifying them within the middle layers +2 + +PAGE 3 +corresponding to the r1 tokens. We then test the common assumption that intermediate entities are +explicitly decodable from internal states and find this assumption inconsistent with our observed +reasoning behavior. This disconnect leads us to adopt a geometric perspective, wherein successful +reasoning strongly correlates with consistent clustering of intermediate representations within cosine +similarity space (Figure 1). +In Section 4, we close the loop by explicitly connecting these internal representational mechanisms +to external behavioral patterns. We demonstrate that successful generalization robustly correlates +with the clustering structure of intermediate representations across diverse queries and training +distributions. Although in-distribution (ID) triple supervision is not required to induce this clustering, +it substantially accelerates its emergence by constraining the representational space early in training. +Finally, we identify that what appears to be first-hop generalization to out-of-distribution (OOD) +triples is actually an artifact arising from representational alignments induced by ID exposure, +highlighting the fragile and data-dependent nature of implicit generalization. +Collectively, our results provide a comprehensive account of how implicit multi-hop reasoning +emerges within LLMs — grounded in observable behaviors, elucidated through mechanistic analyses, +and offering foundational insights for future studies on model interpretability. +2 +Behavioral Signatures of Implicit Reasoning under Fine-Grained Control +Existing studies on implicit reasoning fall into two broad categories, each with notable limitations. +(1) Analyses based on pretrained LLMs operate in an uncontrolled setting where the training data +are opaque—making it difficult to distinguish genuine reasoning from memorization. (2) In contrast, +recent works adopt symbolic datasets with synthetic training from scratch [25], but primarily focus +on dataset-level trends, without isolating what specific training signals are necessary for solving +each compositional query. +We argue that an ideal analysis setting should satisfy three key properties: (1) compositional struc- +ture, to support multi-step inference; (2) fine-grained control, to support query-level ablations and +conditionally constructed variants; and (3) behavioral resolution, to distinguish between memo- +rization, generalization, and reasoning. With these goals in mind, we construct a symbolic training +environment that extends prior datasets with new configurations and targeted omissions, and reveals +several behavioral phenomena not captured in prior work. +To achieve this, we adopt GPT-2 as our base model due to its balance of capacity and tractability, and +verify the scalability of results using larger models. Full training details are provided in Appendix G. +2.1 +Data Construction: Fine-Grained Control for Compositional Reasoning +To enable fine-grained behavioral analysis, we extend the symbolic reasoning setup of Wang et al. +[25] with expressive query-level control configurations. The data comprises atomic triples and +compositional queries: +• Atomic Triples. Each atomic fact is represented as a triple (e1, r1) →e2. This formulation mimics +simple factual relations such as (Alice, mother-of) →Beth and (Beth, sister-of) →Carol, serving +as the atomic unit of the reasoning environment. The triples are partitioned into two subsets: +In-Distribution (ID) Triples are used in both standalone form and as components of multi-hop +training queries; Out-of-Distribution (OOD) Triples appear in training data only in standalone +form, and are excluded from multi-hop composition, enabling the creation of test queries involving +out-of-distribution reasoning. Note that ID and OOD triples share the same set of entities and +relations. +• 2-Hop Queries. Each reasoning task takes the form of a compositional chain (e1, r1, r2) →e3, +where the model performs implicit reasoning over an bridge entity e2. For instance, the model +receives only the compositional query (Alice, mother-of, sister-of) and is expected to predict the +correct target Carol, implicitly reasoning through the intermediate entity Beth. We distinguish: +Test-OI: test queries where the first hop comes from an OOD triple and the second hop from an ID +triple; Train-II: queries with both hops from ID triples used during training. Other query types, +such as Test-II, Test-IO, and Test-OO, follow similar definitions. +3 + +PAGE 4 +Training Configurations. Our base configuration (Figure 6a) includes all atomic triples (ID and +OOD) and the full set of Train-II queries, and evaluate on Test-II, Test-OI, Test-OO, and Test-IO, +allowing comprehensive generalization assessment. To isolate the conditions for generalization, we +define a flexible family of training variants that omit specific triples, restrict compositional roles, +or remove entire subsets, allowing targeted query-level ablations. This design supports controlled +investigations into the functional dependencies behind implicit reasoning behaviors. +Extension to 3-hop Reasoning. Although our main analyses focus on 2-hop queries, the same +construction framework naturally applies to 3-hop settings, exhibiting consistent behavioral and +mechanistic patterns. For more details, refer to Appendix C. +Together, these configurations serve as the foundation for our study. Further dataset construction +details and illustrations are available in Appendix B. +2.2 +Three-Stage Generalization +Leveraging the base configuration introduced in Section 2.1, we track model performance throughout +training and observe a striking behavioral trajectory that unfolds in three distinct phases (Figure 2): +104 +105 +106 +107 +Checkpoints (Training Steps) +0 +20 +40 +60 +80 +100 +Accuracy (%) +Phase I +Phase II +Phase III +ID Triples +OOD Triples +Train-II +Test-II +Test-OI +ID Cohesion +Test-OO +OOD Alignment +Test-IO +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Average Cosine Similarity +Figure 2: Training dynamics under the base configuration, revealing three distinct phases. Accuracy +curves track model performance on different query types, while dashed lines plot the ID Cohesion +and OOD Alignment scores (Section 3.3). +Phase I: Memorization. The initial stage involves quickly fitting the training data, including atomic +facts and 2-hop compositions. The model memorizes these facts, but generalization to unseen queries +remains minimal. +Phase II: ID Generalization. After memorization saturates, the model begins to generalize to +Test-II queries (unseen ID-ID compositions), marking a shift from memorization to compositional +generalization within ID, akin to the grokking phenomenon described by Wang et al. [25]. +Phase III: Cross-Distribution Reasoning. The model next learns to generalize across distributions, +gradually incorporating OOD triples in the first hop while maintaining the ID in the second. This +transition is slower than Phase II and requires more training. Building on the grokking phenomenon, +our analysis uncovers this additional phase of generalization across distributional boundaries. +Interestingly, generalization fails consistently when the second hop is from OOD triples, revealing +a stronger bottleneck in the second relational step. These phases show that reasoning develops +in structured stages, each with distinct patterns of success and failure, highlighting the need to +treat reasoning not as a monolithic ability, but as a set of behaviors with separable developmental +conditions. +2.3 +ID Triples Are Not Required for ID Generalization—but Accelerate It +Prior work has repeatedly observed that while models can correctly answer individual atomic triples, +they often fail to generalize to 2-hop queries constructed by composing those same triples[3, 31, 42]. +Additionally, in Section 2.2, we observe that our model quickly memorized atomic triples (Phase I) +but took longer to generalize to Test-II queries. These findings raise a natural question: Are atomic +ID Triples actually necessary for learning ID-based 2-hop reasoning? +4 + +PAGE 5 +103 +104 +105 +106 +Checkpoints (Training Steps) +0 +25 +50 +75 +100 +Accuracy (%) +Train-II +Test-II +(a) Train-II only +104 +105 +106 +Checkpoints (Training Steps) +0 +25 +50 +75 +100 +Accuracy (%) +ID Triples +Train-II +Test-II +(b) Train-II + ID triples +Figure 3: Training trajectories under two configurations used in Section 2.3. (a) Only Train-II queries +are used, with no exposure to atomic ID triples. (b) Both Train-II queries and atomic ID triples are +included in training. +To investigate this, we test a minimal training configuration that excludes both ID and OOD Triples, +using only Train-II queries. Surprisingly, the model still generalizes to unseen ID combinations +Test-II (Figure 3a). That is, training with Train-II alone is sufficient for ID-based generalization. +However, when comparing this minimalist setting to a variant where ID Triples are included1 +alongside Train-II, we found that generalization to Test-II occurs significantly earlier (Figure 3b), +suggesting that while atomic facts are not required for generalization, they accelerate learning. +2.4 +Second-Hop Generalization Requires Query-Level Training Match +While the model can generalize when OOD triples appear in the first hop (Section 2.2), it consistently +fails when the OOD component is in the second hop. This raises a natural follow-up question: What +training data is necessary to enable second-hop generalization within the ID domain? +Building on Section 2.3, where training with only Train-II queries still led to ID generalization, we +perform a targeted ablation to isolate the role of second-hop coverage. Specifically, we remove a +subset of atomic triples (e.g., (eB, r5, eF )) from being used as second hops in any Train-II query. +We then test whether the model could correctly answer Test-II queries that involved these excluded +triples as second-hop (Figure 6b). +We find that the model consistently fails to answer these Test-II queries, while performance on other +queries remained unaffected, even when the same atomic triples were used in the first hop. This +confirms that second-hop generalization requires query-level training match: the model must +encounter the specific second-hop composition during training to generalize over it. Exposure to the +same facts in other structural roles is not sufficient. +To further validate this finding, we replicat the ablation under the full base configuration (Ap- +pendix D.1) and observe the same failure. Additionally, we analyze how second-hop exposure +frequency impacts query acquisition order (Appendix D.2). We found that Test-II queries involving a +particular atomic triple as the second hop were answered correctly earlier when that atomic triple +appeared more frequently as a second hop during training. +3 +Locating and Characterizing Reasoning Representations +In Section 2, we observed surprising behavioral phenomena that offer new insights into implicit +reasoning in Transformers. These findings challenge prevailing assumptions, such as the necessity of +exposure to atomic facts [40, 36] or the impossibility of OOD generalization [25]. +To better understand these behaviors, we shift our focus from what the model does to how the +model achieves it internally. Specifically, we examine the intermediate entity that connects the two +relational steps. Any correct solution, at least implicitly, passes through this latent bridge, making +it a key target for probing the model’s reasoning process. To this end, we first introduce the causal +1We exclude OOD Triples from both configurations to ensure comparability: since the “Train-II only” +configurations contains no OOD facts, generalization to Test-OI is inherently impossible. +5 + +PAGE 6 +probing method Cross-Query Semantic Patching (Section 3.1) to locate these intermediate entities in +representations. We then revisit whether internal states are decodable using logit lens (Section 3.2). +We finally explore how geometric regularity in these representations supports the model’s ability to +generalize across queries (Section 3.3). +3.1 +Locating Intermediate Entity Representations via Cross-Query Patching +To analyze how transformers internally represent intermediate reasoning steps, a crucial first step is +to identify where such representations are encoded in the model’s hidden states. +Existing methods such as linear probing and causal patching offer only partial insight. Linear probing +reveals correlations between hidden states and output tokens, but not their causal role in reasoning. +Causal patching assesses causal influence, typically measures whether a random source activation +affects the target’s output, but doesn’t assess what the activation semantically represents [25]. +Cross-Query Semantic Patching. To go beyond correlation or superficial causal influence, we +introduce cross-query semantic patching, a method designed to test whether a hidden representation +encodes a semantically valid intermediate entity. Specifically, given a source query (e1, r1, r2), we +test a set of candidate hidden states from different layers and positions (e.g., layer 3 at the r1 position) +that may contain the bridge entity representation. For each candidate, we insert its hidden vector into +a structurally similar target query (e5, r6, r7) at the same position, replacing the original hidden state. +e1 +r1 +r2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +Layer 8 +0 +20 +40 +60 +80 +100 +Patching Success Rate (%) +Figure 4: Average patching +success rate across layers +and token positions. +If the patched model’s prediction changes from the original reasoning +path r7(r6(e5)) to r7(r1(e1)), this indicates that the inserted represen- +tation carries transferable semantic information corresponding to the +bridge entity. +We apply this patching procedure across multiple layers and token +positions, with three settings that differ in both the source of the in- +termediate entity and the model’s training stage: (1) Phase II with +ID-derived intermediate entities, (2) Phase III with ID-derived interme- +diate entities, and (3) Phase III with OOD-derived intermediate entities. +This alignment ensures that patching is conducted under conditions +where the model is capable of reasoning over the relevant intermediate +entity type. For completeness, we also report Phase I results, where +patching yields negligible success, confirming that reasoning-relevant +representations emerge only after generalization. +Detailed per-setting results are presented in Appendix F. We report the +average patching success rate across these three settings in Figure 4. +This aggregated result shows that effective patching occurs primarily +at the r1 token position in the middle layers. In the following analyses, +we use layer 5 at the r1 token position of our 8-layer GPT-2 model +as the reference point, denoting the hidden state as h5 +r1. +3.2 +Explicitly Decodable̸ = Implicitly Informative +Having located the positions encoding intermediate entities, we next ask whether their internal role +can be explained using existing interpretability tools. A key assumption in prior work is that if +a hidden state encodes an intermediate entity, it should be decodable into a human-interpretable +token, for example via the logit lens [18, 16, 33, 22, 40]. We test this assumption by measuring the +decodability of h5 +r1, and examining whether decodability aligns with the emergence of reasoning +behavior across training phases. +Setup. We adopt the logit lens to evaluate decoding performance in two modes: (1) Immediate +probing: projecting the extracted hidden state onto the output vocabulary directly. (2) Full-run +probing: patching the extracted hidden state into a randomly selected query at the corresponding +position, and decoding it after processing through the model’s layers. These methods assess whether +the hidden state contains a token-level signal or whether the model itself can internalize and recognize +6 + +PAGE 7 +Table 1: Success rates (%) of explicitly decoding intermediate entities from h5 +r1 across reasoning +phases and decoding methods. +Source +Immediate Probing +Full-run Probing +Phase I +Phase II +Phase III +Phase I +Phase II +Phase III +ID-derived +92.1 +98.8 +99.9 +97.1 +99.9 +99.9 +OOD-derived +67.7 +81.3 +99.8 +83.7 +98.6 +99.7 +it. For each phase, we compute the decoding success rate for intermediate entities grouped by their +origin—either from ID or OOD triples2. +Result 1: Decodability does not correlate with reasoning emergence. As shown in Table 1, +decoding success remains high and stable for ID-derived representations across all phases. However, +implicit reasoning capabilities only emerge after Phase II, suggesting that decodability alone does not +explain reasoning emergence. +Result 2: No decodability gap between ID and OOD sources during cross-distribution gener- +alization. In Phase II, while the model generalizes to ID-ID (Test-II) queries but fails on ID-OOD +(Test-OI) queries, there is no significant difference in decoding success between ID-derived and OOD- +derived representations. This further demonstrates that representations can be equally decodable yet +differ in whether they are functionally recognized and utilized by the model. +Implication. These results indicate that explicit decodability alone cannot explain when or how a +representation contributes to reasoning. Even when a representation can be decoded correctly, the +model may not rely on it for reasoning. +To further probe the role of explicit decoding in reasoning, we constructed a controlled setting where +the model was incentivized to represent intermediate entities in a decodable form. Interestingly, +the model initially attempts this strategy but quickly abandons it, indicating that the model prefers +non-explicit representations for generalization. We provide details of this experiment in Appendix E. +3.3 +Geometric Regularity of Intermediate Representations via Cosine Lens +The gap between explicit decodability and actual usage motivates a different approach. Instead of +asking “Can we decode what this hidden state?”, we ask “How is this representation organized +across different contexts?” +Most prior work focuses on decoding representations, but we take the reverse approach: given a +known intermediate entity, can we identify recurring structure in how the model represents it across +contexts to achieve consistent representations [24]? This reverse mapping is enabled by our earlier +analysis in Section 3.1, which identifies the position h5 +r1 encoding the intermediate entity. At this +anchor, we collect hidden states from queries sharing the same intermediate entity (Figure 1), and +examine whether these vectors reflect a consistent internal pattern. +To assess consistency, we focus on structural alignment in the model’s embedding space, using cosine +similarity—a common metric for semantic proximity in high-dimensional representations[8, 21, 13]. +This allows us to examine whether the model reuses internal abstractions through representational +geometry, instead of relying on explicit decodability. +Case Study: Visualizing Representational Clustering. To gain an initial sense of the representa- +tional patterns that emerge during training, we visualize the hidden states of a randomly selected +intermediate entity that appears in multiple two-hop queries. For this entity, we extract h5 +r1 across +relevant queries instances (where the intermediate entity is either ID-derived or OOD-derived) and +compute pairwise cosine distances (defined as 1 −cosine similarity) between them. We then project +these high-dimensional vectors into two dimensions using Multidimensional Scaling (MDS) +As shown in Figure 5, hidden states for a common intermediate entity form distinct geometric patterns +across the phases. In Phase I, both ID-derived and OOD-derived representations are scattered; +in Phase II, ID-derived representations form tight cosine-space clusters, marking the transition to +2Notably, the origin of an intermediate entity depends solely on the first hop and is independent of the +second-hop configuration. +7 + +PAGE 8 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +Component 1 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +Component 2 +ID-derived +OOD-derived +(a) Phase I +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +Component 1 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +Component 2 +ID-derived +OOD-derived +(b) Phase II +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +Component 1 +1.00 +0.75 +0.50 +0.25 +0.00 +0.25 +0.50 +0.75 +1.00 +Component 2 +ID-derived +OOD-derived +(c) Phase III +Figure 5: Cosine-space projection of a random intermediate entity across three training phases. +in-distribution reasoning; In Phase III, OOD-derived representations also begin to align with the +ID-based cluster, signaling cross-distribution generalization. This suggests that latent variables are +reused not by explicit decoding, but through the emergence of a consistent geometric structure. +Quantifying Representational Convergence. Encouraged by this observation, we next quantify +the consistency of entity-level representations across the full dataset. We define two metrics: (1) +ID Cohesion Score: the average cosine similarity between ID-derived representations and their +centroid, reflecting in-distribution consistency. (2) OOD Alignment Score: the average cosine +similarity between OOD-derived representations and the same ID centroid, reflecting how well the +model unifies cross-distribution representations. These scores are computed on a per-entity basis and +averaged across all intermediate entities. +Tracking these scores, we find that the ID Cohesion Score rises steadily, aligning with Test-II +generalization, while the OOD Alignment Score starts increasing later, following the rise in Test-OI +performance (Figure 2). This suggests that successful implicit reasoning relies on representational +consistency across diverse contexts: only when hidden states for the same entity align closely in +cosine space can they be consistently reused for multi-hop inference. Thus, cosine-space clustering +emerges as the model’s internal mechanism for semantic abstraction and generalization. +4 +Closing the Loop: Explaining Behavioral Phenomena +Drawing on the mechanistic evidence in Section 3.3, we revisit our empirical observations in Section 2 +and explain how they emerges from the internal dynamics of representation formation. +4.1 +Clustering of OOD-Derived Representations Driven by ID Supervision +In Phase III, where the model successfully performs OOD reasoning at the first hop, the clustering of +OOD-derived representations in cosine space plays a crucial role. However, while the clustering of +ID-derived representations is expected due to direct supervision from Train-II queries, the alignment +of OOD-derived representations with ID clusters is less intuitive. OOD-derived entities are never +explicitly supervised as intermediate steps in multi-hop queries, making their eventual clustering with +ID entities surprising. +We hypothesize that frequent exposure to atomic triples is the driving factor behind the observed +alignment. This exposure leads the model to assimilate the OOD representations into the existing +ID clusters, thereby stabilizing them. To validate this hypothesis, we designed an ablation study +where we varied the ID/OOD ratio across three configurations: 0.8/0.2, 0.5/0.5, and 0.3/0.7. Only +the 0.8/0.2 ratio demonstrates successful generalization into Phase III, effectively answering Test-OI +queries, while the others failed to achieve this stage. Detailed results are provided in Appendix H. +4.2 +ID Triple Queries Accelerate Generalization by Constraining the Representation Space +Knowing that generalization relies on the clustering of intermediate representations, we link the +acceleration effect (Section 2.3) brought by ID triple to the property of autoregressive Transformers: +8 + +PAGE 9 +both ID triple queries (e1, r1) and two-hop queries (e1, r1, r2) produce the same hidden state at the +r1 token position due to causal masking, where the model only attends to tokens preceding r1. +Since our mechanistic analyses anchor at r1 position (h5 +r1), the hidden states we study are indis- +tinguishable across both query formats. This means ID triple supervision directly shapes the same +representations used in multi-hop reasoning. While the ID triple task optimizes for explicit decod- +ing—mapping (e1, r1) to e2—it doesn’t guarantee functional reasoning (Section 3.2). However, it +plays a crucial role by constraining the r1 hidden state to lie within a subspace that supports entity +decoding, thereby limiting the model’s search space during generalization to a smaller region. +To validate this mechanism, we construct an ablation configuration that removes a subset of ID triple +(e.g., (eA, r1, eB)) from training, while still including their corresponding two-hop compositions +(e.g., (eA, r1, r2)) in Train-II. We then test whether the model can recover the held-out ID triples +at test time (e.g., given input (eA, r1), predict eB). The results align with expectations: the model +is able to correctly predict eB (see Appendix I for details). This outcome demonstrates that the r1 +hidden state associated with (eA, r1) lies in the same region as other Train-II queries sharing latent +(eB)—a region already shaped by remaining ID triples involving eB (e.g., (eX, r7, eB)): +(eA, r1) +| {z } +held-out triple query +share r1 position with +−−−−−−−−−−−→ + +(eA, r1, (eB), r2) +(eX, r7, (eB), r3) + +| +{z +} +Train-II with latent (eB) +constrained by +−−−−−−−→ +(eX, r7) +| {z } +retained ID supervision +decodable +−−−−−→eB +This supports the claim that ID triple supervision constrains the r1 hidden state to a decodable region, +facilitating clustering. Consequently, as the model enters Phase II and learns two-hop reasoning, it +refines representations within an already structured subspace, speeding up representational conver- +gence and behavioral generalization compared to a without ID configuration where clustering must +be learned from scratch. +4.3 +Why the First Hop, and Only the First Hop, Generalizes to OOD? +The intended supervision signal from Train-II queries is to teach the model a structured two-step +reasoning process: token(e1) +r2hop +1 +−−→latent(e2) +r2hop +2 +−−→token(e3), where both r2hop +1 +and r2hop +2 +are +relations applied in a purely compositional context, independent of atomic triple learning (Section 2.3). +In contrast, atomic triples expose the model to direct mappings of the form: token(e1) +ratomic +1 +−−−→ +token(e2), which train a shallow predictive behavior over observed fact pairs. +It is therefore surprising that models can correctly answer Test-OI queries, suggesting that the +mapping ratomic +1 +somehow transfers into r2hop +1 +, allowing the model to reuse OOD-derived token(e2) +representations for implicit reasoning. However, this apparent generalization is in fact a side-effect of +representational alignment induced by ID triples. +As established in Section 4.2, the hidden state at the r1 token position is shared across atomic and +2-hop queries, encouraging the model to align latent(e2) with token(e2) for ID triples. Separately, as +shown in Section 4.1, the model gradually pulls OOD-derived representations into the same cosine- +space cluster as ID-derived representations. These two mechanisms together enables OOD-derived +latent(e2) to match the expected format of r2hop +1 +: +OOD-derived token(e2) +pulled by +−−−−−−→ID-derived token(e2) +align with +−−−−−−−→latent(e2), +In this sense, the model doesn’t truly generalize OOD ratomic +1 +into r2hop +1 +—it “cheats” by reusing shared +representation scaffolds shaped by ID triples. The success on Test-OI queries is thus illusory: what +appears to be a generalization is in fact a misalignment between model structure and supervision. +Viewed from this perspective, the failure of second-hop generalization is not an exception. Unlike +the first hop, the model cannot rely on representational anchoring from shared prefixes and must +learn behavior through direct query-level supervision. In contrast, first-hop OOD generalization is an +exception, made possible by incidental alignment from overlapping input contexts, hence this does +not extend to deeper reasoning. A similar pattern holds in 3-hop reasoning: generalization is only +9 + +PAGE 10 +observed when the reasoning path beyond the first hop remains within ID (Test-III and Test-OII), +highlighting the need for explicit supervision in later steps (Appendix C). +We hypothesize that without the representational anchoring effect induced by ID supervision, OOD +triples fail to form functionally useful intermediate representations. To test this, we construct a +configuration with only OOD triples and Train-II queries, removing ID triples. In this setup, the +model fails on Test-OI generalization, confirming that in the absence of ID-based anchoring, OOD +triples alone cannot support implicit multi-hop reasoning. See Appendix J for details. +5 +Discussion +Our study, conducted in a controlled symbolic dataset environment, reveals key insights into the mech- +anisms of implicit reasoning in transformers, highlighting specific patterns and behaviors that clarify +how multi-hop implicit reasoning emerges. These findings may provide valuable answers to existing +questions about the implicit reasoning capabilities of LLMs. For instance, our observation regarding +the requirement for query-level match offers a potential explanation for why knowledge learned from +single-hop tasks does not easily transfer to multi-hop reasoning in LLMs [3, 39, 31]. However, it is +important to note that LLMs operate with far richer and more complex knowledge bases, and their +internal knowledge interaction mechanisms likely differ from those in our controlled environment. +Therefore, while our findings offer useful insights, they should be regarded as preliminary guidance +rather than a complete explanation of the reasoning dynamics in LLMs. +Acknowledgement +This work is supported by Beijing Natural Science Foundation (L243006), National Natural Science +Foundation of China (62476150), and the Tsinghua University (Department of Computer Science +and Technology)-Siemens Ltd., China Joint Research Center for Industrial Intelligence and Internet +of Things (JCIIOT). +References +[1] Anthropic. Claude 3.7 sonnet, 2025. URL https://www.anthropic.com/claude/sonnet. Accessed: +2025-05-15. +[2] Anthropic. Reasoning models don’t always say what they think, 2025. URL https://www.anthropic. +com/research/reasoning-models-dont-say-think. Accessed: 2025-05-15. +[3] Mikita Balesni, Tomek Korbak, and Owain Evans. The two-hop curse: Llms trained on a-> b, b-> c fail to +learn a–> c. arXiv preprint arXiv:2411.16353, 2024. +[4] Aryasomayajula Ram Bharadwaj. Understanding hidden computations in chain-of-thought reasoning. +arXiv preprint arXiv:2412.04537, 2024. +[5] Eden Biran, Daniela Gottesman, Sohee Yang, Mor Geva, and Amir 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, pages 14113–14130, 2024. +[6] Qiguang Chen, Libo Qin, Jinhao Liu, Dengyun Peng, Jiannan Guan, Peng Wang, Mengkang Hu, Yuhang +Zhou, Te Gao, and Wanxiang Che. Towards reasoning era: A survey of long chain-of-thought for reasoning +large language models. arXiv preprint arXiv:2503.09567, 2025. +[7] Google DeepMind. +Gemini 2.5 pro: Our most intelligent ai model, 2025. +URL https://blog. +google/technology/google-deepmind/gemini-model-thinking-updates-march-2025/. Ac- +cessed: 2025-05-15. +[8] Valeriya Goloviznina and Evgeny Kotelnikov. I’ve got the “answer”! interpretation of llms hidden states +in question answering. In International Conference on Applications of Natural Language to Information +Systems, pages 106–120. Springer, 2024. +[9] Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Ruoyu Zhang, Runxin Xu, Qihao Zhu, Shirong +Ma, Peiyi Wang, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement +learning. arXiv preprint arXiv:2501.12948, 2025. +10 + +PAGE 11 +[10] Shibo Hao, Sainbayar Sukhbaatar, DiJia Su, Xian Li, Zhiting Hu, Jason Weston, and Yuandong Tian. +Training large language models to reason in a continuous latent space. arXiv preprint arXiv:2412.06769, +2024. +[11] Bairu Hou, Yang Zhang, Jiabao Ji, Yujian Liu, Kaizhi Qian, Jacob Andreas, and Shiyu Chang. Thinkprune: +Pruning long chain-of-thought of llms via reinforcement learning. arXiv preprint arXiv:2504.01296, 2025. +[12] Tianjie Ju, Yijin Chen, Xinwei Yuan, Zhuosheng Zhang, Wei Du, Yubin Zheng, and Gongshen Liu. +Investigating multi-hop factual shortcuts in knowledge editing of large language models. In Proceedings +of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), +pages 8987–9001, 2024. +[13] William Jurayj, William Rudman, and Carsten Eickhoff. Garden path traversal in gpt-2. In Proceedings of +the Fifth BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP, pages 305–313, +2022. +[14] Mikail Khona, Maya Okawa, Jan Hula, Rahul Ramesh, Kento Nishi, Robert P. Dick, Ekdeep Singh Lubana, +and Hidenori Tanaka. Towards an understanding of stepwise inference in transformers: A synthetic +graph navigation model. In Forty-first International Conference on Machine Learning, ICML 2024, +Vienna, Austria, July 21-27, 2024. OpenReview.net, 2024. URL https://openreview.net/forum?id= +8VEGkphQaK. +[15] KimiTeam, Angang Du, Bofei Gao, Bowei Xing, Changjiu Jiang, Cheng Chen, Cheng Li, Chenjun Xiao, +Chenzhuang Du, Chonghua Liao, et al. Kimi k1. 5: Scaling reinforcement learning with llms. arXiv +preprint arXiv:2501.12599, 2025. +[16] Zhaoyi Li, Gangwei Jiang, Hong Xie, Linqi Song, Defu Lian, and Ying Wei. Understanding and patching +compositional reasoning in llms. In Findings of the Association for Computational Linguistics ACL 2024, +pages 9668–9688, 2024. +[17] Wenjie Ma, Jingxuan He, Charlie Snell, Tyler Griggs, Sewon Min, and Matei Zaharia. Reasoning models +can be effective without thinking. arXiv preprint arXiv:2504.09858, 2025. +[18] nostalgebraist. Interpreting gpt: The logit lens, 2020. URL https://www.lesswrong.com/posts/ +AcKRB8wDpdaN6v6ru/interpreting-gpt-the-logit-lens. Accessed: 2025-05-01. +[19] OpenAI. +Introducing openai o3 and o4-mini, 2025. +URL https://openai.com/index/ +introducing-o3-and-o4-mini/. Accessed: 2025-05-15. +[20] Jacob Pfau, William Merrill, and Samuel R Bowman. Let’s think dot by dot: Hidden computation in +transformer language models. arXiv preprint arXiv:2404.15758, 2024. +[21] Ella Rabinovich, Samuel Ackerman, Orna Raz, Eitan Farchi, and Ateret Anaby-Tavor. Predicting question- +answering performance of large language models through semantic consistency. In The 2023 Conference +on Empirical Methods in Natural Language Processing, volume 10, page 138, 2023. +[22] Mansi Sakarvadia. Towards interpreting language models: A case study in multi-hop reasoning. arXiv +preprint arXiv:2411.05037, 2024. +[23] Yuval Shalev, Amir Feder, and Ariel Goldstein. Distributional reasoning in llms: Parallel reasoning +processes in multi-hop reasoning. arXiv preprint arXiv:2406.13858, 2024. +[24] Boshi Wang and Huan Sun. Is the reversal curse a binding problem? uncovering limitations of transformers +from a basic generalization failure. arXiv preprint arXiv:2504.01928, 2025. +[25] Boshi Wang, Xiang Yue, Yu Su, and Huan Sun. Grokking of implicit reasoning in transformers: A +mechanistic journey to the edge of generalization. Advances in Neural Information Processing Systems, +37:95238–95265, 2024. +[26] Siwei Wang, Yifei Shen, Shi Feng, Haoran Sun, Shang-Hua Teng, and Wei Chen. +ALPINE: un- +veiling the planning capability of autoregressive learning in language models. +In Amir Glober- +sons, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and +Cheng Zhang, editors, Advances in Neural Information Processing Systems 38: +Annual Confer- +ence on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, De- +cember 10 - 15, 2024, 2024. +URL http://papers.nips.cc/paper_files/paper/2024/hash/ +d848cb2c84f0bba7f1f73cf232734c40-Abstract-Conference.html. +11 + +PAGE 12 +[27] Xinyi Wang, Alfonso Amayuelas, Kexun Zhang, Liangming Pan, Wenhu Chen, and William Yang Wang. +Understanding reasoning ability of language models from the perspective of reasoning paths aggregation. +In International Conference on Machine Learning, pages 50026–50042. PMLR, 2024. +[28] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny +Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural +information processing systems, 35:24824–24837, 2022. +[29] xAI. Grok 3 beta — the age of reasoning agents, 2025. URL https://x.ai/blog/grok-3. Accessed: +2025-05-15. +[30] Amy Xin, Jinxin Liu, Zijun Yao, Zhicheng Lee, Shulin Cao, Lei Hou, and Juanzi Li. Atomr: Atomic +operator-empowered large language models for heterogeneous knowledge reasoning. arXiv preprint +arXiv:2411.16495, 2024. +[31] Ruoxi Xu, Yunjie Ji, Boxi Cao, Yaojie Lu, Hongyu Lin, Xianpei Han, Ben He, Yingfei Sun, Xiangang +Li, and Le Sun. Memorizing is not enough: Deep knowledge injection through reasoning. arXiv preprint +arXiv:2504.00472, 2025. +[32] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, +Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, +Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, +Jing Zhou, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang, Le Yu, Lianghao Deng, Mei Li, +Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui Men, Ruize Gao, Shixuan Liu, Shuang +Luo, Tianhao Li, Tianyi Tang, Wenbiao Yin, Xingzhang Ren, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, +Yang Fan, Yang Su, Yichang Zhang, Yinger Zhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru +Zhang, Zhipeng Zhou, and Zihan Qiu. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025. +URL https://arxiv.org/abs/2505.09388. +[33] Sohee Yang, Elena Gribovskaya, Nora Kassner, Mor Geva, and Sebastian 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), pages 10210–10229, 2024. +[34] Sohee Yang, Nora Kassner, Elena Gribovskaya, Sebastian Riedel, and Mor Geva. Do large language +models perform latent multi-hop reasoning without exploiting shortcuts? arXiv preprint arXiv:2411.16679, +2024. +[35] Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Tom Griffiths, Yuan Cao, and Karthik Narasimhan. +Tree of thoughts: Deliberate problem solving with large language models. Advances in neural information +processing systems, 36:11809–11822, 2023. +[36] Yunzhi Yao, Jizhan Fang, Jia-Chen Gu, Ningyu Zhang, Shumin Deng, Huajun Chen, and Nanyun Peng. +Cake: Circuit-aware editing enables generalizable knowledge learners. arXiv preprint arXiv:2503.16356, +2025. +[37] Ping Yu, Jing Xu, Jason Weston, and Ilia Kulikov. Distilling system 2 into system 1. arXiv preprint +arXiv:2407.06023, 2024. +[38] Mengqi Zhang, Bowen Fang, Qiang Liu, Pengjie Ren, Shu Wu, Zhumin Chen, and Liang Wang. En- +hancing multi-hop reasoning through knowledge erasure in large language model editing. arXiv preprint +arXiv:2408.12456, 2024. +[39] Xiao Zhang, Miao Li, and Ji Wu. Co-occurrence is not factual association in language models. In The +Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. +[40] Zhuoran Zhang, Yongxiang Li, Zijian Kan, Keyuan Cheng, Lijie Hu, and Di Wang. Locate-then-edit for +multi-hop factual recall under knowledge editing. arXiv preprint arXiv:2410.06331, 2024. +[41] Zexuan Zhong, Zhengxuan Wu, Christopher D Manning, Christopher Potts, and Danqi Chen. Mquake: +Assessing knowledge editing in language models via multi-hop questions. In Proceedings of the 2023 +Conference on Empirical Methods in Natural Language Processing, pages 15686–15702, 2023. +[42] Hanlin Zhu, Baihe Huang, Shaolun Zhang, Michael Jordan, Jiantao Jiao, Yuandong Tian, and Stuart J +Russell. Towards a theoretical understanding of the’reversal curse’via training dynamics. Advances in +Neural Information Processing Systems, 37:90473–90513, 2024. +12 + +PAGE 13 +NeurIPS Paper Checklist +1. Claims +Question: Do the main claims made in the abstract and introduction accurately reflect the +paper’s contributions and scope? +Answer: [Yes] +Justification: The abstract and introduction introduces the central focus of the study, which +is understanding how implicit multi-hop reasoning emerges in transformers during training. +Guidelines: +• The answer NA means that the abstract and introduction do not include the claims +made in the paper. +• The abstract and/or introduction should clearly state the claims made, including the +contributions made in the paper and important assumptions and limitations. A No or +NA answer to this question will not be perceived well by the reviewers. +• The claims made should match theoretical and experimental results, and reflect how +much the results can be expected to generalize to other settings. +• It is fine to include aspirational goals as motivation as long as it is clear that these goals +are not attained by the paper. +2. Limitations +Question: Does the paper discuss the limitations of the work performed by the authors? +Answer: [Yes] +Justification: We acknowledges in the Discussion section that the results in this paper should +be viewed as preliminary and may not fully generalize to more complex, real-world large +language model settings. +Guidelines: +• The answer NA means that the paper has no limitation while the answer No means that +the paper has limitations, but those are not discussed in the paper. +• The authors are encouraged to create a separate "Limitations" section in their paper. +• The paper should point out any strong assumptions and how robust the results are to +violations of these assumptions (e.g., independence assumptions, noiseless settings, +model well-specification, asymptotic approximations only holding locally). The authors +should reflect on how these assumptions might be violated in practice and what the +implications would be. +• The authors should reflect on the scope of the claims made, e.g., if the approach was +only tested on a few datasets or with a few runs. In general, empirical results often +depend on implicit assumptions, which should be articulated. +• The authors should reflect on the factors that influence the performance of the approach. +For example, a facial recognition algorithm may perform poorly when image resolution +is low or images are taken in low lighting. Or a speech-to-text system might not be +used reliably to provide closed captions for online lectures because it fails to handle +technical jargon. +• The authors should discuss the computational efficiency of the proposed algorithms +and how they scale with dataset size. +• If applicable, the authors should discuss possible limitations of their approach to +address problems of privacy and fairness. +• While the authors might fear that complete honesty about limitations might be used by +reviewers as grounds for rejection, a worse outcome might be that reviewers discover +limitations that aren’t acknowledged in the paper. The authors should use their best +judgment and recognize that individual actions in favor of transparency play an impor- +tant role in developing norms that preserve the integrity of the community. Reviewers +will be specifically instructed to not penalize honesty concerning limitations. +3. Theory assumptions and proofs +Question: For each theoretical result, does the paper provide the full set of assumptions and +a complete (and correct) proof? +13 + +PAGE 14 +Answer: [NA] +Justification: The paper primarily discusses empirical observations and provides mechanistic +analyses through diagnostic tools (like cross-query semantic patching and cosine-based +representational analysis) rather than formal theorems or mathematical proofs. +Guidelines: +• The answer NA means that the paper does not include theoretical results. +• All the theorems, formulas, and proofs in the paper should be numbered and cross- +referenced. +• All assumptions should be clearly stated or referenced in the statement of any theorems. +• The proofs can either appear in the main paper or the supplemental material, but if +they appear in the supplemental material, the authors are encouraged to provide a short +proof sketch to provide intuition. +• Inversely, any informal proof provided in the core of the paper should be complemented +by formal proofs provided in appendix or supplemental material. +• Theorems and Lemmas that the proof relies upon should be properly referenced. +4. Experimental result reproducibility +Question: Does the paper fully disclose all the information needed to reproduce the main ex- +perimental results of the paper to the extent that it affects the main claims and/or conclusions +of the paper (regardless of whether the code and data are provided or not)? +Answer: [Yes] +Justification: The paper outlines a detailed experimental setup, including a symbolic training +environment and specific configurations for data generation. Information such as the +exact model parameters, hyperparameters, or training steps necessary is provided in the +Appendix G. +Guidelines: +• The answer NA means that the paper does not include experiments. +• If the paper includes experiments, a No answer to this question will not be perceived +well by the reviewers: Making the paper reproducible is important, regardless of +whether the code and data are provided or not. +• If the contribution is a dataset and/or model, the authors should describe the steps taken +to make their results reproducible or verifiable. +• Depending on the contribution, reproducibility can be accomplished in various ways. +For example, if the contribution is a novel architecture, describing the architecture fully +might suffice, or if the contribution is a specific model and empirical evaluation, it may +be necessary to either make it possible for others to replicate the model with the same +dataset, or provide access to the model. In general. releasing code and data is often +one good way to accomplish this, but reproducibility can also be provided via detailed +instructions for how to replicate the results, access to a hosted model (e.g., in the case +of a large language model), releasing of a model checkpoint, or other means that are +appropriate to the research performed. +• While NeurIPS does not require releasing code, the conference does require all submis- +sions to provide some reasonable avenue for reproducibility, which may depend on the +nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how +to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe +the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should +either be a way to access this model for reproducing the results or a way to reproduce +the model (e.g., with an open-source dataset or instructions for how to construct +the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case +authors are welcome to describe the particular way they provide for reproducibility. +In the case of closed-source models, it may be that access to the model is limited in +14 + +PAGE 15 +some way (e.g., to registered users), but it should be possible for other researchers +to have some path to reproducing or verifying the results. +5. Open access to data and code +Question: Does the paper provide open access to the data and code, with sufficient instruc- +tions to faithfully reproduce the main experimental results, as described in supplemental +material? +Answer: [Yes] +Justification: The data and code will be attached in the supplementary materials. +Guidelines: +• The answer NA means that paper does not include experiments requiring code. +• Please see the NeurIPS code and data submission guidelines (https://nips.cc/ +public/guides/CodeSubmissionPolicy) for more details. +• While we encourage the release of code and data, we understand that this might not be +possible, so “No” is an acceptable answer. Papers cannot be rejected simply for not +including code, unless this is central to the contribution (e.g., for a new open-source +benchmark). +• The instructions should contain the exact command and environment needed to run to +reproduce the results. See the NeurIPS code and data submission guidelines (https: +//nips.cc/public/guides/CodeSubmissionPolicy) for more details. +• The authors should provide instructions on data access and preparation, including how +to access the raw data, preprocessed data, intermediate data, and generated data, etc. +• The authors should provide scripts to reproduce all experimental results for the new +proposed method and baselines. If only a subset of experiments are reproducible, they +should state which ones are omitted from the script and why. +• At submission time, to preserve anonymity, the authors should release anonymized +versions (if applicable). +• Providing as much information as possible in supplemental material (appended to the +paper) is recommended, but including URLs to data and code is permitted. +6. Experimental setting/details +Question: Does the paper specify all the training and test details (e.g., data splits, hyper- +parameters, how they were chosen, type of optimizer, etc.) necessary to understand the +results? +Answer: [Yes] +Justification: The paper provides sufficient experimental details to understand the results. +Details of data construction are mentioned in Appendix B; hyperparameters like the learning +rate and optimizer type are explicitly mentioned in Appendix G. +Guidelines: +• The answer NA means that the paper does not include experiments. +• The experimental setting should be presented in the core of the paper to a level of detail +that is necessary to appreciate the results and make sense of them. +• The full details can be provided either with the code, in appendix, or as supplemental +material. +7. Experiment statistical significance +Question: Does the paper report error bars suitably and correctly defined or other appropriate +information about the statistical significance of the experiments? +Answer: [No] +Justification: There are too many configurations in our experiments, error bars are thus not +reported because it would be too computationally expensive. +Guidelines: +• The answer NA means that the paper does not include experiments. +15 + +PAGE 16 +• The authors should answer "Yes" if the results are accompanied by error bars, confi- +dence intervals, or statistical significance tests, at least for the experiments that support +the main claims of the paper. +• The factors of variability that the error bars are capturing should be clearly stated (for +example, train/test split, initialization, random drawing of some parameter, or overall +run with given experimental conditions). +• The method for calculating the error bars should be explained (closed form formula, +call to a library function, bootstrap, etc.) +• The assumptions made should be given (e.g., Normally distributed errors). +• It should be clear whether the error bar is the standard deviation or the standard error +of the mean. +• It is OK to report 1-sigma error bars, but one should state it. The authors should +preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis +of Normality of errors is not verified. +• For asymmetric distributions, the authors should be careful not to show in tables or +figures symmetric error bars that would yield results that are out of range (e.g. negative +error rates). +• If error bars are reported in tables or plots, The authors should explain in the text how +they were calculated and reference the corresponding figures or tables in the text. +8. Experiments compute resources +Question: For each experiment, does the paper provide sufficient information on the com- +puter resources (type of compute workers, memory, time of execution) needed to reproduce +the experiments? +Answer: [Yes] +Justification: Information on the computer resources is provided in Appendix G. +Guidelines: +• The answer NA means that the paper does not include experiments. +• The paper should indicate the type of compute workers CPU or GPU, internal cluster, +or cloud provider, including relevant memory and storage. +• The paper should provide the amount of compute required for each of the individual +experimental runs as well as estimate the total compute. +• The paper should disclose whether the full research project required more compute +than the experiments reported in the paper (e.g., preliminary or failed experiments that +didn’t make it into the paper). +9. Code of ethics +Question: Does the research conducted in the paper conform, in every respect, with the +NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? +Answer: [Yes] +Justification: We did reviewed the NeurIPS Code of Ethics and the research conducted in +this paper adheres to the NeurIPS Code of Ethics. +Guidelines: +• The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +• If the authors answer No, they should explain the special circumstances that require a +deviation from the Code of Ethics. +• The authors should make sure to preserve anonymity (e.g., if there is a special consid- +eration due to laws or regulations in their jurisdiction). +10. Broader impacts +Question: Does the paper discuss both potential positive societal impacts and negative +societal impacts of the work performed? +Answer: [No] +16 + +PAGE 17 +Justification: While the paper mentions potential positive implications for LLM interpretabil- +ity (improved transparency of reasoning processes), it does not explicitly discuss negative +societal impacts. +Guidelines: +• The answer NA means that there is no societal impact of the work performed. +• If the authors answer NA or No, they should explain why their work has no societal +impact or why the paper does not address societal impact. +• Examples of negative societal impacts include potential malicious or unintended uses +(e.g., disinformation, generating fake profiles, surveillance), fairness considerations +(e.g., deployment of technologies that could make decisions that unfairly impact specific +groups), privacy considerations, and security considerations. +• The conference expects that many papers will be foundational research and not tied +to particular applications, let alone deployments. However, if there is a direct path to +any negative applications, the authors should point it out. For example, it is legitimate +to point out that an improvement in the quality of generative models could be used to +generate deepfakes for disinformation. On the other hand, it is not needed to point out +that a generic algorithm for optimizing neural networks could enable people to train +models that generate Deepfakes faster. +• The authors should consider possible harms that could arise when the technology is +being used as intended and functioning correctly, harms that could arise when the +technology is being used as intended but gives incorrect results, and harms following +from (intentional or unintentional) misuse of the technology. +• If there are negative societal impacts, the authors could also discuss possible mitigation +strategies (e.g., gated release of models, providing defenses in addition to attacks, +mechanisms for monitoring misuse, mechanisms to monitor how a system learns from +feedback over time, improving the efficiency and accessibility of ML). +11. Safeguards +Question: Does the paper describe safeguards that have been put in place for responsible +release of data or models that have a high risk for misuse (e.g., pretrained language models, +image generators, or scraped datasets)? +Answer: [NA] +Justification: We utilizes a symbolic dataset that does not contain any real sensitive informa- +tion, and therefore poses no risk of misuse. +Guidelines: +• The answer NA means that the paper poses no such risks. +• Released models that have a high risk for misuse or dual-use should be released with +necessary safeguards to allow for controlled use of the model, for example by requiring +that users adhere to usage guidelines or restrictions to access the model or implementing +safety filters. +• Datasets that have been scraped from the Internet could pose safety risks. The authors +should describe how they avoided releasing unsafe images. +• We recognize that providing effective safeguards is challenging, and many papers do +not require this, but we encourage authors to take this into account and make a best +faith effort. +12. Licenses for existing assets +Question: Are the creators or original owners of assets (e.g., code, data, models), used in +the paper, properly credited and are the license and terms of use explicitly mentioned and +properly respected? +Answer: [Yes] +Justification: The paper uses open-source models, and the creators or original owners of +these models have been properly credited. +Guidelines: +• The answer NA means that the paper does not use existing assets. +17 + +PAGE 18 +• The authors should cite the original paper that produced the code package or dataset. +• The authors should state which version of the asset is used and, if possible, include a +URL. +• The name of the license (e.g., CC-BY 4.0) should be included for each asset. +• For scraped data from a particular source (e.g., website), the copyright and terms of +service of that source should be provided. +• If assets are released, the license, copyright information, and terms of use in the +package should be provided. For popular datasets, paperswithcode.com/datasets +has curated licenses for some datasets. Their licensing guide can help determine the +license of a dataset. +• For existing datasets that are re-packaged, both the original license and the license of +the derived asset (if it has changed) should be provided. +• If this information is not available online, the authors are encouraged to reach out to +the asset’s creators. +13. New assets +Question: Are new assets introduced in the paper well documented and is the documentation +provided alongside the assets? +Answer: [Yes] +Justification: We will provide detailed documentation for all new assets, including datasets, +models, and code. +Guidelines: +• The answer NA means that the paper does not release new assets. +• Researchers should communicate the details of the dataset/code/model as part of their +submissions via structured templates. This includes details about training, license, +limitations, etc. +• The paper should discuss whether and how consent was obtained from people whose +asset is used. +• At submission time, remember to anonymize your assets (if applicable). You can either +create an anonymized URL or include an anonymized zip file. +14. Crowdsourcing and research with human subjects +Question: For crowdsourcing experiments and research with human subjects, does the paper +include the full text of instructions given to participants and screenshots, if applicable, as +well as details about compensation (if any)? +Answer: [NA] +Justification: This paper doesn’t involve crowdsourcing nor research with human subjects. +Guidelines: +• The answer NA means that the paper does not involve crowdsourcing nor research with +human subjects. +• Including this information in the supplemental material is fine, but if the main contribu- +tion of the paper involves human subjects, then as much detail as possible should be +included in the main paper. +• According to the NeurIPS Code of Ethics, workers involved in data collection, curation, +or other labor should be paid at least the minimum wage in the country of the data +collector. +15. Institutional review board (IRB) approvals or equivalent for research with human +subjects +Question: Does the paper describe potential risks incurred by study participants, whether +such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) +approvals (or an equivalent approval/review based on the requirements of your country or +institution) were obtained? +Answer: [NA] +Justification: This paper doesn’t involve crowdsourcing nor research with human subjects. +18 + +PAGE 19 +Guidelines: +• The answer NA means that the paper does not involve crowdsourcing nor research with +human subjects. +• Depending on the country in which research is conducted, IRB approval (or equivalent) +may be required for any human subjects research. If you obtained IRB approval, you +should clearly state this in the paper. +• We recognize that the procedures for this may vary significantly between institutions +and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the +guidelines for their institution. +• For initial submissions, do not include any information that would break anonymity (if +applicable), such as the institution conducting the review. +16. Declaration of LLM usage +Question: Does the paper describe the usage of LLMs if it is an important, original, or +non-standard component of the core methods in this research? Note that if the LLM is used +only for writing, editing, or formatting purposes and does not impact the core methodology, +scientific rigorousness, or originality of the research, declaration is not required. +Answer: [NA] +Justification: The core method development in this research does not involve LLMs as any +important, original, or non-standard components. +Guidelines: +• The answer NA means that the core method development in this research does not +involve LLMs as any important, original, or non-standard components. +• Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) +for what should or should not be described. +19 + +PAGE 20 +A +Related Work +Mechanistic Exploration of Implicit Reasoning. +The initial focus on the mechanisms of implicit +reasoning arose from the discovery that traditional single-hop knowledge editing methods are inef- +fective in the context of multi-hop implicit reasoning [41, 38, 12]. This phenomenon since gained +more significant attention, prompting researchers to investigate the mechanisms underlying implicit +reasoning. Some works suggest that the failure of implicit reasoning is due to the intermediate entities +not being properly processed [22, 33]; Other works suggest that the reason lies in the intermediate +entities being processed, but not being passed to the correct position [16, 36, 5]. The parallel explo- +ration paths within the model are also a research direction [23, 27]. Recent works have found that +the different knowledge composed as different hops used in implicit reasoning is stored in different +layers of the model [40, 36]. Additionally, some studies propose that models rely on shortcuts to +successfully complete implicit reasoning [34]. +Conditions for Learning Implicit Reasoning. +Some works have found that the conditions for +models to learn implicit reasoning are quite demanding. Some have discovered through custom +symbolic datasets that models generalize implicit reasoning abilities only after grokking, and that +they require highly compositional data [25]. Other works have found that simply providing optical +knowledge is insufficient for enabling models to perform implicit reasoning, it requires training with +corresponding multi-hop reasoning data [31, 39, 42]. Moreover, it has been observed that when the +two pieces of foundational knowledge used for 2-hop implicit reasoning appear in different paragraphs +of the training corpus, the model struggles to combine them for implicit reasoning. However, when +these pieces appear within the same paragraph, the model’s accuracy in answering the corresponding +2-hop queries significantly improves [3]. +Probing Intermediate Entities. +As for the probing tools, most of the work uses decoding-based +methods to probe intermediate entities. Many works assume that if a model encodes an intermediate +entity, it should be able to explicitly decode it. They use the logit lens [18]. as evidence of the +presence of intermediate entities in implicit reasoning [22, 33, 16]. A few studies have also trained a +linear transformation layer to decode intermediate entities [23]. +Latent CoT. +Although current Chain-of-Thought (CoT) based reasoning models have shown +impressive performance, some perspectives argue that the thought chains do not truly reflect the +model’s reasoning process [17, 2]. Some works have begun to explore Chain of Thought (CoT) +methods that do not verbalize intermediate steps. One approach is to replace the Chain of Thought +(CoT) with dots, adjusting the number of dots based on the original length of the thought chain [20, 4]. +Another approach to avoid verbalizing is to bypass decoding the tokens in the CoT process and +directly use the last hidden state from the previous step as the input vector for the next step [10]. +These approaches have achieved results comparable to traditional CoT on specific tasks. +B +Dataset Details +Our data construction pipeline is adapted from the open-source code released by Wang et al. [25], +with modifications to support fine-grained query-level control. +Entity and Relation Vocabulary. +In all configurations, we construct a symbolic environment +consisting of 2000 entities and 200 relations, each assigned a unique token with no inherent semantics. +Since the model is trained from scratch, it has no prior knowledge about the symbols, and learning +depends entirely on compositional supervision. +Atomic Triple Generation. +We generate 40000 atomic triples of the form (e1, r1) →e2, where +each entity e1 is randomly assigned 20 outgoing relations, and for each such relation r1, the tail entity +e2 is sampled uniformly from all entities. These triples are then randomly partitioned at the triple +level into ID and OOD subsets, with a default OOD ratio of 5%, while entities and relations remain +globally shared across all subsets. +2-Hop Query Construction. +Two-hop queries are compositional chains of the form (e1, r1, r2) → +e3, where the model must implicitly reason through an intermediate entity e2. These queries are +20 + +PAGE 21 +constructed by pairing atomic triples: if both (e1, r1, e2) and (e2, r2, e3) exist, the corresponding +query is eligible. Training queries (Train-II) are sampled from the set of ID–ID chains. The remaining +queries are categorized as Test-II, Test-IO, Test-OI, or Test-OO depending on whether the first and +second hops are ID or OOD. +We construct the training set with a 7.2:1 ratio of Train-II queries to ID atomic triples to ensure +compositional supervision dominates, and sample a fixed test set of 3,000 examples for each type. +Table 2 summarizes the key dataset statistics. +Illustrations of Data Construction Configurations. +To aid in understanding the dataset construc- +tion process, we provide two representative configurations as illustrations (Figure 6). +(a) Base configuration +(b) Second-hop ablation +Figure 6: Two representative data construction configurations. (a) Base configuration: Contains all +atomic triples and Train-II queries, with evaluation covering all test query types. (b) Second-hop +ablation configuration: A targeted setup where a subset of atomic triples (e.g., (eB, r5, eF )) are +excluded from appearing as second hops in any training query, while corresponding second-hop +queries remain present in the test set. +Table 2: Dataset Statistics +Data Type +Split +Count +Vocabulary +Entities +2000 +Relations +200 +Atomic Triples +In-Distribution (ID) +38000 +Out-of-Distribution (OOD) +2000 +2-hop Queries +Train-II (ID →ID) +273600 +Test-II (ID →ID) +3,000 +Test-IO (ID →OOD) +3,000 +Test-OI (OOD →ID) +3,000 +Test-OO (OOD →OOD) +3,000 +Design Choices and Assumptions. +In designing our dataset, we made two key parameter choices to support our analysis focus and the +intended analogy to real-world LLM behavior: +First, we fix a relatively high ratio of Train-II to ID Triples (7.2:1), ensuring that compositional +supervision dominates over direct fact learning. While prior work [25] has shown that a high +Train-II / ID ratio is necessary for generalization on Test-II queries, we do not treat this ratio as +a variable of interest. Instead, we maintain it at a sufficient level to ensure the emergence of in- +distribution reasoning, and shift our focus to more challenging phenomena such as cross-distribution +generalization and the underlying mechanisms that support generalizations. +Second, we choose a high ratio of ID to OOD atomic triples (95% ID), which is critical for the +representational alignment effects discussed in Section 3 and further validated in Appendix H. In +21 + +PAGE 22 +particular, Phase III generalization relies on OOD-derived intermediate representations aligning with +the subspace formed by ID-derived ones—an effect that only arises when ID triples are sufficiently +dominant. +We acknowledge that these high-ratio settings may appear biased. However, they reflect plausible +properties of real-world pretraining corpora: (1) compositional chains (analogous to our Train-II +queries) are likely more common than isolated fact triples; and (2) most knowledge entities are +learned in richly connected contexts (analogous to our ID triples), while only a minority are sparsely +anchored or appear in isolation (analogous to our OOD triples). From this perspective, our symbolic +setup not only enables controlled analysis, but also approximates realistic data imbalance patterns +observed in LLM pretraining. Accordingly, we treat both ratios as default conditions rather than +ablation variables. +C +Extension to 3-Hop Reasoning +We extend our symbolic framework to support 3-hop queries and verify that the behavioral and +mechanistic patterns observed in the 2-hop setting also emerge in deeper compositional regimes. +C.1 +3-hop Dataset Construction +The overall construction methodology mirrors that of 2-hop queries, as described in Appendix B, +with an additional relational step. These queries take the form (e1, r1, r2, r3) →e4, where the model +must implicitly traverse three relational steps through two intermediate entities. +However, the increased compositional depth introduces new data balancing challenges. In particular, +the combinatorial nature of 3-hop chaining (i.e., atomic composition scales cubically) leads to test set +sparsity(especially Test-OOO) if the OOD triple proportion is too small. To mitigate this, we reduce +the vocabulary size to 1000 entities and 100 relations, and increase the OOD ratio to 20%, while +still maintaining a majority of ID supervision discussed in Appendix B. These adjustments ensure +sufficient coverage across all evaluation regimes, including out-of-distribution settings. Table 3 +summarizes the key statistics of 3-hop dataset. +Table 3: 3-hop Dataset Statistics +Data Type +Split +Count +Vocabulary +Entities +1000 +Relations +100 +Atomic Triples +In-Distribution (ID) +8000 +Out-of-Distribution (OOD) +2000 +3-hop Queries +Train-III (ID →ID →ID) +120000 +Test-III (ID →ID →ID) +1,000 +Test-IIO (ID →ID →OOD) +1,000 +Test-IOI (ID →OOD →ID) +1,000 +Test-IOO (ID →OOD →OOD) +1,000 +Test-OII (OOD →ID →ID) +1,000 +Test-OIO (OOD →ID →OOD) +1,000 +Test-OOI (OOD →OOD →ID) +1,000 +Test-OOO (OOD →OOD →OOD) +1,000 +C.2 +Training Dynamics and Generalization Patterns +We evaluate model behavior on the 3-hop dataset using the same model, training regime, and +diagnostic tools as in the 2-hop setting. Figure 7 summarizes the accuracy trajectories across all test +query types and clustering metrics of intermediate representations. +Compared to 2-hop queries, 3-hop reasoning introduces an additional intermediate entity, resulting +in two latent steps: e1 +r1 +−→e2 +r2 +−→e3 +r3 +−→e4. To analyze how the model internally represents these +latent entities, we extend our diagnostic metrics accordingly. +22 + +PAGE 23 +103 +104 +105 +106 +107 +0 +20 +40 +60 +80 +100 +Accuracy (%) +ID Triples +OOD Triples +Train-III +Test-III +Test-IIO +Test-IOI +Test-IOO +Test-OII +Test-OIO +Test-OOI +Test-OOO +ID e2 Cohesion +OOD Alignment +ID e3 Cohesion +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Cosine Similarity +Figure 7: Training dynamics in the 3-hop setting. Accuracy and representation metrics exhibit +consistent generalization patterns with the 2-hop case. +Specifically, we extract: (1) h5 +r1, the hidden state at the r1 token in layer 5, to represent the internal +encoding of e2 (same as in the 2-hop setting); (2) h6 +r2, the hidden state at the r2 token in layer 6, to +represent the encoding of e3. +Based on these, we compute the following representational clustering metrics: (1) ID e2 Cohesion: +average cosine similarity among representations of the same ID-derived e2 entity; (2) ID e3 Cohesion: +the analogous metric computed over e3 representations. (3) OOD e2 Alignment: cosine similarity +between OOD-derived e2 representations and the corresponding ID-derived centroid. We do not +compute alignment for e3 because only the first hop (e2) can successfully generalize from OOD +inputs. +We observe two key generalization patterns consistent with the 2-hop results: +(1) In-distribution generalization emerges reliably: The model successfully generalizes to Test-III +queries (ID →ID →ID), with accuracy rising steadily during training. +(2) Out-of-distribution generalization remains constrained to the first hop: Among all OOD- +containing query types, only Test-OII (OOD →ID →ID) shows significant improvement. Other +configurations where OOD triples appear in the second or third hop (e.g., Test-IIO, IOI, OOO) fail +to generalize. This reinforces the bottleneck observed in the 2-hop case: query-level exposure is +necessary for downstream relational generalization. +Furthermore, OOD e2 Alignment closely tracks Test-OII performance, while ID e2 and e3 Cohesion +metrics rise in concert with Test-III accuracy. Together, these results highlight that representational +clustering at multiple relational depths serves as the internal mechanism enabling successful multi-hop +reasoning. +While we do not repeat all behavioral ablations from the 2-hop setting (e.g., acceleration from ID +triple exposure, second-hop query-level matching), we note that these phenomena are well explained +by the clustering dynamics reported above. In particular, similar representational bottlenecks and +alignment requirements arise at each reasoning step, such that second- and third-hop generalization +depend on the same clustering dynamics as the first hop. As a result, the cohesion and alignment +metrics we report suffice to capture the core generalization behaviors in the 3-hop case. +23 + +PAGE 24 +D +Additional Validation of Query-Level Requirements in Second-Hop +Generalization +D.1 +Verifying Second-Hop Failure under Full Supervision +To ensure the observed failure of second-hop generalization is not an artifact of minimal training +configurations, we repeat the second-hop ablation experiment under the full base setting described in +Section 2.1. Specifically, we exclude a subset of atomic triples (e.g., (eB, r5, eF )) from appearing in +any second-hop positions during training, while allowing them in atomic queries or first-hop usage +(Figure 8). +Despite the model being exposed to these triples in other structural roles, it fails to generalize to +Test-II queries that require them as second-hop compositions. Importantly, performance on all other +query types remains unaffected. This confirms that second-hop generalization requires direct +query-level supervision: exposure to a fact in other contexts is insufficient for enabling its role in +compositional reasoning. +Figure 8: Illustration of the second-hop ablation under the full base configuration. A subset of atomic +triples (e.g., (eB, r5, eF )) is excluded from appearing as second hops during training. The rest of the +data remains unchanged, allowing controlled evaluation of second-hop generalization. +D.2 +Accuracy vs. Second-Hop Exposure Frequency +To further investigate the role of query-level exposure in second-hop generalization, we examine +whether second-hop triples that appear more frequently in training queries are learned earlier, using +the full base configuration. +We select a fixed training checkpoint in the early part of Phase II—specifically when Test-OI accuracy +reaches approximately 50%—and we group second-hop triples by their frequency of occurrence +in Train-II queries. For each frequency group k, we compute the average accuracy over all Test-II +queries whose second-hop triple appeared exactly k times in the training set. +The results reveal a clear trend: higher second-hop exposure frequency during training leads to greater +accuracy on corresponding test queries at this intermediate phase (see Figure 9), reinforcing the +causal role of second-hop participation in enabling generalization. +E +Probing Preference for Explicit Decoding +To test whether the model prefers to encode intermediate entities in an explicitly decodable form, we +construct a new configuration that reveals the model’s decoding preference behaviorally. +This configuration (Figure 10a) removes all ID triples from the training data, but retains (i) all Train-II +2-hop queries, which require reasoning through ID-derived intermediate entities, and (ii) all OOD +24 + +PAGE 25 +Figure 9: Average Test-OI accuracy at early Phase II (approx. 50%) grouped by second-hop triple +frequency in Train-II queries. +triples, which still provide supervision for decoding at the r1 position. Crucially, tail entities in both +ID and OOD triples share the same tail entity vocabulary, encouraging the model to apply similar +decoding strategies across domains. +(a) Decoding Preference Configuration +103 +104 +105 +Checkpoints (Training Steps) +0 +20 +40 +60 +80 +100 +Accuracy (%) +ID Triples +OOD Triples +Train-II +Test-II +(b) Accuracy dynamics under this configuration. +Figure 10: Decoding Preference Experiment. (a) Experimental setup where ID triples are excluded +from training and only used for testing., while the model is trained on OOD triples which share the +same tail entity vocabulary as the ID triples, and all Train-II queries. (b) Accuracy over training steps +shows that the model initially recovers held-out ID triples, suggesting an attempt at explicit decoding, +but later abandons this strategy. +This setup leverages the shared hidden state structure between atomic and two-hop queries discussed +in Section 4.2, implying that if the model encodes the intermediate entity in a decodable form during +2-hop reasoning, it should be able to recover ID triples (e.g., given a ID query (eA, r1), predict eB) +even if these triples were never seen during training. +Figure 10b shows the result. Initially, the model answers some ID triples correctly, suggesting an +early attempt for explicit decoding. However, this accuracy soon declines, while the performance on +Test-II continues to rise. This indicates that the model abandons decodable representations in favor of +internal ones that support reasoning but cannot be directly decoded. Explicit decoding, while initially +attempted, is not sustained—suggesting it is not the model’s preferred solution when alternatives are +available. +25 + +PAGE 26 +F +Additional Results for Cross-Query Causal Patching +We provide the individual patching success rates for each of the three settings: Phase II (ID-derived), +Phase III (ID-derived), and Phase III (OOD-derived). These results complement the averaged trend +shown in the main text (Figure 4) and confirm the consistency of intermediate entity localization +across training stages and generalization regimes. +To provide a full developmental picture, we also include Phase I patching results in Figure 11a. +These results exhibit near-zero success across all positions and layers, consistent with the absence +of any generalization behavior at this stage. This reinforces our claim that meaningful intermediate +representations emerge only after compositional reasoning capabilities begin to develop. +e1 +r1 +r2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +Layer 8 +0 +20 +40 +60 +80 +100 +Patching Success Rate (%) +(a) Phase I: ID-derived +e1 +r1 +r2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +Layer 8 +0 +20 +40 +60 +80 +100 +Patching Success Rate (%) +(b) Phase II: ID-derived +e1 +r1 +r2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +Layer 8 +0 +20 +40 +60 +80 +100 +Patching Success Rate (%) +(c) Phase III: ID-derived +e1 +r1 +r2 +Layer 1 +Layer 2 +Layer 3 +Layer 4 +Layer 5 +Layer 6 +Layer 7 +Layer 8 +0 +20 +40 +60 +80 +100 +Patching Success Rate (%) +(d) +Phase +III: +OOD- +derived +Figure 11: Patching success rate across layers and token positions for different phases and data +sources. +G +Training Details and Bigger Models +G.1 +Training Details +Our training procedure largely follows the public implementation provided by Wang et al. [25], with +a few modifications to accommodate our specific experimental setting. +The model is a decoder-only Transformer, identical in architecture to GPT-2, with 8 layers, 768 +hidden dimensions, and 12 attention heads. Optimization is performed using AdamW with a learning +rate of 1 × 10−4, 2000 warm-up steps, weight decay of 0.1, and a batch size of 1024. All models are +trained significantly beyond convergence to allow observation of late-stage generalization behavior +(Section 2.2). +Training is conducted on NVIDIA RTX 3090 GPUs, and the maximum training duration is extended +to 3 weeks to ensure stable cross-distributions generalization. All experiments are implemented using +the same PyTorch and Huggingface Transformers framework as in the original codebase. +G.2 +Scaling Analysis: Dynamics and Alignment in Larger Models +We extend our main experimental setup by training a larger model, Qwen2.5-1.5B, under the same +base configuration. Our goal is to examine whether the developmental trajectory of multi-hop +reasoning observed in smaller models persists at scale, and to further investigate the alignment +between behavioral accuracy and representational metrics. +The training progresses successfully through Phase I (memorization) and Phase II (in-distribution +generalization), and reaches Phase III (cross-distribution generalization). However, we observe +increased instability during Phase III: although the model demonstrates the ability to generalize to +Test-OI queries, the performance exhibits significant fluctuations. We report the Test-II and Test-OI +accuracies, alongside the ID Cohesion and OOD Alignment metrics (Figure 12). +Interestingly, we find that the Test-II accuracy does not rise in lockstep with the ID Cohesion +metric, in contrast to the strong correlation observed in smaller models (Figure 2). We interpret this +26 + +PAGE 27 +0 +250000 +500000 +Checkpoints (Training Steps) +0 +20 +40 +60 +80 +100 +Accuracy +Test-II +Test-OI +ID Cohesion +OOD Alignment +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Average Cosine Similarity +Figure 12: Test-II and Test-OI accuracy and ID Cohesion and OOD Alignment metrics over training +steps in the Qwen2.5-1.5B model. Although the model reaches Phase III generalization, substantial +variance is observed in both Test-OI accuracy and OOD Alignment, which nonetheless remain tightly +coupled. In contrast, Test-II accuracy does not closely track the ID Cohesion metric, suggesting a +representational bottleneck at the second relational step. +decoupling as evidence that ID Cohesion is a necessary but not sufficient condition for successful +Test-II generalization. While a coherent latent space is required to support compositional reasoning, +achieving high Test-II accuracy also depends on the model’s ability to utilize these representations in +executing the second relational step. In other words, beyond aligning representations, the model +must also learn to map from an aligned intermediate state to the correct final output via the second-hop +relation. +In smaller models, these two aspects—representation alignment and second-hop reasoning—tend to +emerge together as part of a single learning phase, leading to tight coupling between ID Cohesion and +Test-II performance. In contrast, larger models appear to decouple these processes: representational +clustering may occur early, while second-hop reasoning capabilities require additional training to +fully mature. As a result, the second relational step becomes the dominant bottleneck in Phase II +generalization. +This interpretation is further supported by the close alignment between the OOD Alignment metric +and Test-OI accuracy. Because second-hop reasoning over ID triples is already well established by +Phase II, generalization on Test-OI becomes predominantly constrained by whether OOD-derived +intermediate representations have successfully aligned with the ID-centric latent space. This tight +correlation holds across model scales: in both the main 2-hop setup with smaller models and the +3-hop results in Appendix C (e.g., alignment between Test-OII and OOD-derived clustering), the +emergence of Phase III generalization closely tracks OOD Alignment. In our large-model experiment, +although the Test-OI accuracy exhibits high variance, its fluctuations are closely mirrored by the +OOD Alignment metric, reinforcing our hypothesis. +We leave the optimization of Phase III training strategies for larger models to future work. Our +findings suggest that alignment-based representational diagnostics may serve as useful guides for +tuning training schedules or data exposure in this regime, and we encourage future work to explore +these directions further. +H +Validation of Phase III Emergence via ID/OOD Ratio Ablation +To validate our hypothesis in Section 4.1 that the emergence of cross-distribution generalization +(Phase III) depends on the dominance of in-distribution (ID) supervision, we conduct an ablation +study by varying the ID/OOD ratio of atomic triples under the base configuration. +27 + +PAGE 28 +Experimental Setup. We begin with the full base configuration, which includes all atomic triples +(both ID and OOD) and the complete set of Train-II queries. We fix the total number of atomic triples +and vary the ID/OOD ratio while keeping all other components of training unchanged. Specifically, +we test three settings: 80% ID / 20% OOD, 50% ID / 50% OOD, and 30% ID / 70% OOD. In all +cases, the Train-II / ID ratio is held constant, as prior work Wang et al. [25] identifies this as a +critical factor for Phase II generalization. +Results. All three ID/OOD configurations unsurprisingly reach Phase I and Phase II, to focus on the +emergence of Phase III, we report the Test-OI accuracy and OOD Alignment Score, which capture +the model’s ability to reason across distributions and align OOD-derived intermediate representations +with the ID-induced cluster structure. +As shown in Figure 13, in the 0.8/0.2 setting, both Test-OI accuracy and OOD Alignment Score +increase together during training, indicating that the model successfully assimilates OOD-derived +intermediate representations into the ID-induced subspace and is able to reuse them for cross- +distribution reasoning. In contrast, in the 0.5/0.5 and 0.3/0.7 settings, both metrics remain consistently +low, suggesting that the model fails to form aligned representations for OOD triples and consequently +cannot generalize to Test-OI queries. This divergence across configurations highlights that strong ID +supervision is essential for enabling Phase III generalization. +0 +3000000 +6000000 +Checkpoints (Training Steps) +0 +20 +40 +60 +80 +100 +Accuracy (%) +Test-OI +OOD Alignment +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Average Cosine Similarity +(a) ID/OOD = 0.8/0.2 +0 +2500000 +5000000 +Checkpoints (Training Steps) +0 +20 +40 +60 +80 +100 +Accuracy (%) +Test-OI +OOD Alignment +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Average Cosine Similarity +(b) ID/OOD = 0.5/0.5 +0 +2500000 +5000000 +Checkpoints (Training Steps) +0 +20 +40 +60 +80 +100 +Accuracy (%) +Test-OI +OOD Alignment +0.0 +0.2 +0.4 +0.6 +0.8 +1.0 +Average Cosine Similarity +(c) ID/OOD = 0.3/0.7 +Figure 13: Test-OI accuracy and OOD Alignment Score under different ID/OOD splits. All +configurations successfully reach Phase I and Phase II. Only the 0.8/0.2 setting supports Phase III +generalization, as indicated by joint increases in Test-OI accuracy and OOD alignment. Lower-ID +settings fail to align OOD-derived bridge entities, preventing cross-distribution reasoning. +I +Evidence for Representation Clustering from the Decodable Subspace +To validate the representational mechanism discussed in Section 4.2 that ID triple supervision +constrains the r1 representation to lie in a decodable subspace, we design an ablation experiment to +test whether held-out ID triples can be recovered solely through shared compositional contexts in +Train-II queries. +Specially, We randomly select a subset of ID triples (e.g., (eA, r1) →eB) to exclude from the atomic +triple training set. These held-out triples are removed from all atomic query contexts but remained +involved in Train-II queries (e.g., (eA, r1, r2) →eC, where eB serves as the intermediate entity). +Crucially, the model retains exposure to other atomic triples that sharing the same tail entity, such +as (eX, r7) →eB, which appear in both atomic and corresponding compositional queries (e.g., +(eX, r7, r3) →eY ), Figure 14a illustrates the configuration. This configuration enables us to validate +whether ID atomic triples supervision constrains the r1 hidden state to a decodable region by testing +whether these held-out triples could be recovered. +As illustrated in the Figure 14b, The model successfully recovers held-out triples despite their +absence from atomic training. Crucially, this recovery capability emerges concurrently with Test-II +generalization, confirming that the model leverages the same intermediate representation subspace for +both atomic and compositional reasoning. The results indicate that ID triple supervision accelerates +generalization not by providing explicit factual memorization, but by structurally constraining the +model’s representational space to align atomic and compositional reasoning pathways. +28 + +PAGE 29 +(a) Illustration of the data construction. +103 +104 +105 +106 +Checkpoints (Training Steps) +0 +20 +40 +60 +80 +100 +Accuracy (%) +Retained ID Triples +OOD Triples +Train-II +Test-II +Held-out ID Triples +(b) Training curve showing accurate prediction of the held-out +triples. +Figure 14: Verification of ID triple constraint effect. The model successfully recovers held-out ID +triples by leveraging representational constraints from multi-hop supervision and structurally related +retained triples, supporting the claim that ID triples accelerate generalization by shaping a decodable +representational subspace. +J +Removing ID Triples Breaks First-Hop OOD Generalization +To test whether ID supervision is necessary for cross-distribution (Test-OI) generalization, we +constructed a simplified configuration that removes all ID triples from training. The model is trained +only on OOD atomic triples and Train-II 2-hop queries, as illustrated in Figure 15a. +Despite having access to OOD facts and multi-hop supervision, the model fails to generalize to Test-OI +queries where the first hop is from an OOD triple. As shown in Figure 15b, Test-OI accuracy remains +near chance throughout training. This validates our claim in Section 4.3: without representational +anchoring from ID triples, OOD-derived entities cannot support implicit multi-hop reasoning. +(a) Illustration of the Unanchored OOD Configuration. +103 +104 +105 +106 +107 +Checkpoints (Training Steps) +0 +20 +40 +60 +80 +100 +Accuracy (%) +OOD Triples +Train-II +Test-II +Test-OI +(b) Training dynamics: Test-OI accuracy fails to improve +Figure 15: Validation experiment under ID-removed configuration. Without ID triples, the model +fails to reach Phase III, confirming that representational anchoring from ID supervision is essential +for OOD-based generalization. +29 diff --git a/results/first-principles-review-20261004/theory-sources/loop2025.pdf b/results/first-principles-review-20261004/theory-sources/loop2025.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f0a7429118c3dace2c7bbd183d984bc98209919f --- /dev/null +++ b/results/first-principles-review-20261004/theory-sources/loop2025.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20612ef91b39053d26722becc999bb87824c534720ad8945409dbaf3bf3ceb83 +size 2186101 diff --git a/results/first-principles-review-20261004/theory-sources/loop2025.txt b/results/first-principles-review-20261004/theory-sources/loop2025.txt new file mode 100644 index 0000000000000000000000000000000000000000..9f5934d5c4d30c3a1cd52746ac1a7b10a0b97728 --- /dev/null +++ b/results/first-principles-review-20261004/theory-sources/loop2025.txt @@ -0,0 +1,2266 @@ +PAGE 1 +Published as a conference paper at ICLR 2025 +REASONING +WITH LATENT THOUGHTS: +ON +THE +POWER OF LOOPED TRANSFORMERS +Nikunj Saunshi1, Nishanth Dikkala1, Zhiyuan Li1,2, Sanjiv Kumar1, Sashank J. Reddi1 +{nsaunshi, nishanthd, lizhiyuan, sanjivk, sashank}@google.com +1Google Research, 2Toyota Technological Institute at Chicago +ABSTRACT +Large language models have shown remarkable reasoning abilities and scaling +laws suggest that large parameter count, especially along the depth axis, is the pri- +mary driver. In this work, we make a stronger claim — many reasoning problems +require a large depth but not necessarily many parameters. This unlocks a novel +application of looped models for reasoning. Firstly, we show that for many syn- +thetic reasoning problems like addition, p-hop induction, and math problems, a +k-layer transformer looped L times nearly matches the performance of a kL-layer +non-looped model, and is significantly better than a k-layer model. This is further +corroborated by theoretical results showing that many such reasoning problems +can be solved via iterative algorithms, and thus, can be solved effectively using +looped models with nearly optimal depth. Perhaps surprisingly, these benefits also +translate to practical settings of language modeling — on many downstream rea- +soning tasks, a language model with k-layers looped L times can be competitive +to, if not better than, a kL-layer language model. In fact, our empirical analysis +reveals an intriguing phenomenon: looped and non-looped models exhibit scaling +behavior that depends on their effective depth, akin to the inference-time scal- +ing of chain-of-thought (CoT) reasoning. We further elucidate the connection to +CoT reasoning by proving that looped models implicitly generate latent thoughts +and can simulate T steps of CoT with T loops. Inspired by these findings, we +also present an interesting dichotomy between reasoning and memorization, and +design a looping-based regularization that is effective on both fronts. +1 +INTRODUCTION +Language models have shown a lot of promise in solving problems that require strong reasoning abil- +ities like math, coding, common sense reasoning and logical puzzles (Brown et al., 2020; Team et al., +2023). This has sparked interest in developing techniques to improve reasoning on harder problems +(Wei et al., 2022b) and has inspired theoretical studies on how Transformers are able to perform +reasoning (Feng et al., 2024; Sanford et al., 2024a). Reasoning abilities are often emergent in larger +language models (Wei et al., 2022a) – this aligns with various scaling laws (Kaplan et al., 2020; Hoff- +mann et al., 2022; Allen-Zhu & Li, 2024) that show that the performance of language models is very +strongly dependent on the model size (i.e., number of parameters) and much lesser on other archi- +tectural design choices. However, recent works have started to question this view. Ye et al. (2024) +argue that scaling laws for reasoning are more subtle, and depth is very important in addition to +parameter count – at the same parameter count, deeper but shallower models are better. This is a de- +viation from the conventional scaling law wisdom, but it intuitively makes sense because reasoning +problems often requires multi-step compositional thinking, and thus, depth can play a crucial role. +In this work, we make a stronger claim – while depth is important, many reasoning problems do not +necessarily require a lot of parameters. How does one solve reasoning problems with large depth but +few parameters? We argue that looped models are perfectly suited, where a function, parameterized +with few parameters, is iteratively applied on the input. This leads us to our first important claim: +Claim 1: Many reasoning problems require depth but not necessarily parameters. That is, they can +be solved via looped models +1 + +PAGE 2 +Published as a conference paper at ICLR 2025 +Looped models have been studied in the literature for parameter efficiency (Lan et al., 2020), +adaptive compute (Dehghani et al., 2018), equilibrium models (Bai et al., 2019) and for in-context +learning (Yang et al., 2023; Gatmiry et al., 2024a). In this work, we initiate the study of looped +models in the context of reasoning. Admittedly, reasoning is not very well-defined and can be +of various forms (Sun et al., 2023). Acknowledging this hurdle, we focus on a non-exhaustive +list of problems that intuitively require reasoning and that are inspired by reasoning benchmarks. +Throughout the paper, we use the notation (k ⊗L) to denote a k-layer model looped L times +(precise definition in Section 2), which has the same number of parameters as a (k ⊗1) model +and same flops as a (kL ⊗1) non-looped model (see Figure 5). As a first step towards connecting +looped models and reasoning, we empirically evaluate looped models on several simple reasoning +tasks in the literature (e.g. Section 2). Perhaps surprisingly, we find that a (k ⊗L) looped models +does almost as well as, if not better than, a non-looped model (kL ⊗1) that has the same effective +depth but L times more parameters on these reasoning tasks. The looped model is also significantly +better than a (k ⊗1) model which has the same number of parameters. Our theoretical results on the +expressiveness of looped models in representing iterative algorithms with short description further +corroborate these empirical findings and provide strong support for our claim. This naturally raises +an important question: do looped models benefit language modeling in a similar manner? +Claim 2: For language modeling, looped models have an inductive bias towards good reasoning +despite having worse perplexity and memorization to an iso-flop non-looped model +For the above claim, we again train a (k ⊗L) looped model on causal language modeling and com- +pare it to the iso-param (k ⊗1) and iso-flop (kL⊗1) non-looped baselines. While the looped model +improves over the iso-param baseline, perhaps unsurprisingly, it ends up with worse perplexity than +iso-flop baseline, since perplexity depends strongly on number of parameters. However, the down- +stream evaluations reveal an intriguing trend: looped models have a tendency to improve tasks that +require reasoning a lot more than memorization tasks. Specifically, the looped model has reasoning +performance much closer to the iso-flop baseline, sometimes even exceeding it despite having L +times fewer parameters and worse perplexity. This contrasting behavior between the pretraining and +downstream metrics has been a subject of study lately (Saunshi et al., 2022; Liu et al., 2023) and is +attributed to the inductive biases introduced due to different architectures and training algorithms. +Our empirical analysis also uncovers an interesting phenomenon: accuracy on downstream tasks +scale as logarithm of the effective depth. In particular, more loops enhances performance, and the +relative benefit of loops is higher for tasks that require more reasoning. This is conceptually similar +to inference time scaling discovered for CoT, but with looping as a central component. To further +elucidate this interesting relationship of looped models with CoT, we present the following claim. +Claim 3: Looped models generate latent thoughts and can, in theory, simulate CoT reasoning +Note that CoT reasoning gives the model more time and compute by generating multiple thought +tokens before the answer, and it has powered the recent paradigm of inference-time scaling for +“thinking” models like O1 and DeepSeek’s R1 (Guo et al., 2025). We make an observation about +CoT reasoning – it is essentially a looped model that generates 1 thought token in each iteration. +However, looped models seem to be much more powerful, since they can generate multiple latent +thoughts in each iteration. We translate this intuition into a theoretical result about how looped mod- +els can simulate CoT reasoning. Motivated by these findings, we propose a regularization scheme +that aims to tap into the inductive bias of looped models towards reasoning. +Claim 4: Looping-inspired regularization can leverage this inductive bias towards better reasoning +With the backdrop of these claims, we concretely present the contributions of the paper below: +• In this paper we study looped models – multilayer models with weight sharing – and their role in +reasoning. In particular, we compare a k-layer model looped L times, denoted by (k ⊗L), with +an iso-param (k ⊗1) non-looped model with k layers and an iso-flop (kL ⊗1) model with kL +layers and L times more parameters. +• We conduct experiments on synthetic reasoning tasks like addition, p-hop induction and GSM- +style math word problems in Section 2. For these tasks, we surprisingly find that iso-flop looped +models, despite having way fewer parameters, can nearly match or outperform a non-looped +2 + +PAGE 3 +Published as a conference paper at ICLR 2025 +model. Supporting these experiments, in Section 5 we present theoretical results for why looped +models can solve such problems with almost optimal depth. +• In Section 3, we train looped models on causal language modeling at 1B parameter scale. Here, +we show that looped models have an inductive bias towards doing well on reasoning benchmarks, +despite having much worse perplexity. This finding is novel, since most prior work on looping +focused more on perplexity metrics rather than downstream reasoning tasks. We validate this in- +ductive bias by visualizing the perplexity vs downstream performance plots as training process. +Additionally, we show that looped models demonstrate good scaling behavior on various bench- +marks as the number of loops are increased, akin to CoT reasoning. Finally, we show that looped +models, along with a scratchpad, can simulate chain-of-thought reasoning. +• Inspired by this inductive bias, in Section 4, we propose a regularization that encourages layers +to be more similar to each other. We find that training with such a regularization inherits the +inductive bias of looped models towards reasoning without affecting perplexity. +2 +LOOPED MODELS ON SIMPLE REASONING TASKS +We first explore our hypothesis of looped models helping reasoning tasks on a set of tasks con- +structed in a procedural manner. The illustrative reasoning tasks we consider are: n-ary addition, +p-hop induction head that tests the model’s ability to track back for p steps, and i-GSM which con- +sists of synthetically constructed grade-school math problems. While these obviously do not cover +the whole spectrum of reasoning problems, they provide useful insights into looped models and +provide a basis for the theoretical results in Section 5. +Looped models. While many variants of looped model have been proposed (Lan et al., 2020; De- +hghani et al., 2018; Giannou et al., 2023; Yang et al., 2023; Mohtashami et al., 2023), we use the +vanilla version for simplicity. For any sequence-to-sequence function f, we denote f (L) = f ◦f · · ·◦ +f to be the function that is f looped L times. In general, the looping mechanism is independent of +architectural choices for f. For the rest of the paper, we typically use f to denote a k-layer Trans- +former backbone of a model. Thus, f looped L times is the same as a kL layer model with weight +sharing between all L blocks of k consecutive layers. We denote such looped models with the nota- +tion (k⊗L). Please refer to Figure 5 for a succinct illustration of the looping mechanism. Section 5.1 +provides a more formal definition of looped transformers that is used for theoretical analysis. +2.1 +EXPERIMENTS WITH SIMPLE REASONING PROBLEMS +n-ary addition. We consider the problem of adding n numbers with 3 digits each. Addition is pop- +ular in the literature to study aspects of reasoning with Transformers, such as use of scratchpad (Nye +et al., 2021), chain of thought reasoning (Lee et al., 2024; Li et al., 2024) and length generalization +(Cho et al., 2024). One reason for its popularity is that addition can have algorithmic solutions, +which is a feature of many reasoning problems. For our experiments, we train on a uniform mixture +on numbers of operands n ∈{2, 4, 8, 16, 32} and sample each 3-digit operand uniformly at random +between [0, 999]. We train all models directly on the input-output pair, without any chain-of-thought +steps. For instance, for n = 4, we have Input: “315 + 120 + 045 + 824 =” ; Output = “1304”. +We train a standard Transformer-based baseline (12 ⊗1) model with 12 layers. Please refer to +Appendix B.1 for details on the training setup. We also train (k ⊗12/k) looped model and an +iso-param (k ⊗1) baseline models for comparison, and vary k ∈{2, 3, 4, 6}. All trained models +are finally evaluated separately on each of n ∈{8, 16, 24, 32} to measure accuracy on increasingly +difficult problems. Results are presented in Table 1. We find that, while the shallower baselines +(k ⊗1) degrade with lower k, the looped model (k ⊗12/k) performs very well, and nearly matches +the iso-flop (12 ⊗1) baseline. In fact, even a 1-layer network looped 12 times is able to solve this, +despite using merely 1/12th of the parameters of the baseline. This suggests the addition problem +primarily requires depth, but not necessarily more parameters. +p-hop induction. +The p-hop problem is a synthetic induction task studied in Sanford et al. +(2024b), who were inspired by the analysis of induction heads from Elhage et al. (2021). Specif- +ically, given a sequence of letters v = (v1 . . . vn) from an alphabet Σ, an induction head tries to +find the penultimate occurrence of vn (from left to right) in the sequence and output the character +3 + +PAGE 4 +Published as a conference paper at ICLR 2025 +Table 1: Accuracy of looped and non-looped models on the addition problem (left) and p-hop induc- +tion (middle), and i-GSM (right) as described in Section 2. Left. For addition, we report accuracies +for different number of operands (n). For all budgets, a (k ⊗12/k) looped model is significantly +better than the iso-param (k ⊗1) model and also nearly as good as the non-looped iso-flop (12 ⊗1) +baseline model. Middle. The findings are very similar for the p-hop problem for different values of +p. Note that a random guessing baseline would get at least 25% accuracy (since only 4 choices for an- +swer). This suggests that depth via looping and small number of parameters is very effective for these +problems. Right. Accuracy on i-GSM task from Section 2. (k ⊗L) looped model is significantly +better than the iso-param (k⊗1) model and performs as well as non-looped iso-flop (kL⊗1) model. +Addition of n numbers +Params / +n = 24 +n = 32 +FLOPs +Base (12 ⊗1) +12x / 12x +100.0 +100.0 +1 layer model +Base (1 ⊗1) +1x / 1x +0.1 +0.0 +Loop (1 ⊗12) +1x / 12x +99.9 +99.6 +2 layer model +Base (2 ⊗1) +2x / 2x +49.3 +38.8 +Loop (2 ⊗6) +2x / 12x +99.7 +99.5 +3 layer model +Base (3 ⊗1) +3x / 3x +69.2 +60.7 +Loop (3 ⊗4) +3x / 12x +97.0 +96.6 +p-hop with n tokens +Params / +p = 16 +p = 32 +FLOPs +n = 256 +n = 256 +Base (6 ⊗1) +6x / 6x +99.9 +99.6 +1 layer model +Base (1 ⊗1) +1x / 1x +48.9 +49.0 +Loop (1 ⊗6) +1x / 6x +99.9 +99.5 +2 layer model +Base (2 ⊗1) +2x / 2x +68.8 +59.4 +Loop (2 ⊗3) +2x / 6x +99.9 +99.8 +3 layer model +Base (3 ⊗1) +3x / 3x +97.2 +73.0 +Loop (3 ⊗2) +3x / 6x +99.9 +99.5 +i-GSM +Params / FLOPs +Accuracy +Base (8 ⊗1) +8x / 8x +73.2 +1 layer model +Base (1 ⊗1) +1x / 1x +24.5 +Loop (1 ⊗2) +1x / 2x +52.3 +Loop (1 ⊗4) +1x / 4x +69.9 +Loop (1 ⊗8) +1x / 8x +73.2 +2 layer model +Base (2 ⊗1) +2x / 2x +54.0 +Loop (2 ⊗2) +2x / 4x +66.9 +Loop (2 ⊗4) +2x / 8x +73.6 +4 layer model +Base (4 ⊗1) +4x / 4x +71.3 +Loop (4 ⊗2) +4x / 8x +71.6 +immediately succeeding it. The p-hop problem generalizes this idea to sequentially hop p times. +Intuitively, the p-hop problem tests a model’s ability to recursively backtrack and retrieve the answer +for a given query. This is reminiscent of the reasoning abilities required to solve reading compre- +hension kind of problems. We present the formal definition of the p-hop problem in Definition B.1. +We perform experiments with looped and non-looped models on the p-hop problem, with alphabet +size set to 4 and sequences of length 256, and vary p between 16 and 32 to control the problem +difficulty. Our observations are presented in Table 1. Similarly to our findings on the addition task, +reasonably deep looped models perform as well as the baseline using much fewer parameters. +i-GSM (Synthetic Grade School Math Problems). +Inspired by Ye et al. (2024), we built our own +version of grade-school level math word problems. While we follow many of the design guidelines +of Ye et al. (2024), we make a few simplifying changes. We generate the math problem as a DAG +of arithmetic computations modulo 7, and restrict the depth of the graph to 4. For simplicity, we +retain the problems in the symbolic form and do not map them to English (e.g., see Table 8) 1 We +train models of depths 1, 2, 4 and 8 and compare them with different looped variants in Table 1. The +answer is computed modulo 7. Hence, a random guessing baseline would get at least 14% accuracy. +Appendix B.1 has more details. Remarkably, we again observe that a depth k model looped L times +matches or outperforms a depth kL model and far outperforms a depth k non-looped model. This +suggests that even a more complex and realistic looking reasoning problem does not need too many +parameters and can benefit from depth via looping. +3 +LANGUAGE MODELING WITH LOOPED MODELS +In this section, we pretrain and evaluate looped models for causal language models. We train models +on 250B tokens of the Pile dataset (Gao et al., 2020) and use a 24-layer 1B parameter model for most +experiments, motivated by the setting in Tay et al. (2022) (refer to Appendix B.2 for more details). +3.1 +EXPERIMENTS WITH LANGUAGE MODELING +For causal language modeling, we pretrain various looped models on the standard GPT2-style next +token prediction objective (Radford et al., 2019). We train models with different parameter budgets +to make sure that the findings are robust. We remind the reader that the notation (k⊗L) corresponds +to a k layer model looped L times. For each setting, we compare 3 models: (a) (24 ⊗1): 24-layer +1B model, (b) (k ⊗1): k-layer model with the same configuration as the 24-layer model for other +dimensions, (c) (k ⊗24/k): k-layer model looped 24/k times to match the parameter count of (b) +1Similar to Ye et al. (2024), the simplified setting still allows for over 7 billion unique solution templates. +4 + +PAGE 5 +Published as a conference paper at ICLR 2025 +Table 2: Downstream evaluations for language models trained on the Pile dataset. Comparisons in- +clude a 24-layer 1B-parameter baseline model, iso-flop looped models (k⊗24/k) for various param- +eter budgets k, and the corresponding iso-param baselines (k⊗1). Downstream evaluations are aver- +aged over tasks within 4 task groups. We also include the % Gap metric for each k to measure the gap +between the iso-param and iso-flop baselines that is covered by the looped model (see Equation (1)). +Overall the looped models are worse on perplexity and closed book QA (memorization benchmarks), +but the % Gap is much higher for task groups that require reasoning (open book QA, math word +problems). In fact for reasoning primitives, which are purely testing for reasoning skills, the looped +models are much better than the 1B baseline for all k, despite having 24/k× fewer parameters. +Params / +Perplexity (↓) +Closed +Open +Math Word +All Tasks +Reasoning +FLOPs +(validation) +Book QA (↑) +Book QA (↑) +Problems (↑) +Average (↑) +Primitives (↑) +(4 tasks) +(5 tasks) +(6 tasks) +(15 tasks) +(4 tasks) +24 layers +Baseline +24x / 24x +7.40 +11.2 +33.9 +29.3 +26.0 +47.5 +12 layers +Base (12 ⊗1) +12x / 12x +8.16 +8.2 +26.9 +26.7 +21.8 +35.7 +Loop (12 ⊗2) +12x / 24x +7.90 +9.3 +30.8 +34.3 +26.5 +51.2 +% Gap +34 % +37 % +56 % +282 % +110 % +131 % +Middle Loop +12x / 24x +7.81 +11.0 +32.3 +28.3 +25.0 +56.5 +(4 ⊗1, 4, 1) +% Gap +46 % +94 % +78 % +62 % +95 % +176 % +8 layers +Base (8 ⊗1) +8x / 8x +8.75 +6.3 +22.7 +17.1 +16.1 +33.0 +Loop (8 ⊗3) +8x / 24x +8.19 +8.5 +30.8 +28.4 +23.9 +55.3 +% Gap +41 % +44 % +72 % +92 % +78 % +153 % +6 layers +Base (6 ⊗1) +6x / 6x +9.25 +4.0 +19.3 +17.7 +14.6 +24.1 +Loop (6 ⊗4) +6x / 24x +8.42 +8.2 +28.7 +29.8 +23.7 +56.1 +% Gap +44 % +58 % +64 % +104 % +80 % +136 % +4 layers +Base (4 ⊗1) +4x / 4x +10.12 +1.8 +13.8 +9.7 +9.0 +19.4 +Loop (4 ⊗6) +4x / 24x +8.79 +6.7 +26.2 +24.8 +20.4 +56.9 +% Gap +48 % +52 % +61 % +77 % +67 % +133 % +and match the effective depth/FLOPs of (a). We run experiments for k ∈{4, 6, 8, 12} to ensure that +the findings are robust. After pretraining on Pile, we evaluate the models on validation perplexity +and on downstream benchmarks using k-shot evaluations. Results are summarized in Table 2 +Evaluation metrics. We evaluate the models on perplexity metric after training is completed. Since +there is growing evidence that perplexity, although very useful for training, is a narrow measure of +model quality, we also track more holistic downstream evaluations (Liang et al., 2023). Thus, we +evaluate the model on 4 important slices: closed book QA, open book QA, math word problems +and reasoning primitives. These comprise of 19 different tasks in total. We defer details for the +evaluation benchmarks in Appendix B.3 +For each task group G from above, in Table 2 we report the average accuracy for that task group, +denoted by AvgG. Furthermore, for each layer budget k, we report the % gap between the iso-param +and iso-flop models that is covered by the looped model. More specifically +% Gap = AvgG(k ⊗24/k) −AvgG(k ⊗1) +AvgG(24 ⊗1) −AvgG(k ⊗1) . +(1) +This measures how effectively looping can bridge the gap between iso-param and iso-flops +baselines. Implicitly, it measures how different task groups behave when a model only has a few +parameters but is given depth through looping. % Gap being closer to 0% means that providing +depth via looping does not benefit the task group, and number of parameters is the most important +factor. On the other hand, % Gap closer to 100% means parameter count matters much less for the +task group, and that depth via looping is more essential. +Perplexity results. Firstly we notice that all (k ⊗24/k) looped models have better perplexity +compared to the iso-param (k ⊗1) baseline, but worse perplexity compared to the non-looped 24- +layer baseline. The looped models only covers up roughly 34 −50% of the perplexity gap between +the iso-param and iso-flop baselines for various values of k. This perplexity gap is not too surprising +since the looped model has 24/k times fewer parameters, and thus, lower capacity than the 24-layer +baseline. This was also been observed in prior works (Lan et al., 2020; Mohtashami et al., 2023) +5 + +PAGE 6 +Published as a conference paper at ICLR 2025 +Figure 1: Downstream evaluation for various task groups on the x-axis, vs validation log perplexity +on the y-axis (reversed), as training proceeds. We compare a 12-layer baseline model (12 ⊗1) with +a looped model (12 ⊗2). For closed book QA (memorization) tasks looping has very similar trends +to baseline. For open book QA tasks and math word problems, looping has much better downstream +performance at an equivalent log perplexity. +and is the primary reason looped models have been ignored for language modeling. However, as we +shall see shortly, the downstream metrics paint a more interesting and favorable picture. +Results on QA tasks. We first consider closed book and open book QA categories in Table 2. +Closed book QA tasks are primarily testing the model’s memorization abilities. Open book QA +on the other hand tests the model’s ability to infer the answer from the additional context that is +provided. Thus, intuitively, open book QA tasks require more reasoning. Firstly we notice that the +% Gap for closed book QA (memorization) is very similar to % Gap for perplexity. The % Gap +for open book QA, on the other hand, is much higher for all parameter budgets. This suggests that +looped models relatively improve contextual QA much more than memorization based QA. +Math problems and reasoning primitves. We also present the % Gap for the math word problem in +Table 2. Surprisingly, we find that (k ⊗24/k) looped model can almost match the baseline (24 ⊗1) +model for k ≥6, despite having k times fewer parameters. In fact, the 12 layer model looped twice +is even signficantly better (34.3) than the 24 layer baseline (29.3), despite having 50% of parameters +and worse perplexity; suggesting that looping disproportionately improves mathematical reasoning. +To better understand the effect on reasoning, we direct the readers attention to the evaluations for +reasoning primitives in Table 2. The results are quite remarkable: (k ⊗24/k) looped models are +better than the iso-flop baseline (24 ⊗1) at reasoning primitives, for all values of k. This is +a priori very surprising, since these are synthetic generated tasks and have nothing to do with the +pretraining data or the model architecture. Thus, solving these tasks necessarily requires reasoning +from context, and memorization abilities will not help here. These results clearly suggest that looped +models have a bias towards improving reasoning, despite having worse perplexity and memorization. +3.2 +INDUCTIVE BIAS TOWARDS REASONING +In this section, we formalize the inductive bias by plotting the perplexity vs downstream metric +iso-plots, as introduced in Saunshi et al. (2022). Section 3.1 showed that looped models have higher +than expected performance on reasoning problems. However, since looped models are worse on +perplexity, it is hard to make a direct comparison between various models. One way to bring parity +between models is to look at their downstream performances at the same validation pretraining loss +(Liu et al., 2023). Saunshi et al. (2024) proposed plotting pretraining loss vs downstream metrics +as training proceeds, as a way to study the inductive bias of various methods. For each model, we +evaluate the log perplexity and downstream metrics at every 20k steps, starting from 120k steps. We +plot these values in a scatter plot and fit a linear function with log perplexity and the corresponding +downstream metric being input and output respectively. Please refer to Figure 1 for two sets of +isoplots. For all values of k, we observe the following: +• The isoplots for (k⊗L) looped model and (k⊗1) baseline are very aligned for closed book QA +tasks (if extrapolated). This suggests that log perplexity is a very strong indicator of downstream +performance on memorization based tasks. +• For open book QA and math word problems, the isoplot line for the looped model is always +higher than the baseline model. This suggests that at the same log perplexity, looped models +will tend to have higher evaluation on these tasks that require more reasoning. +6 + +PAGE 7 +Published as a conference paper at ICLR 2025 +Figure 2: Scaling behavior for various task groups as the effective depth increases (also see Fig- +ure 7). The blue curve shows how performance scales for (4 ⊗D/4) looped models as the number +of loops increases, without increasing parameters. The orange curve visualizes the scaling behavior +of (D ⊗1) which increases the depth by adding fresh parameters. For reasoning primitives, the +looped model scales as well, or even better, than the baseline despite having D/4 fewer parameters. +• For reasoning primitives, there is a stark difference between looped and baseline models. The +looped model seems to have good performance at most points in training. +This suggests a strong inductive bias of looped models towards improving reasoning. We discuss +connections to gradual stacking (Appendix B.4) approaches that have a similar inductive bias. +3.3 +SCALING BEHAVIOR OF LOOPING +In this section, we discuss an intriguing scaling behavior of looping, specifically the impact of the +number of loops on various evaluation metrics. In particular, we are interested in scaling behavior +of: (a) accuracy as a function of number of loops and (b) comparison of looped and non-looped +baseline of the same effective depth. To this end, we pretrain various looped language models of the +form (4 ⊗L), i.e., 4-layer model looped L times, for L ∈{1, 2, 3, 6, 9, 12}. To enable iso-FLOPs +comparison, we also train baseline models of the form (4L⊗1), which has L times more parameters. +For each task group, we plot the average accuracy as a function of the effective depth, i.e. D = 4L. +From the results presented in Figure 2, we observe the following. +1. In both cases, we find that the accuracies for all task groups continue to increase with more +loops/depth, although, unsurprisingly, the returns are diminishing with depth for both looped and +non-looped models. Interestingly, for both looped and non-looped models, we found that one can +fit a simple scaling law of the following form: +Acc = α log(D) + β, +(2) +where D is the effective depth and α measures the impact of depth on downstream performance. +2. Furthermore, for each task group, we compute αloop/αbase to assess the relative impact of “depth +via looping” compared to “depth via additional parameters”. We find that more loops continue +to help, and the relative benefit of loops is higher for reasoning tasks like open book QA and +math problems. Remarkably, the impact of loops is even higher (1.19x) than impact of depth for +reasoning primitives, which further consolidates the benefit of looped models for reasoning. +Latent thoughts and connections to CoT reasoning. +We end this discussion with an important +question: why should we expect this interesting scaling behavior of looped models? We argue that +looped models have a strong connection to chain-of-thought (CoT) reasoning. Such a connection is +insightful because recent works on thinking have shown CoT can demonstrate inference-time scaling +behavior, where the accuracy on reasoning datasets continues to improve as the length of the models +chain of thought increases; i.e., generating more thoughts leads to better reasoning. +To establish this connection, we make a simple observation about CoT reasoning – it is essentially +a looped model that generates a single thought token in each iteration. However, looped models can +be more powerful since they can generate multiple “latent thoughts” in each iteration. This can be +visualized in Figure 8. We further translate this intuition into a theoretical result (see Section 5.4) +about how looped models can in fact simulate CoT reasoning. Given this connection to CoT rea- +soning, it is believable that looping can scale well for harder reasoning. We believe that leveraging +looping explicitly for inference-time scaling is a very promising future direction. +7 + +PAGE 8 +Published as a conference paper at ICLR 2025 +Table 3: Results for the 24-layer 1B model with and without the regularization introduced in +Section 4. We try various block sizes k motivated by the looped model settings from Table 2. +Overall, regularization helps retain the inductive bias towards reasoning, with notable improvements +on math word problems and reasoning primitives, without almost neutral perplexity. +Perplexity (↓) +Closed +Open +Math Word +All Tasks +Reasoning +(validation) +Book QA (↑) +Book QA (↑) +Problems (↑) +Average (↑) +Primitives (↑) +(4 tasks) +(5 tasks) +(6 tasks) +(15 tasks) +(4 tasks) +Baseline +7.40 +11.2 +33.9 +29.3 +26.0 +47.5 +Regularized (k = 4, λreg = 1) +7.41 +11.2 +34.8 +31.6 +27.2 +42.5 +Regularized (k = 4, λreg = 10) +7.38 +12.5 +36.2 +36.4 +30.0 +57.2 +Regularized (k = 6, λreg = 10) +7.40 +12.0 +35.8 +31.0 +27.5 +55.8 +Regularized (k = 8, λreg = 10) +7.43 +11.3 +34.4 +32.8 +27.6 +56.3 +Regularized (k = 12, λreg = 10) +7.51 +10.1 +34.1 +32.3 +27.0 +50.7 +4 +LOOPING-INSPIRED REGULARIZATION +In the previous section, we observed the looped models can improve reasoning with worse perplex- +ity. Can we leverage this observation to improve reasoning without affecting perplexity? Here, we +propose a simple approach: regularize the weights of the model to encourage them to be close to a +looped model. This could have two advantages, (a) the model still has free parameters to improve +perplexity, (b) the closeness to looped model can inherit the desirable inductive bias. In particular, +if an L-layer model is denoted as f0 ◦f1 . . . , ◦fL/k−1, where each fi is a block of k layers, we +add a regularization term that makes all the weights of the block fi close to fi+1 in terms of cosine +similarity. For a parameter group G (e.g. first feed-forward layer, or query matrix in Transformer), +we use θ(0) +G , θ(1) +G , . . . , θ(L−1) +G +to denotes the weights in all layers. Then the regularization term is +RG(k) = +1 +L −k +L +k −2 +X +i=0 +k−1 +X +j=0 +Cosine + +θ(ik+j) +G +, θ((i+1)k+j) +G + +(3) +The final loss function is a sum of the standard cross-entropy loss and the regularization term aver- +aged over all groups, multiplied by a scalar hyperparameter. Let G denote the set of all parameter +groups; G = {Attn-Q, Attn-K, . . . , FFN-W2} +L = Lxent + λreg|G|−1 X +G∈G +RG(k) +(4) +In the above formulation, λreg = 0 would recover standard training and λreg →∞would converge +to a fully looped model. Intermediate values of λreg will lead to “approximately” looped models. +For instance, to emulate the (4 ⊗6) looped model setting, we use pick k = 4, L = 24 and a large +regularization strength like λreg = 10. All other hyperparameters are kept the same as baseline +training for a fair comparison. We tried options other than cosine similarity, like ℓ2 norm, to bring +the weights closer but found that cosine was more robust and effective. +Cosine similarities. Firstly, we check if the regularization had the right effect by measuring the +cosine similarities between the successive blocks of k layers at the end of training. We, indeed, find +that for all parameter groups, the cosine similarity around 0.98 or higher (see Figure 3). +Inductive bias. To confirm the inductive bias of the regularizer, we visualize the log perplexity vs +downstream isoplots for λreg = 10 and baseline models in Figure 6. While the plots are similar +for closed book QA, a strong inductive bias shows up for open book QA and reasoning problems. +Crucially, the regularized model does well on reasoning without hurting perplexity (see Table 3). +5 +THEORETICAL ANALYSIS FOR LOOPED MODELS +In this section, we present theoretical results to understand the phenomenon from the previous +sections – why can looped model with few parameters match an iso-flops non-looped baseline on +reasoning problems? While a complete theory is challenging, since “reasoning” is a very broad +concept, the goal is to provide some intuition and formalization for the expressive power of looped +models. +First, we show that looped Transformers can effectively solve group composition (a +generalization of the addition problem). Then we show a very general result on how a non-looped +8 + +PAGE 9 +Published as a conference paper at ICLR 2025 +model with very few distinct layers can be simulated by a looped model with a small blowup in +model size. This result is then used to solve the p-hop problem using a one-layer looped transformer. +Our construction for group composition and p-hop problem are nearly optimal in terms of depth +and much more efficient in terms of parameters compared to non-looped models. +5.1 +PRELIMINARIES AND NOTATIONS +We first define the standard transformer architecture. Throughout the paper we will fix the dimension +of the embedding to be d ∈N+, the vocabulary to be V and maximum sequence length to be nmax. +We will use id to denote the identity mapping. Here, we describe the high-level notation. Please +refer to Appendix C.1 for detailed notations. We use FF and MHA to denote the feed-forward and +attention layers respectively, and θMHA and θFF denote the parameters in these layers. +Definition 5.1 (Transformer Block). Given number of layers L ∈N+ and parameter θTB = +(θ(l) +MHA, θ(l) +FF)L−1 +l=0 , L-layer transformer block TBθTB : (Rd)n →(Rd)n for any n ∈N+ is defined as +TBθTB ≜(id + FFθ(L−1) +FF +) ◦(id + MHAθ(L−1) +MHA +) ◦· · · (id + FFθ(0) +FF ) ◦(id + MHAθ(0) +MHA), +(5) +We also denote EMBED and OUTPUT to be the input embedding and output softmax layers respec- +tively. Please refer to Appendix C.1 for precise definitions. Finally, we define the entire transformer +model that maps a sequence of tokens to a distribution over tokens: pθ : ∪n≤nmaxVn →∆|V|−1. +pθ ≜OUTPUTθOUTPUT ◦TBθTB ◦EMBEDθTE,θPE +(6) +where θ = (θTB, θTE, θPE, θOUTPUT) denote all the transformer parameter. In particular, we use +TFθ(v1, . . . , vn) ≜arg maxv∈V pθ(v|v1, . . . , vn) to denote the deterministic version of the trans- +former model. We now define a looped Transformer model that also subsumes a non-looped model. +Definition 5.2 ((L⊗T) Looped Transformer). Given the number of loops T ∈N+, parameters θ = +(θTB, θTE, θPE, θOUTPUT), where θTF = (θ(l) +MHA, θ(l) +FF)L−1 +l=0 , we define a (L ⊗T) looped Transformer +as pθ,T ≜OUTPUTθOUTPUT ◦(TBθTB)T ◦EMBEDθTE,θPE. +5.2 +GROUP COMPOSITION PROBLEM +We consider the problem of composing n elements from a group, and prove that a standard 1-layer +transformer looped O(log(n)) times can solve this problem. This is a generalization of the modular +addition problem and has a long history (see Appendix C.2.2). Recently, Liu et al. (2022) show +that transformers with log2 n depth can compute composition over n group elements, regardless of +whether the group is solvable or not. However, the construction in Liu et al. (2022) uses different +attention parameter for each layer. Here, we provide a more parameter efficient construction where +we solve this problem by looping a one-layer transformer log(n) times. This result matches the +depth upper bound shown for non-looped models by Liu et al. (2022), and is very close to their +super constant lower bound. Thus looped models can solve the problem with best known depth. +Theorem 5.1. For any finite group G and every n ∈N+, there exists a constant-precision looped +transformer TFθ,T computing the composition of n elements from G with a 1-layer transformer +block, T = ⌈log2 n⌉loops, G ∪{#} being the vocabulary, d = 3 (⌈log2 |G|⌉+ ⌈log2 n + 1⌉) +embedding size, dFF = |G|2 + 6⌈log2 |G|⌉hidden dimension in MLP, dATTN = ⌈log2 n⌉hid- +den attention dimension, and 2 attention heads. +More specifically, for any g1, . . . , gn ∈G, +TFθ(#, g1, . . . , gn) = g1 ◦· · · ◦gn. +5.3 +LOOPED MODELS CAN SIMULATE NON-LOOPED MODELS +Our second theoretical result shows that a non-looped transformer with repeated layers can be sim- +ulated by a looped transformer with fewer parameters and same depth. +Theorem 5.2. For any transformer pθ with L layers, d embedding size, dFF hidden dimension for +MLP, H attention heads with dATTN hidden dimension, at most R distinct transformer layers and +9 + +PAGE 10 +Published as a conference paper at ICLR 2025 +bounded activation value, there is a looped transformer pθ′,L working on the same vocabulary V plus +a dummy token #, which loops a 1-layer transformer block for L times, with d + R + 2 embedding +size, RhFF + O(L) hidden dimension for MLP, RH attention heads with dATTN hidden dimension, +such that for any string v1, . . . , vn ∈V, pθ(v1, . . . , vn) = pθ′,L(#, v1, . . . , vn). +We can also use the above theorem to convert the O(log2 n) depth transformer that simulates group +composition into a 1-layer looped transformer, although it is less parameter efficient than the result +from the previous section. Please refer to Appendix C.2.1 for the full proof. +Theory for p-hop. The experiments on p-hop induction from Section 2.1 surprisingly show that a +small model looped multiple times can solve it very effectively. We establish a theoretical basis for +this finding. More specifically, we show that a constant layer transformer with log(p) loops suffices +to solve p-hop induction problem. This result, in fact, matches the lower bound for layers required +for non-looped models proved in Sanford et al. (2024b). The result follows from Theorem 5.2 and +the construction for non-looped models from Sanford et al. (2024b) (restated in Theorem C.12). +Corollary 5.3. p-hop problem (Definition B.1) can be solved by looping a 1-layer transformer +⌊log2 p⌋+ 2 times, which has O(log n) bits of precision, d = dFF = dATTN = O(1) embedding +size, hidden dimension for MLP and attention, and at most 3 attention heads. +5.4 +LOOPED MODELS CAN SIMULATE COT REASONING +In Section 3.3, we discussed how looped models can be viewed as generating multiple latent +thoughts in each iteration. The following theorem shows that one can use looped transformer with +L loops to simulate L steps CoT of another transformer with similar sizes. +Theorem 5.4 (Looped transformer simulates CoT). For any L-layer non-looped transformer TFθ +with fixed input length n and the number of CoT steps m, there exists a looped transformer TFθ′ +with L + O(1) layers, Ω(log(n + m)), more embedding dimension and constantly many more +attention heads, such that for any input v = (vi)n +i=1, the output of non-looped transformer after m +steps of CoT, TFm +θ (v), is the same as that of the looped transformer on input x concatenated by m +dummy tokens with m loops, TFθ′,m(v, #m). +We sketch the high-level idea behind Theorem 5.4; the full proof can be found in Appendix C.3. +• (Masking all-but-one) We maintain a counter t (Lemma C.10) at each position for the current +number of loop and for the ith position, we will only ”update” the embedding if i−n ≥t and reset +the embedding to the input to the looped transformer layer otherwise. This can be implemented +by MLP. So similar to CoT, the first n + i −1 embedding won’t be changed in the ith loop. +• (Shift by one) We can use attention to obtain the output of the current loop at the previous position +and use that as the input of the next loop at current position. (Lemma C.9) +• (Token decoding) We show that we can use MLP with ReLU activation to simulate the encoding +and decoding process of CoT. (Lemma C.7) +6 +CONCLUSIONS, LIMITATIONS AND FUTURE WORK +This work explores a new direction of “looped models for reasoning”. Not only are looped models +able to solve many reasoning problems with very fewer parameters, they also have an inductive +bias towards disproportionately improving the reasoning performance of language models, over +memorization. The theoretical results on the expressivity of looped models start to provide some +hints into their depth-optimality. While we test looped models on a subset of reasoning problems, +a natural question is whether the results hold for many other forms of reasoning (e.g. multimodal +and common-sense reasoning). In particular, a succinct formalization of reasoning problems itself +is an interesting future direction. +Furthermore, the inductive bias towards improved reasoning +performance at the same perplexity is very intriguing and deserves further exploration. We find the +scaling behavior of looped models very fascinating, and the connections to latent thoughts and CoT +reasoning start to provide hints into this behavior. We hope this inspires future exploration on using +looped models for more efficient inference-time scaling to aid with deeper reasoning. +10 + +PAGE 11 +Published as a conference paper at ICLR 2025 +REFERENCES +Zeyuan Allen-Zhu and Yuanzhi Li. Physics of language models: Part 3.3, knowledge capacity +scaling laws. arXiv preprint arXiv:2404.05405, 2024. +Shaojie Bai, J Zico Kolter, and Vladlen Koltun. Deep equilibrium models. Advances in neural +information processing systems, 2019. +Arpit Bansal, Avi Schwarzschild, Eitan Borgnia, Zeyad Emam, Furong Huang, Micah Goldblum, +and Tom Goldstein. End-to-end algorithm synthesis with recurrent networks: Extrapolation with- +out overthinking. Advances in Neural Information Processing Systems, 2022. +David A. Barrington. Bounded-width polynomial-size branching programs recognize exactly those +languages in nc. pp. 1–5, 1986. +Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, +Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are +few-shot learners. Advances in neural information processing systems, 2020. +Xingwu Chen and Difan Zou. What can transformer learn with varying depth? case studies on +sequence learning tasks. arXiv preprint arXiv:2404.01601, 2024. +Hanseul Cho, Jaeyoung Cha, Pranjal Awasthi, Srinadh Bhojanapalli, Anupam Gupta, and Chulhee +Yun. Position coupling: Leveraging task structure for improved length generalization of trans- +formers. arXiv preprint arXiv:2405.20671, 2024. +Eunsol Choi, He He, Mohit Iyyer, Mark Yatskar, Wen-tau Yih, Yejin Choi, Percy Liang, and Luke +Zettlemoyer. QuAC: Question answering in context. In Proceedings of the 2018 Conference on +Empirical Methods in Natural Language Processing, 2018. +Jonathan H. Clark, Eunsol Choi, Michael Collins, Dan Garrette, Tom Kwiatkowski, Vitaly Nikolaev, +and Jennimaria Palomaki. TyDi QA: A benchmark for information-seeking question answering in +typologically diverse languages. Transactions of the Association for Computational Linguistics, +2020. +Artur Back de Luca and Kimon Fountoulakis. Simulation of graph algorithms with looped trans- +formers. arXiv preprint arXiv:2402.01107, 2024. +Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal +transformers. In International Conference on Learning Representations, 2018. +Dheeru Dua, Yizhong Wang, Pradeep Dasigi, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. +DROP: A reading comprehension benchmark requiring discrete reasoning over paragraphs. In +Proc. of NAACL, 2019. +Benjamin L Edelman, Surbhi Goel, Sham Kakade, and Cyril Zhang. Inductive biases and variable +creation in self-attention mechanisms. In International Conference on Machine Learning, pp. +5793–5831. PMLR, 2022. +Nelson Elhage, Neel Nanda, Catherine Olsson, Tom Henighan, Nicholas Joseph, Ben Mann, +Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, et al. A mathematical framework for +transformer circuits. Transformer Circuits Thread, 1:1, 2021. +Guhao Feng, Yuntian Gu, Bohang Zhang, Haotian Ye, Di He, and Liwei Wang. Towards revealing +the mystery behind chain of thought: a theoretical perspective. arXiv preprint arXiv:2305.15408, +2023. +Guhao Feng, Bohang Zhang, Yuntian Gu, Haotian Ye, Di He, and Liwei Wang. Towards revealing +the mystery behind chain of thought: a theoretical perspective. Advances in Neural Information +Processing Systems, 36, 2024. +Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason +Phang, Horace He, Anish Thite, Noa Nabeshima, et al. The pile: An 800gb dataset of diverse text +for language modeling. arXiv preprint arXiv:2101.00027, 2020. +11 + +PAGE 12 +Published as a conference paper at ICLR 2025 +Yihang Gao, Chuanyang Zheng, Enze Xie, Han Shi, Tianyang Hu, Yu Li, Michael K Ng, Zhenguo +Li, and Zhaoqiang Liu. On the expressive power of a variant of the looped transformer. arXiv +preprint arXiv:2402.13572, 2024. +Khashayar Gatmiry, Nikunj Saunshi, Sashank J Reddi, Stefanie Jegelka, and Sanjiv Kumar. Can +looped transformers learn to implement multi-step gradient descent for in-context learning? In +Forty-first International Conference on Machine Learning, 2024a. +Khashayar Gatmiry, Nikunj Saunshi, Sashank J Reddi, Stefanie Jegelka, and Sanjiv Kumar. On +the role of depth and looping for in-context learning with task diversity. +arXiv preprint +arXiv:2410.21698, 2024b. +Angeliki Giannou, Shashank Rajput, Jy-yong Sohn, Kangwook Lee, Jason D Lee, and Dimitris +Papailiopoulos. Looped transformers as programmable computers. In International Conference +on Machine Learning. PMLR, 2023. +Linyuan Gong, Di He, Zhuohan Li, Tao Qin, Liwei Wang, and Tieyan Liu. Efficient training of +BERT by progressively stacking. In Proceedings of the 36th International Conference on Machine +Learning, 2019. +Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Ruoyu Zhang, Runxin Xu, Qihao Zhu, +Shirong Ma, Peiyi Wang, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms +via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025. +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. Train- +ing compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022. +Mandar Joshi, Eunsol Choi, Daniel Weld, and Luke Zettlemoyer. TriviaQA: A large scale distantly +supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meet- +ing of the Association for Computational Linguistics (Volume 1: Long Papers), 2017. +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. +Rik Koncel-Kedziorski, Subhro Roy, Aida Amini, Nate Kushman, and Hannaneh Hajishirzi. +Mawps: A math word problem repository. In Proceedings of the 2016 conference of the north +american chapter of the association for computational linguistics: human language technologies, +2016. +Kenneth Krohn and John Rhodes. Algebraic theory of machines. i. prime decomposition theorem +for finite semigroups and machines. Transactions of the American Mathematical Society, 116, +1965. +Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris +Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion +Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc Le, and Slav +Petrov. Natural questions: A benchmark for question answering research. Transactions of the +Association for Computational Linguistics, 2019. +Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Sori- +cut. Albert: A lite bert for self-supervised learning of language representations. In International +Conference on Learning Representations, 2020. +Nayoung Lee, Kartik Sreenivasan, Jason D. Lee, Kangwook Lee, and Dimitris Papailiopoulos. +Teaching arithmetic to small transformers. In The Twelfth International Conference on Learn- +ing Representations, 2024. +Zhiyuan Li, Hong Liu, Denny Zhou, and Tengyu Ma. Chain of thought empowers transformers to +solve inherently serial problems. In The Twelfth International Conference on Learning Represen- +tations, 2024. URL https://openreview.net/forum?id=3EWTEy9MTM. +12 + +PAGE 13 +Published as a conference paper at ICLR 2025 +Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian +Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, et al. Holistic evaluation of language +models. Transactions on Machine Learning Research, 2023. +Bingbin Liu, Jordan T Ash, Surbhi Goel, Akshay Krishnamurthy, and Cyril Zhang. Transformers +learn shortcuts to automata. arXiv preprint arXiv:2210.10749, 2022. +Hong Liu, Sang Michael Xie, Zhiyuan Li, and Tengyu Ma. Same pre-training loss, better down- +stream: Implicit bias matters for language models. +In International Conference on Machine +Learning. PMLR, 2023. +Zechun Liu, Changsheng Zhao, Forrest Iandola, Chen Lai, Yuandong Tian, Igor Fedorov, Yunyang +Xiong, Ernie Chang, Yangyang Shi, Raghuraman Krishnamoorthi, et al. Mobilellm: Optimizing +sub-billion parameter language models for on-device use cases. arXiv preprint arXiv:2402.14905, +2024. +William Merrill and Ashish Sabharwal. +The expresssive power of transformers with chain of +thought. arXiv preprint arXiv:2310.07923, 2023a. +William Merrill and Ashish Sabharwal. The parallelism tradeoff: Limitations of log-precision trans- +formers. Transactions of the Association for Computational Linguistics, 11:531–545, 2023b. +Shen-Yun Miao, Chao-Chun Liang, and Keh-Yih Su. A diverse corpus for evaluating and developing +english math word problem solvers. In Proceedings of the 58th Annual Meeting of the Association +for Computational Linguistics, pp. 975–984, 2020. +Amirkeivan Mohtashami, Matteo Pagliardini, and Martin Jaggi. Cotformer: More tokens with at- +tention make up for less depth. arXiv preprint arXiv:2310.10845, 2023. +Rodrigo Nogueira, Zhiying Jiang, and Jimmy Lin. Investigating the limitations of transformers with +simple arithmetic tasks. arXiv preprint arXiv:2102.13019, 2021. +Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, +David Bieber, David Dohan, Aitor Lewkowycz, Maarten Bosma, David Luan, et al. +Show +your work: Scratchpads for intermediate computation with language models. +arXiv preprint +arXiv:2112.00114, 2021. +Arkil Patel, Satwik Bhattamishra, and Navin Goyal. Are nlp models really able to solve simple +math word problems? In Proceedings of the 2021 Conference of the North American Chapter of +the Association for Computational Linguistics: Human Language Technologies. Association for +Computational Linguistics, 2021. +Jackson Petty, Sjoerd van Steenkiste, Ishita Dasgupta, Fei Sha, Dan Garrette, and Tal Linzen. +The impact of depth and width on transformer language model generalization. arXiv preprint +arXiv:2310.19956, 2023. +Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language +models are unsupervised multitask learners. OpenAI blog, 2019. +Pranav Rajpurkar, Robin Jia, and Percy Liang. Know what you don’t know: Unanswerable questions +for SQuAD. In Proceedings of the 56th Annual Meeting of the Association for Computational +Linguistics (Volume 2: Short Papers), Melbourne, Australia, 2018. +Sashank Reddi, Sobhan Miryoosefi, Stefani Karp, Shankar Krishnan, Satyen Kale, Seungyeon Kim, +and Sanjiv Kumar. Efficient training of language models using few-shot learning. In Proceedings +of the 40th International Conference on Machine Learning, 2023. +Siva Reddy, Danqi Chen, and Christopher D. Manning. CoQA: A conversational question answering +challenge. Transactions of the Association for Computational Linguistics, 2019. +Clayton Sanford, Bahare Fatemi, Ethan Hall, Anton Tsitsulin, Mehran Kazemi, Jonathan Halcrow, +Bryan Perozzi, and Vahab Mirrokni. Understanding transformer reasoning capabilities via graph +algorithms. arXiv preprint arXiv:2405.18512, 2024a. +13 + +PAGE 14 +Published as a conference paper at ICLR 2025 +Clayton Sanford, Daniel Hsu, and Matus Telgarsky. Transformers, parallel computation, and loga- +rithmic depth. arXiv preprint arXiv:2402.09268, 2024b. +Nikunj Saunshi, Jordan Ash, Surbhi Goel, Dipendra Misra, Cyril Zhang, Sanjeev Arora, Sham +Kakade, and Akshay Krishnamurthy. Understanding contrastive learning requires incorporating +inductive biases. In Proceedings of the 39th International Conference on Machine Learning, +2022. +Nikunj Saunshi, Stefani Karp, Shankar Krishnan, Sobhan Miryoosefi, Sashank J. Reddi, and San- +jiv Kumar. +On the inductive bias of stacking towards improving reasoning. +arXiv preprint +arXiv:2409.19044, 2024. +Avi Schwarzschild, Eitan Borgnia, Arjun Gupta, Furong Huang, Uzi Vishkin, Micah Goldblum, +and Tom Goldstein. Can you learn an algorithm? generalizing from easy to hard problems with +recurrent networks. Advances in Neural Information Processing Systems, 2021. +Noam Shazeer and Mitchell Stern. Adafactor: Adaptive learning rates with sublinear memory cost. +In International Conference on Machine Learning, pp. 4596–4604. PMLR, 2018. +Daniel Soudry, Elad Hoffer, Mor Shpigel Nacson, Suriya Gunasekar, and Nathan Srebro. The im- +plicit bias of gradient descent on separable data. Journal of Machine Learning Research, 2018. +Lena Strobl, William Merrill, Gail Weiss, David Chiang, and Dana Angluin. Transformers as rec- +ognizers of formal languages: A survey on expressivity. arXiv preprint arXiv:2311.00208, 2023. +Jiankai Sun, Chuanyang Zheng, Enze Xie, Zhengying Liu, Ruihang Chu, Jianing Qiu, Jiaqi Xu, +Mingyu Ding, Hongyang Li, Mengzhe Geng, et al. A survey of reasoning with foundation models. +arXiv preprint arXiv:2312.11562, 2023. +Alon Talmor and Jonathan Berant. The web as a knowledge-base for answering complex questions. +In Proceedings of the 2018 Conference of the North American Chapter of the Association for +Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), 2018. +Yi Tay, Mostafa Dehghani, Vinh Q Tran, Xavier Garcia, Jason Wei, Xuezhi Wang, Hyung Won +Chung, Dara Bahri, Tal Schuster, Steven Zheng, et al. +Ul2: Unifying language learning +paradigms. In The Eleventh International Conference on Learning Representations, 2022. +Gemini Team, Rohan Anil, Sebastian Borgeaud, Yonghui Wu, Jean-Baptiste Alayrac, Jiahui Yu, +Radu Soricut, Johan Schalkwyk, Andrew M Dai, Anja Hauth, et al. Gemini: a family of highly +capable multimodal models. arXiv preprint arXiv:2312.11805, 2023. +Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yo- +gatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. Emergent abilities of large language +models. arXiv preprint arXiv:2206.07682, 2022a. +Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. +Chain of thought prompting elicits reasoning in large language models. +Advances in Neural +Information Processing Systems, 2022b. +Liu Yang, Kangwook Lee, Robert Nowak, and Dimitris Papailiopoulos. Looped transformers are +better at learning learning algorithms. arXiv preprint arXiv:2311.12424, 2023. +Tian Ye, Zicheng Xu, Yuanzhi Li, and Zeyuan Allen-Zhu. Physics of language models: Part 2.1, +grade-school math and the hidden reasoning process. arXiv preprint arXiv:2407.20311, 2024. +A +RELATED WORK +Reasoning is recognized as a core ability for intelligent and robustly model and has thus seen +significant focus over the last few years. The synthetic reasoning problems we consider in this +work have all been used in the prior works of Sanford et al. (2024b); Ye et al. (2024); Sanford +et al. (2024a); Nogueira et al. (2021) to theoretically analyze the strengths and limitations of +Transformers. There is also interest in the representation power of Transformers for computational +14 + +PAGE 15 +Published as a conference paper at ICLR 2025 +problems (Liu et al., 2022; Strobl et al., 2023) and for chain-of-thought reasoning (Merrill & +Sabharwal, 2023a; Feng et al., 2023; Li et al., 2024). The necessity of model depth for performance +has been remarked upon, for small models (Liu et al., 2024) and reasoning (Chen & Zou, 2024; Ye +et al., 2024; Petty et al., 2023). In this work, we make a finer observation that albeit larger depth is +necessary, this can be achieved with a limited parameter budget via looping. +Looping in transformer models has been studied since the works (Dehghani et al., 2018; Lan et al., +2020) where they showed the benefits of looping for supervised learning tasks and BERT pretrain- +ing respectively. Looping also appears in (Schwarzschild et al., 2021; Bansal et al., 2022) that +study the extrapolation properties of looping for certain algorithmic tasks. More recently Gian- +nou et al. (2023); de Luca & Fountoulakis (2024) have studied the theoretical properties of looped +decoder models and show that looping can simulate arbitrary Turing machines. In addition Yang +et al. (2023); Gao et al. (2024); Gatmiry et al. (2024a;b) study looped models as a way to sim- +ulate iterative algorithms for in-context learning. Recently, Mohtashami et al. (2023) introduced +CoTFormer, which tries to improve the perplexity of looped language models and (Liu et al., 2024) +explore latency-efficiency parameter sharing for on-device LLMs. In contrast, our work focuses on +the surprising inductive bias of looping to improve downstream reasoning tasks, and goes beyond +algorithmic and in-context learning tasks. +Different training algorithms (e.g. gradient descent (Soudry et al., 2018)) and architectural choices +(e.g. attention (Edelman et al., 2022)) have been shown to have certain implicit biases. There +is increasing interest in such inductive biases during pretraining (Saunshi et al., 2022; Liu et al., +2023). More recently, Saunshi et al. (2024) showed an inductive bias of stacking (Reddi et al., +2023) towards improving reasoning and hypothesize that a connection of stacking to looped models +could be responsible for this. Our results provide further verification for this hypothesis. +B +EXPERIMENTS +B.1 +SIMPLE REASONING SETUP DETAILS +n-ary addition. +All experiments are run on a standard Transformer architecture with input di- +mension of 256, 8 heads and 1024 hidden dimension in the feed-forward layers. We train using +Adafactor (Shazeer & Stern, 2018) employing a linear warmup coupled with a cosine decay sched- +ule for the learning rate. All runs use a batch size of 1024, learning rate of 0.005 and run for 200k +steps. This corresponds to 200M examples, which is insignificant compared to the total possible ex- +amples (> 10320). Thus memorization of the answer is not an issue. Since training is a bit noisy, for +each setting, we run 3 different random seeds and pick the run with the maximum average accuracy. +We pick maximum instead of average because we care about expressivity power of these models. +p-hop induction. +We formally define the p-hop problem below: +Definition B.1 (p-hop, Sanford et al. (2024b)). For a finite alphabet Σ, define the map hopp : Σn → +Σ ∪{⊥} as hopp(v) = vfindp(v,n) if findp(v, n)̸ = 0 else ⊥, where +find1(v, i) = max ({0} ∪{j ≤i, vj−1 = vi}) +findp(v, i) = find1(v, findp−1(v, i)) for p ≥2. +For the p-hop problem we sample instances randomly while enforcing that there always exists p- +hops present in the input sequence. We do this by first picking the sequence of p-hops randomly and +then shuffling them around in a sequence with filler tokens to be filled by the remaining characters. +After the shuffle, we sample the remaining characters to occur in place of the filler tokens while +respecting the p-hop order. Our train set consists of 4M examples and our test and validation sets +consist of 262k examples each. For all models we train on this dataset, the model dimension is 128, +hidden dimension is 512 and 8 attention heads are used. Rotary positional encodings are used as +well. We train using Adafactor for 200,000 steps with a batch size of 256 using a base learning rate +of 10−3 and use a linear warmup coupled with a cosine decay schedule for the learning rate. +15 + +PAGE 16 +Published as a conference paper at ICLR 2025 +(a) Attn:Q +(b) FFN:W1 +(c) Attn:PostNorm +Figure 3: Cosine similarities for different layers in the model trained with the regularization strength +λreg = 10 for block size k = 4 (see Section 4 for details). The 24 layer model will have 6 such +blocks of size 4. The heatmap above shows the cosine similarities between weights for all pairs +of blocks. Overall we find the final cosine similarity to be very high, thus suggesting a strong +connection to looped models. +(a) Attn:Q +(b) FFN:W1 +(c) Attn:PostNorm +Figure 4: Cosine similarities for different layers in the baseline model trained without any regular- +ization strength. Overall the cosine similarities are very low for large matrices, as expected for high +dimensions matrices. +16 + +PAGE 17 +Published as a conference paper at ICLR 2025 +Figure 5: Illustration of the simple and architecture agnostic looping mechanism that we consider. +A k-layer block looped L times (middle) is denoted by (k ⊗L), which can essentially be viewed +as a weighted shared model. The iso-param baseline, (k ⊗1), is a k-layer model with the same +number of distinct parameters. The iso-FLOP baseline, (kL ⊗1), is a kL-layer model with the +same depth but L times more parameters. Middle looping is a strategy that is inspired from prior +works on model stacking (e.g. (Saunshi et al., 2024)). +i-GSM. +We describe how the i-GSM dataset is generated in more detail here. We start with a +hierarchy of entities of depth 4 from which we build a randomly sampled structure graph where +directed edges connect entities in level i to those in level i + 1. Each edge in the structure graph +defines a instance parameter which is an integer (for e.g. an edge between city center and car parks +denotes the number of car parks in city center). We then construct a randomly sampled mathematical +dependency graph which is a DAG over all the instance parameters by relating each to the others. +Finally we pick one of the nodes of the dependency graph to query and the goal is to compute the +numerical value of this node modulo some prime number P. For more details on the sampling +process for the structure and dependency graphs, we refer the reader to Ye et al. (2024). We make +3 simplifications compared to Ye et al. (2024): we phrase our problems in a symbolic language +without the English construction of sentences (see Table 8); we do not allow abstract parameters in +our problems; we perform arithmetic modulo 7 as opposed to 23. Our train dataset consists of around +4 million examples and we test on around 50k examples. Given the significantly larger number of +unique solution templates possible, train-test overlap in the problem template space is going to be +limited with high probability. For all models we train on this dataset, the model dimension is 128, +hidden dimension is 512 and 8 attention heads are used. Rotary positional encodings are used as +well. We train using Adafactor for 200,000 steps with a batch size of 256 using a base learning rate +of 10−3 and use a linear warmup coupled with a cosine decay schedule for the learning rate. +B.2 +LANGUAGE MODELING SETUP +We train on the Pile data using causal language modeling objective. The dataset is pre-processed +and cached to ensure that all models are trained on exactly the same tokens in the same order. For +all experiments, we use a batch size of 512 and sequence length of 1280. We use a cosine learning +rate schedule decaying over 400k steps with a peak learning rate of 0.01, tuned based on the baseline +model. The base model is a 1.5B parameter decoder only Transformer model, with 24 layers, model +dimensions of 2048, hidden dimension 5120 and 32 heads. For the shallower baselines and looped +models, we only change the number of layers and keep all other hyperparameters the same. +B.3 +RESULTS FOR EACH TASK GROUP +In Section 3 we discussed results for various task groups like closed book QA, math word problems +etc. Here we present details on the task groups and results for each individual task for completeness. +• Closed book QA: This includes tasks like TriviaQA (Joshi et al., 2017), TydiQA-NoContext +(Clark et al., 2020), Natural Questions (Kwiatkowski et al., 2019) and Web Questions (Talmor +& Berant, 2018) that test the model’s ability to answer questions without any context, and thus, +primarily measure the memorization abilities of language models. +• Open book QA: This includes tasks like TydiQA-GoldP (Clark et al., 2020), SquadV2 (Ra- +jpurkar et al., 2018), Drop (Dua et al., 2019), QuAC (Choi et al., 2018), CoQA (Reddy et al., +17 + +PAGE 18 +Published as a conference paper at ICLR 2025 +Table 4: Downstream evaluations for the models in Table 2 for closed book QA tasks. +Params / FLOPs +TriviaQA +TydiQA- +Natural +Web +Average +NoContext +Questions +Questions +Average +Baseline +24x / 24x +24.5 +10.6 +4.3 +5.6 +11.2 +Base (12 ⊗1) +12x / 12x +15.9 +9.3 +2.4 +5.2 +8.2 +Loop (12 ⊗2) +12x / 24x +18.6 +9.6 +3.4 +5.8 +9.3 +Regularized (k = 12) +24x / 24x +20.9 +10.9 +3.6 +5.0 +10.1 +Base (8 ⊗1) +8x / 8x +12.3 +7.4 +1.8 +3.9 +6.3 +Loop (8 ⊗3) +8x / 24x +17.3 +8.8 +2.5 +5.2 +8.5 +Regularized (k = 8) +24x / 24x +23.6 +10.6 +4.1 +6.7 +11.3 +Base (6 ⊗1) +6x / 6x +7.4 +4.8 +1.1 +2.7 +4.0 +Loop (6 ⊗4) +6x / 24x +16.0 +9.3 +2.7 +4.9 +8.2 +Regularized (k = 6) +24x / 24x +25.8 +12.2 +4.5 +5.6 +12.0 +Base (4 ⊗1) +4x / 4x +3.3 +1.9 +0.6 +1.5 +1.8 +Loop (4 ⊗6) +4x / 24x +11.8 +8.8 +2.4 +3.5 +6.7 +Regularized (k = 4) +24x / 24x +26.1 +13.3 +4.5 +6.2 +12.5 +Table 5: Downstream evaluations for the models in Table 2 for open book QA tasks. +Params / FLOPs +TydiQA-NoContext +SquadV2 +DROP +QuAC +CoQA +Average +Baseline +24x / 24x +33.4 +41.3 +23.4 +18.6 +52.7 +33.9 +Base (12 ⊗1) +12x / 12x +21.8 +34.6 +20.0 +17.3 +41.1 +26.9 +Loop (12 ⊗2) +12x / 24x +27.7 +39.5 +22.3 +17.6 +46.8 +30.8 +Regularized (k = 12) +24x / 24x +33.0 +44.3 +23.8 +17.7 +51.9 +34.1 +Base (8 ⊗1) +8x / 8x +12.7 +33.8 +16.0 +15.3 +35.9 +22.7 +Loop (8 ⊗3) +8x / 24x +29.8 +38.1 +21.6 +17.6 +46.6 +30.8 +Regularized (k = 8) +24x / 24x +33.0 +41.7 +25.2 +19.3 +52.9 +34.4 +Base (6 ⊗1) +6x / 6x +8.2 +26.8 +14.8 +14.4 +32.5 +19.3 +Loop (6 ⊗4) +6x / 24x +26.6 +34.6 +20.8 +18.1 +43.7 +28.7 +Regularized (k = 6) +24x / 24x +34.5 +46.1 +26.2 +18.6 +53.4 +35.8 +Base (4 ⊗1) +4x / 4x +3.4 +19.0 +11.1 +13.1 +22.3 +13.8 +Loop (4 ⊗6) +4x / 24x +22.0 +32.4 +20.1 +15.8 +40.7 +26.2 +Regularized (k = 4) +24x / 24x +33.6 +49.4 +24.1 +19.8 +54.0 +36.2 +2019) that evaluate the model’s ability to infer the answer to a question from the extra context +that is provided, akin to reading comprehension. +• Math word problems: To evaluate the model’s ability to reason, we test them on math word +problems considered in (Wei et al., 2022b). This includes tasks like SVAMP (Patel et al., 2021), +ASDiv (Miao et al., 2020), the MAWPS benchmark (Koncel-Kedziorski et al., 2016). We report +5-shot evaluation for the pretrained model on these tasks. +• Reasoning primitives: Saunshi et al. (2024) introduced these datasets to study the inductive +bias of stacking towards improving reasoning, by isolating simple reasoning abilities. One +such primitive is depth-k variable assignment that requires the model to resolve a chain of +assignments of length k. An example of depth-0 var-assign is a=1, b=2, c=6, b=?, and example +for depth-1 var-assign is a=1, b=2, c=a, d=b, d=?. We evaluate on the math and coding variants +of the depth-0 and depth-1 problems using 5-shot evaluation. +Detailed results for closed book QA are in Table 4, open book QA in Table 5, math word problems in +Table 6 and reasoning primitives in Table 7. These tables include, both, looped models from Table 2 +and the models trained with regularization from Table 3. +B.4 +MIDDLE LOOPING VARIANT AND RELATIONSHIP WITH GRADUAL STACKING +Recently Saunshi et al. (2024) introduced a gradual stacking (Gong et al., 2019; Reddi et al., 2023) +approach for training language models called MidAS. This approach gradually grows the model +depth as training proceeds by duplicating certain layers of the model in each stacking operation. +Surprisingly, they found that MidAS not only speeds up pretraining, but also improves reasoning +in the same sense as Figure 1 – better reasoning at the same perplexity. Furthermore, the paper +established a strong connection between stacking via MidAS and looped models, owing to the +layer duplication operation, and conjectured that this is the reason for such an inductive bias. Our +results from the previous section provides a compelling evidence for this conjecture by showing that +looped models also show a very similar inductive bias, thus, further strengthening the connection +18 + +PAGE 19 +Published as a conference paper at ICLR 2025 +Table 6: Downstream evaluations for the models in Table 2 for math word problems. +Params / FLOPs +ASDiv +MAWPS- +MAWPS- +MAWPS- +MAWPS- +SVAMP +Average +AddSub +MultiArith +SingleEq +SingleOp +Baseline +24x / 24x +26.9 +49.9 +2.7 +38.6 +40.2 +17.9 +29.3 +Base (12 ⊗1) +12x / 12x +23.1 +44.8 +2.0 +36.8 +37.9 +15.3 +26.7 +Loop (12 ⊗2) +12x / 24x +31.5 +55.9 +2.0 +47.4 +50.2 +18.5 +34.3 +Regularized (k = 12) +24x / 24x +27.4 +54.4 +2.7 +43.7 +45.9 +19.8 +32.3 +Base (8 ⊗1) +8x / 8x +12.9 +32.7 +2.0 +19.9 +21.9 +13.4 +17.1 +Loop (8 ⊗3) +8x / 24x +23.2 +54.9 +2.3 +36.2 +38.3 +15.6 +28.4 +Regularized (k = 8) +24x / 24x +31.0 +56.7 +3.5 +40.7 +47.5 +17.3 +32.8 +Base (6 ⊗1) +6x / 6x +15.4 +31.1 +1.3 +21.3 +26.3 +10.9 +17.7 +Loop (6 ⊗4) +6x / 24x +24.5 +51.6 +0.7 +38.0 +47.7 +16.3 +29.8 +Regularized (k = 6) +24x / 24x +32.0 +47.1 +3.5 +44.9 +42.0 +16.8 +31.0 +Base (4 ⊗1) +4x / 4x +7.9 +10.4 +1.5 +11.0 +19.0 +8.3 +9.7 +Loop (4 ⊗6) +4x / 24x +19.9 +49.1 +1.7 +29.3 +35.9 +12.6 +24.8 +Regularized (k = 4) +24x / 24x +35.0 +53.9 +3.2 +52.2 +50.9 +23.0 +36.4 +Table 7: Downstream evaluations for the models in Table 2 for reasoning primitives. +Params / FLOPs +Code +Math +Code +Math +Average +Depth-0 +Depth-0 +Depth-1 +Depth-1 +Baseline +24x / 24x +71.1 +72.5 +24.2 +22.3 +47.5 +Base (12 ⊗1) +12x / 12x +52.2 +51.6 +20.7 +18.3 +35.7 +Loop (12 ⊗2) +12x / 24x +73.5 +86.5 +21.3 +23.6 +51.2 +Regularized (k = 12) +24x / 24x +75.1 +74.9 +27.0 +25.7 +50.7 +Base (8 ⊗1) +8x / 8x +48.7 +42.0 +21.4 +19.8 +33.0 +Loop (8 ⊗3) +8x / 24x +88.4 +86.9 +23.1 +22.9 +55.3 +Regularized (k = 8) +24x / 24x +92.2 +86.7 +23.1 +23.3 +56.3 +Base (6 ⊗1) +6x / 6x +26.3 +29.7 +20.2 +20.1 +24.1 +Loop (6 ⊗4) +6x / 24x +90.6 +88.1 +24.1 +21.7 +56.1 +Regularized (k = 6) +24x / 24x +84.0 +79.7 +31.4 +28.3 +55.8 +Base (4 ⊗1) +4x / 4x +19.3 +23.3 +17.3 +17.6 +19.4 +Loop (4 ⊗6) +4x / 24x +87.9 +90.0 +24.8 +24.8 +56.9 +Regularized (k = 4) +24x / 24x +88.0 +86.9 +27.9 +25.8 +57.2 +between stacking and looped models. Why such an inductive bias occurs is still an open question, +and we believe that understanding this is an important future direction. +Furthermore, inspired by their findings, we explore middle looping (see Figure 5 for an illustration) +— a variant of looping which maintains independent layers at the start and the end of the network, +and perform looping on the middle block of layers. The high-level intuition from Saunshi et al. +(2024) is that the first and last layers play a special role in the model and thus, should be treated +differently from the middle layers. In Table 2, we report results for a version of middle looping that +is iso-param with a (12 ⊗1) baseline and iso-flop with a (24 ⊗1) baseline, just like the (12 ⊗2) +model. Overall, we find that middle looping has better perplexity and more uniform improvements +than the default looping of (12 ⊗2) (except for math word problems), and thus, might be a more +practical looping approach. We leave the exploration of the best looping strategies for future work. +C +THEORETICAL RESULTS +C.1 +DETAILED NOTATIONS +Definition C.1 (Embedding Layer). Given a finite vocabulary V, embedding dimension d ∈N+, +token embedding parameter θTE ∈Rd×|V| and position embedding parameter θPE ∈Rd×nmax, we +define the embedding layer as a sequence-to-sequence map, denoted by EMBEDθTE,θPE : Vn → +(Rd)n for any 1 ≤n ≤nmax, where +EMBEDθTE,θPE(v1, . . . , vn) = (θTE(v1) + θPE(1), . . . , θTE(vn) + θPE(n)) . +(7) +Multi-Head +Self-Attention +Mechanism: +Given +attention +parameters +θATTN += +{WQ, WK, WV , WO}, where each W m +Q , W m +K , W m +V , W m +O +∈ +RdATTN×d, we define the Self- +Attention layer with a causal mask for a decoder-only transformer in Algorithm 1. +We also +19 + +PAGE 20 +Published as a conference paper at ICLR 2025 +Table 8: Left. Symbolic i-GSM problem and its solution. Right. Accuracy of looped and non- +looped models on the i-GSM task from Section 2. (k ⊗L) looped model is significantly better than +the iso-param (k ⊗1) model and performs as well as non-looped iso-flop (kL ⊗1) model. +Question. +E#I := 4. E#J := E#I. K#N := I#N + J#O + F#K. F#K +:= E#J. J#O := F#K + K#O + E#J. H#J := E#J + F#K. I#P := L#M ++ I#N + K#O. I#M := J#O + J#P + F#K. J#P := H#J - F#K. L#M := +I#N + J#P + F#K. I#N := 2 * J#P + H#J + E#I. K#O := J#P + I#N + +E#J. I#P? +Answer with CoT. +E#I = 4. =⇒E#I = 4. E#J = E#I. =⇒E#J += 4. F#K = E#J. =⇒F#K = 4. H#J = E#J+F#K. =⇒H#J = 1. +J#P = H#J-F#K. =⇒J#P = 4. I#N = 2J#P+2H#J+2E#I. =⇒I#N += 4. L#M = I#N+J#P+F#K. =⇒L#M = 5. K#O = J#P+I#N+E#J. +=⇒K#O = 5. I#P = L#M+I#N+K#O. =⇒I#P = 0. +Params / FLOPs +Accuracy +Base (8 ⊗1) +8x / 8x +73.2 +1 layer model +Base (1 ⊗1) +1x / 1x +24.5 +Loop (1 ⊗2) +1x / 2x +52.3 +Loop (1 ⊗4) +1x / 4x +69.9 +Loop (1 ⊗8) +1x / 8x +73.2 +2 layer model +Base (2 ⊗1) +2x / 2x +54.0 +Loop (2 ⊗2) +2x / 4x +66.9 +Loop (2 ⊗4) +2x / 8x +73.6 +4 layer model +Base (4 ⊗1) +4x / 4x +71.3 +Loop (4 ⊗2) +4x / 8x +71.6 +define a Multi-Head Attention layer as a collection of self-attention layer with non-shared pa- +rameters θMHA = {θ(h) +ATTN}H +h=1, and its output is the sum of the outputs from each head. That is, +MHAθMHA = PH +h=1 ATTNθ(h) +ATTN.2 +Algorithm 1 Causal Self-Attention, ATTN +Input: Parameter θATTN = (WQ, WK, WV , WO), Input embedding x1, . . . , xn) ∈ +Rdn. +Output: Output embedding x′ = (x′ +1, . . . , x′ +n) ≜ATTNθATTN(x1, . . . , xn). +1: qi ≜WQxi, ki ≜WKxi, vi ≜WV xi, ∀i ∈[n] +2: si ≜softmax(⟨qi, k1⟩, . . . , ⟨qi, ki⟩)∥(0, . . . , 0). +3: h′ +i ≜W ⊤ +O +Pn +j=1(si)jvj. +Feed-Forward Network: +Given the parameters of the fully-connected feedforward network layer +θFF = (W1, b1, W2, b2) ∈RxFF×d × RdFF × Rd×dFF × RdFF, we define the feedforward layer FFθFF : +Rd →Rd as FFθFF(h) ≜W2, relu(W1h + b1) + b2. +Definition C.2 (Output Layer). Given parameter θOUTPUT ∈Rd×|V|, we denote the output layer as +OUTPUTθOUTPUT : (Rd)n →∆|V|−1, where +OUTPUTθOUTPUT(x1, . . . , xn) ≜softmax(x⊤ +n θOUTPUT) +(8) +Finally, we define the entire transformer model pθ : ∪n≤nmaxVn →∆|V|−1 as +pθ ≜OUTPUTθOUTPUT ◦TBθTB ◦EMBEDθTE,θPE +(9) +for any θ = (θTB, θTE, θPE, θOUTPUT).For convenience, we also write [pθ(v1, . . . , vn)] (v) as pθ(v | +v1, . . . , vn). In particular, we use TFθ(v1, . . . , vn) ≜arg maxv∈V pθ(v|v1, . . . , vn) to denote the +deterministic version of the transformer model. +Finite-precision Modeling: +In this paper we assume the transformer is of finite precision. More +specifically, we follow the setting in Li et al. (2024) and use the shorthand Fs ≜{c · k · 2−s | +c ∈{−1, 1}, 0 ≤k ≤22s −1, k ∈N} to denote fixed-point numbers of constant precision s and +rounding operation [·]s : R →Fs to denote the correcting rounding, namely the mapping from R +to the closest representable number in Fs. (We break the tie by picking the number with smaller +absolute value). We assume that (1). all the parameters of the transformer are in Fs and (2). correct +rounding is performed after every binary operation in the forward pass of the transformer. We will +refer the readers to Li et al. (2024) for detailed discussion on such finite-precision modeling and +only list important notations and lemmas that will be used in this paper below. +2Though in this paper we focus on attention with casual mask, our definition of looped transformer gener- +alizes to the cases with other attention masks. +20 + +PAGE 21 +Published as a conference paper at ICLR 2025 +Figure 6: Downstream evaluation for various task groups on the x-axis, vs validation log perplexity +on the y-axis (reversed), as training proceeds. The top plots compare a 12-layer baseline model +(12 ⊗1) and the looped model (12 ⊗2). The second row compares the baseline 24-layer model +and the 24-layer model trained with regularization using block size k = 4 and λreg = 10 (See Equa- +tion (4)). For both comparisons we have similar observations. For closed book QA (memorization) +tasks looping has very similar trends to baseline. For open book QA tasks and math word problems, +looping has much better downstream performance at an equivalent log perplexity. This verifies the +inductive bias of looping and regularization towards better reasoning abilities. +We use 1s to denote all-one vectors of length s. Similarly we define ⟨·, ·⟩s, ×s, and softmaxs. We +recall that for any s ∈N+ and integer 0 ≤x ≤2s −1, we use bins(x) ∈{0, 1}s to denote the +usual binary encoding of integer x using s binary bits in the sense that x = Ps +i=1 2i(bins(x))i and +sbins(x) ∈{−1, 1}s to denote the signed binary encoding, which is 2bins(x) −(1, . . . , 1). Finally +we define Bs = max Fs = 2s −2−s. +Lemma C.1. [Lemma E.1, (Li et al., 2024)] For any s ∈N+, it holds that [exp(−Bs)]s = 0. +Lemma C.2. [Lemma E.2, (Li et al., 2024)] For any s ∈N+, it holds that [exp(Bs)]s = Bs. +Lemma C.3. [Lemma E.5, (Li et al., 2024)] Unlimited-fanin AND, OR (resp. MAJORITY) : +{0, 1}n →{0, 1} can be simulated by some 2-layer feedforward ReLU network with constant (resp. +log n) bits of precision constant hidden dimension and additional n constant inputs of value 1. +Mathematically, let FF[s(n)] be the set of functions C : {0, 1}n →{0, 1} which can be a two- +layer feedforward ReLU network with at most s(n) bits of precision and constant hidden dimension +FFθ : {0, 1}2n →{0, 1}, FFθ(x′) = W2 ×s relu([W1 ×s x′ + b1]s), where θ = (W2, W1, b1), such +that for any x ∈{0, 1}n, +FFθ(x1, 1, x2, 1, . . . , xn, 1) = C(x). +(10) +We have unlimited-fanin AND, OR ∈FF[1] and MAJORITY ∈FF[log n]. +Given two vectors x, y of the same length s, we use x⌢y to denote their interleaving, that is, +(x⌢y)2i−1 = xi, (x⌢y)2i = yi for all i ∈[e]. +Lemma C.4. [Lemma E.3, (Li et al., 2024)] For any s ∈N+, let qi = sbins(i)⌢1s and ki = Bs · +(sbins(i)⌢(−1s)) for all i ∈[2s−1], it holds that + +exp(⟨qi, kj⟩s) + +s = 1 [i = j] for all i, j ∈[2s−1]. +21 + +PAGE 22 +Published as a conference paper at ICLR 2025 +Figure 7: Scaling behavior for various task group as the effective depth increases. The blue curve +shows how performance scales as the number of loops increases, without increasing parameters, us- +ing models of the form (4⊗D/4) for various values of D. The orange curve visualizes the scaling be- +havior of (D⊗1) which increases the depth by adding fresh parameters. For reasoning primitives, the +looped model scales as well, or even better, than the baseline despite having D/4 fewer parameters. +C.2 +PROOFS +C.2.1 +LOOPED MODELS CAN SIMULATE NON-LOOPED MODELS +Proof of Theorem 5.2. We start by introduce some more notations. We will proof the theorem for +any fixed sequence of v = (v1, . . . , vn). We use x(l) = (x(l) +i )n +i=1 to denote the intermediate +embedding of pθ in the lth layer. More specifically, we define +xl = (id + FFθ(l−1) +FF +) ◦(id + MHAθ(l−1) +MHA ) ◦· · · (id + FFθ(0) +FF ) ◦(id + MHAθ(0) +MHA) ◦EMBEDθEMBED(v). +(11) +We also use x(l+0.5) = (x(l+0.5) +i +)n +i=1 to denote the intermediate embedding of pθ in the lth layer +after the attention layer. +xl+0.5 = (id + MHAθ(l−1) +MHA )(xl). +(12) +Similarly, for the constructed looped transformer pθ,T , we use v′ = (#, v1, . . . , vn) to denote +its input. For simplicity, we use the convention that # is at position 0. The proof still works +if # starts at position 1 because we can just transfer the later tokens by 1 position. We define +x′(l) = (x′(l) +0 , x′(l) +1 , . . . , x′(l) +n ) as the intermediate embedding of pθ in the lth layer and x′(l+0.5) = +(x′(l+0.5) +0 +, x′(l+0.5) +1 +, . . . , x′(l+0.5) +n +) as the intermediate embedding of pθ in the lth layer. +Below we first state the key properties that our construction will satisfy, which imply the correctness +of the theorem and then we state our construction of pθ′,T and show the properties are actually +satisfied: +• x′(l) +i += (x(l) +i , 1R −er(l), l, 1 [i = 0]). +• x′(l+0.5) +i += (x(l+0.5) +i +, 1R −er(l), l, 1 [i = 0]). +• x(l) +0 += x(l+0.5) +0 += 0.3 +3Here we abuse the notation for simplicity of presentation. x(l) +0 += x(l+0.5) +0 +are not defined in the original +non-looped transformer. The key point here is that they are 0 vectors throughout the forward pass. +22 + +PAGE 23 +Published as a conference paper at ICLR 2025 +Algorithm 2 Group Composition +Input: Group elements g0, g1, . . . , gn ∈G, where g0 = e. +Output: g0 ◦g1 ◦. . . gn. +1: g(0) +i += gi, ∀0 ≤i ≤n. +2: for l = 1 →⌈log2 n⌉do +3: +a(l) +i += g(l−1) +[2i−n−1]+, b(l) +i += g(l−1) +[2i−n]+ ∀0 ≤i ≤n. +4: +g(l) +i += a(l) +i +◦b(l) +i , ∀0 ≤i ≤n. +5: end for +6: return g(⌈log2 n⌉) +n +. +To get the last coordinate l, which is a depth counter, we just need to add 1 more hidden dimension +in MLP. +Next we show we can use two-layer with L + 2 MLP to get the mapping from ℓ7→1R −er(l). Let +(θ(i) +FF, θ(i) +MHA)R +i=1 be the parameters of the R distinct layers in θ. We assume in the lth layer, r(l)’s +parameters are used. This is because er(l) = PL +i=1 er(i)0.5∗([l −i+1]+ −2[l −i]+ +[l −i−1]+). +Now we explain how to deactivate the undesired MLP neurons. In other words, our construction of +θ′ +FF is essentially concatenation of θ(i) +FF for i ∈[r] in the hidden dimension of FF, with the additional +control that FFθ′ +FF((x(l) +i , 1R −er(l), l), 1 [i = 0]) = PR +i=1 FFθ(i) +FF (x(l) +i )1 [r(l) = i, i̸ = 0] at lth layer. +This control can be done by subtracting 1 −er(l) + 1 [i = 0] by a constant which is larger than the +maximum pre-activation in the hidden layer. +Finally we explain how to deactivate the undesired attention. We will only use attention to update the +first part of the embedding, which is x(l+0.5) +i +. A crucial step here is that we set the token embedding +of # as 0 We construct keys and queries as follows: +1. W ′(r′) +Q (x′(l) +i +) = (W (r′) +Q +x(l) +i , 1 −1 [r′ = r(l)] for r′ ∈[R] and i = 0, . . . , n +2. W ′(r′) +K (x′(l) +i +) += +(W (r′) +K +x(l) +i , −B1 [i = 0]) for r′ +∈ +[R] and i += +0, . . . , n, where +B +is some constant larger than the maximum previous inner product in attention, +maxl∈[L],i,j +D +(WKx(l) +i , (WQx(l) +i +E +. +3. W ′(r′) +O W ′(r′) +V +(x′(l) +i +) = (W (r′) +O +W (r′) +V +x(l) +i , 0, 0, 0). +This construction works because only the ‘desired’ attention head r = r(l) will be activated and +behave as in the non-looped case, because otherwise all position in that attention head will be com- +pletely attended to position 0 and returns a zero vector. (We can choose B to be large enough and +distribution calculated by the attention score is delta distribution) at position 0, which yields a zero +vector as its value. This completes the proof. +C.2.2 +GROUP COMPOSITION. +The landmark result in automata theory, Krohn-Rhodes Decompotision Theorem (Krohn & Rhodes, +1965), shows that all semi-automaton with solvable transformation group (which includes compo- +sition problem of solvable groups) can be simulated by a cascade of permutation-reset automata, +which can be simulated by TC0 circuits. (Liu et al., 2022) further showed that such automaton +with solvable transformation group can be continuously simulated by constant-depth transformers. +However, it is also shown (Barrington, 1986) that the composition problem of unsolvable groups are +NC1-complete, for example, the composition of permutation group over 5 elements, S5. Under the +common hardness assumption that NC1̸ = TC0), constant depth transformer cannot solve composi- +tion of S5 using a single forward pass (Merrill & Sabharwal, 2023b; Liu et al., 2022; Li et al., 2024). +But with CoT, very shallow transformers (depth equal to one or two) can simulate the composition +problem of any group(Li et al., 2024; Merrill & Sabharwal, 2023a). +23 + +PAGE 24 +Published as a conference paper at ICLR 2025 +Proof of Theorem 5.1. We will set the token embedding of # the same as that of e, which is the +identity of G. In the following proof, we will just treat # as e. We will construct the transformer +simulating group composition following the following algorithm Algorithm 2, which gives the high- +level idea of the construction. The correctness of Algorithm 2 follows from the associativity of group +composition. More concretely, we can verify by induction that gl +0 ◦gl +1 ◦. . . gl +n is the same for all +l = 0, . . . , ⌈log2 n⌉and in the final round, i.e., when l = ⌈log2 n⌉, g(l) +i += e for all i < n. +Below we show how to construct a transformer of the given sizes to simulate the above Al- +gorithm 2. +We will embed each g +∈G as a different vector g +∈{−1, 1}⌈log2 |G|⌉and +each position 0 ≤i ≤n as its binary representation in i ∈{−1, 1}⌈log2 n+1⌉, which is +a shorthand for sbins(i) with s = ⌈log2 n + 1⌉. +We concatenate them to get {x(0) +i }n +i=0, +that is, x(0) +i += (gi, i, [2i −n −1]+, [2i −n −1]+, 0⌈log2 |G|⌉, 0⌈log2 |G|⌉). For convenience, we +will drop the 0’s in the end (also in the other proofs of the paper) and write it as x(0) +i += +(gi, i, [2i −n −1]+, [2i −n −1]+). Below we show we can construct 1-layer transformer block +with parameter (θMHA, θFF) satisfying that +1. +h +MHAθMHA + +(gi, i, [2i −n −1]+, [2i −n −1]+)n +i=0 +i +k = (0⌈log2 |G|⌉+3⌈log2 n+1⌉, g[2k−n−1]+, g[2k−n]+) +for all g0 = e, gi ∈G∀i ∈[n], k = 0, . . . , n; +2. FFθFF(g, i, j, k, g′, g′′) = (g′ ◦g′′ −g, 03⌈log2 n+1⌉, −g′, −g′′), for all i, j, k += 0, . . . , n, +g, g′, g′′ ∈G. +The first claim is because we can use two attention heads to retrieve g[2k−n−1]+ and g[2k−n]+ re- +spectively, where both of them use k as the key and use −[2k −n −1]+ and −[2k −n]+ as queries +respectively. This is possible because all the required information are already in xi. We further make +attention temperature low enough so the probability returned by attention is a one-hot distribution at +the position whose key is equal to the negative query after rounding. +Now we turn to the second claim about MLP. We will use |G|2 neurons with ReLU activation and +bias to simulate the product of g′ and g′′. We can index each neuron by (h, h′) for h, h′ ∈G and set +its incoming weight [W1](h,h′),: = (h, h′) and set bias (b1)(h,h′) = −2⌈log2 |G|⌉+1, which ensures +that the activation of neuron (h, h′) will only be 1 when g′ = h, g′′ = h′ and be 0 otherwise. Then +setting the outgoing weight of neuron (h, h′) as h ◦h′ and the bias in the second layer to be 0 finishes +the construction for simulating the group composition. Finally we use the remaining 6⌈log2 |G|⌉to +simulate negative identity mapping x →−x for the remaining 3⌈log2 |G|⌉embedding dimension. +This completes the proof. +C.3 +CONNECTION TO CHAIN-OF-THOUGHT REASONING +In this section, we establish a connection betwee looped models and CoT reasoning. We first define +the recursion for CoT reasoning as follows: +TFi +θ(v1, . . . , vn) ≜TFi−1 +θ +(v1, . . . , vn, TFθ(v1, . . . , vn)), +for i, n ∈N+ satisfying i + n ≤nmax −1 along with the base case of TF1 +θ(v1, . . . , vn) ≜ +TFθ(v1, . . . , vn). For all 0 ≤i ≤nmax −n −1, the output with i steps of CoT is vn+i+1 = +TFi+1 +θ +(v1, . . . , vn) = TFθ(v1, . . . , vn, vn+1, . . . , vn+i). +We first give the formal statement below. +Theorem C.5 (Looped transformer simulates CoT). For any L-layer non-looped transformer TFθ, +there exists a looped transformer TFθ′ with L + O(1) layers, constantly many more dimensions +in embedding, MLP and attention layers and constantly many more attention heads, such that for +any input v = (vi)n +i=1 and integer m, the output of non-looped transformer after m steps of CoT, +TFm +θ (v), is the same as that of the looped transformer on input x concatenated by m dummy tokens +with m loops, TFθ′,m(v, #m). +Below are some helping lemmas towards showing Theorem C.5 is at least as powerful as CoT. +24 + +PAGE 25 +Published as a conference paper at ICLR 2025 +Figure 8: Left. Chain-of-thought reasoning can be viewed as a looped model, where each iteration +produces one new thoughts token. The new tokens are highlighted in red. Right. A looped model +can instead generate multiple latent thoughts in parallel and, in theory, can simulate CoT reasoning +my masking the updates appropriately (see Theorem 5.4) +Lemma C.6 (Simulating arg max using MLP). For every d ∈N and precision s ∈N+, there exists +a 3-layer network with relu activation and d2 width f with s precision, such that for any x ∈Fd +s, if +there is k ∈[d], such that xk > maxj̸=k,j∈[d] xj, f(x) = ek. +Proof of Lemma C.6. Define gi = 2s · relu(2−s −P +j̸=i relu(xj −xi)) for each i ∈[n]. We claim +that if there is k ∈[d], such that xk −maxj̸=k,j∈[d] xj ≥2−s, gi = 1 iff i = k for all i ∈[d]. +First gk = 2s · relu(2−s) = 1. Next for i̸ = k, it clearly holds that P +j̸=i relu(xj −xi) ≥2−s +and thus gi ≤0. This construction can clearly be implemented by a 3-layer relu network with s +precision. +Lemma C.7 (Simulating Decoding and Embedding using MLP). Given any s-precision θTE ∈ +Rd×Σ and θOUTPUT, there is a 5-layer network f : Rd →Rd with relu activation and max(|Σ|2) +width with s-precision, such that for all s-precision x ∈Rd which admits unique arg max for +v ≜arg maxo∈Σ(x⊤θOUTPUT)(o), it holds that +f(x) = θTE(v). +Proof of Lemma C.7. This is a simple application of Lemma C.6. +Lemma C.8 (Control Gate). A 2-layer relu network with precision s can implement F : Fs × Fs × +{0, 1}, F(x, y, M) = Mx + (1 −M)y. +Proof of Lemma C.8. Note that F(x, y, M) = relu(x −2s · (1 −M)) −relu(−x −2s · (1 −M)) + +relu(y −2s · M) −relu(−y −2s · M). The proof is completed. +Definition C.3 (Transformer Block with Mask). Given number of layers L ∈N+, parameter θTB = +(θ(l) +MHA, θ(l) +FF)L−1 +l=0 , and mask function M : N →{0, 1}, we define the L-layer transformer block with +maskTBθTB,M : (Rd)n →(Rd)n for any n ∈N+ as +[TBθTB,M(x)]i ≜(1 −M(i))xi + M(i)[TBθTB(x)]i +(13) +Definition C.4 (Looped Transformer with Mask). Given number of loops T +∈ +N+, pa- +rameters θ += +(θTB, θTE, θPE, θOUTPUT), +and mask functions {M t}T +t=1, +where θTF += +(θ(l) +MHA, θ(l) +FF)L−1 +l=0 , we define the looped transformer with mask as pθ,T,M ≜OUTPUTθOUTPUT ◦ +TBθTB,M T ◦· · · TBθTB,M 1 ◦EMBEDθTE,θPE and the corresponding deterministic version as +TFθ,T,M(v1, . . . , vn) ≜arg maxv∈V pθ,T,M(v|v1, . . . , vn). +25 + +PAGE 26 +Published as a conference paper at ICLR 2025 +Definition C.5 (Shifting Layer). We define the shifting layer SHIFT : (Rd)n →(Rd)n as the +following for any d, n ∈N+ and x1, . . . , xn ∈Rd: +SHIFT(x1, x2, x3, . . . , xn) = (x1, x1, x2, x3, . . . , xn−1). +(14) +Lemma C.9. For input sequence length up to some integer n, SHIFT could be implemented by +a attention layer by concatenating each embedding xi with (sbins(i), sbins(f(i))), where n = +⌈log2 n + 1⌉. +Proof of Lemma C.9. It is equivalent to show we can construct an attention heads which computes +xf(i) at each position i. +To do so, we just need to invoke Lemma C.6 and use that to set key and query, so position i attends +to position f(i). We set value at position i to be xi. This completes the proof. +Lemma C.10. For any positive integer s > 0, there is a constant-depth MLP F with O(s) hidden +neurons per layer and parameters in Fs, such that for any input bin(x) ∈{−1, +1}s, where 0 ≤ +x ≤2s −1, it holds that +F(x) = bin(x + 1). +Proof of Lemma C.10. By Lemma C.3, it suffices to show that we can simulate bin(x) 7→bin(x)+1 +using O(s) wide, constant-depth boolean circuits with AND, OR, NOT gates with unlimited fan-ins. +This is immediate by noting that +[bin(x + 1)]i = [bin(x + 1)]i ⊕ +i−1 +^ +j=1 +[bin(x + 1)]j +(15) +Lemma C.11. For any positive integer s > 0, there is a constant-depth MLP F with O(s) hidden +neurons per layer and parameters in Fs, such that for any input (bin(x), bin(y)) ∈{−1, +1}s, where +0 ≤x, y ≤2s −1, it holds that +F(x, y) = 1 [x > y] . +Proof of Lemma C.11. By Lemma C.3, it suffices to show that we can simulate bin(x), bin(y) 7→ +1 [x > y] using O(s) wide, constant-depth boolean circuits with AND, OR, NOT gates with unlim- +ited fan-ins. This is immediate by noting that +1 [x > y] = +_ +i∈[s] + +([bin(x)]i = 1) ∧([bin(y)]i = 0) ∧ +^ +1≤j