Add controlled two-layer LiSA reproduction on Qwen

This commit is contained in:
2026-11-24 00:00:42 +08:00
parent 115e440455
commit 1c8943a2e8
21 changed files with 4444 additions and 7 deletions
@@ -0,0 +1,10 @@
{
"task": "lookup16",
"source": "frozen Qwen3.5-2B hidden states at the answer position from native forward",
"metric": "4-option accuracy and mean NLL over four option logits",
"frozen_native_reference": {
"fit": {"samples": 12, "native_correct": 12, "choice_nll": 0.13035377124382475},
"validation": {"samples": 12, "native_correct": 12, "choice_nll": 0.13171539331834095}
},
"test_predictions_opened": false
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,12 @@
{
"date": "2026-11-23",
"task": "lookup16",
"item": "fit-lookup16-000",
"recipient_layers": [19, 23],
"sample_tokens_including_answer": 158,
"native_hidden_max_abs_error_against_streaming_reference": 0.000020503997802734375,
"skipped_dense_qk_max_abs_difference": 0.0,
"finite_nonzero_huber_gradients_for_all_adapter_parameters": true,
"peak_rss_kib": 555036,
"scope": "One real Qwen3.5-2B fit sample, synthetic task; the backward path used attention distillation only."
}
@@ -0,0 +1,40 @@
{
"runtime": "3.14.4",
"platform": "Linux",
"machine": "x86_64",
"logical_cpus": 2,
"cpu": "Intel(R) Xeon(R) Platinum",
"numpy": "2.5.4",
"torch": "2.15.0+cpu",
"tokenizers": "0.23.3",
"main_code_sha256": {
"lisa_effect.py": "8a3ecad71f23e3e8b8faf4a7c21c0c93f00fd0bffe14bdee6117921b548dce8a",
"lisa_tail.py": "4bd2c3c8690a8ae30cc1a9573ec17b7bbe25edf43a33507482719dc03cfeb9af",
"lisa_train.py": "d9b96258111e13a3c72483c954714b9ee56e1f308ec4371bafe47026246051a5",
"lisa_decode.py": "9c723fa245ee4dd8f4d0f9a0d7a3d15e3db3ae40db3fa82ea413ecd24fe20f06",
"lisa_decode_bench.py": "979e566a3391b9418b49beb10c200a48aac706ee95c145510850c929bcc2885a",
"lisa_effect_screen.py": "8aaf515d888f921e60082b69d898cb5037a160c5d09a584db2599f197c4aa74b"
},
"audit_code_sha256": {
"lisa_effect_audit.py": "75c3445d96521daa2832ee96eb128383fc81f6914d491c2804a9337d1d6af35b",
"lisa_effect_answer_audit.py": "e1d70b10863dab1e13dfa9573c0d87fc6ca017039c3cf9b90f7628f3e7fe5664"
},
"local_code_match": {
"lisa_effect.py": true,
"lisa_tail.py": true,
"lisa_train.py": true,
"lisa_decode.py": true,
"lisa_decode_bench.py": true,
"lisa_effect_screen.py": true,
"lisa_effect_audit.py": true,
"lisa_effect_answer_audit.py": true
},
"phase_updates": {
"lisa_decode_bench.py": {
"initial_unexecuted_benchmark_sha256": "0b9867b3f17dbe6373627fa3901c2ea113fc7e0d690b4a358350cfaae62ef223",
"validated_remote_benchmark_sha256": "979e566a3391b9418b49beb10c200a48aac706ee95c145510850c929bcc2885a",
"reason": "Measure compute with resident projections separately from streamed execution",
"remote_numeric_tests": "4 passed; resident projection outputs compared with streamed output"
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,82 @@
{
"lookup8": {
"native": {
"n": 8,
"correct": 8,
"native_wins_lost": 0,
"nll": 0.22260868260464628
},
"direct_23": {
"n": 8,
"correct": 8,
"native_wins_lost": 0,
"nll": 0.15405775362854435
},
"direct_19_23": {
"n": 8,
"correct": 8,
"native_wins_lost": 0,
"nll": 0.1474619847851022
}
},
"lookup16": {
"native": {
"n": 8,
"correct": 8,
"native_wins_lost": 0,
"nll": 0.137068848385562
},
"direct_23": {
"n": 8,
"correct": 8,
"native_wins_lost": 0,
"nll": 0.08428237400849126
},
"direct_19_23": {
"n": 8,
"correct": 7,
"native_wins_lost": 1,
"nll": 0.17225019742912862
}
},
"latest8": {
"native": {
"n": 8,
"correct": 6,
"native_wins_lost": 0,
"nll": 0.5951684205201615
},
"direct_23": {
"n": 8,
"correct": 6,
"native_wins_lost": 0,
"nll": 0.5312782958402527
},
"direct_19_23": {
"n": 8,
"correct": 7,
"native_wins_lost": 0,
"nll": 0.5573033796086375
}
},
"arithmetic": {
"native": {
"n": 8,
"correct": 3,
"native_wins_lost": 0,
"nll": 1.2998106862759977
},
"direct_23": {
"n": 8,
"correct": 3,
"native_wins_lost": 0,
"nll": 1.2773446956117458
},
"direct_19_23": {
"n": 8,
"correct": 4,
"native_wins_lost": 0,
"nll": 1.2912787564044454
}
}
}
@@ -0,0 +1,13 @@
{
"task": "lookup16",
"sites": [
19,
23
],
"fixed_problems_sha256": "34252a9e02e79c0e0d786ee8b90bb0c5a4fe22e97852929fedf73db7b6dc7826",
"source_sha256": {
"manifest.json": "28efbaf94a5034333339a35f08ead151459a7d20c6c2d2f07a451e7f3bf154de",
"model_config.json": "ed1c1723241f23f7f4e23430759cbd7dcfb4103cbdfe052bfe7626b57c2615b4",
"tokenizer.json": "5f9e4d4901a92b997e463c1f46055088b6cca5ca61a6522d1b9f64c4bb81cb42"
}
}