From b0ac4464503fe70248d875d83e0bbf972ccaf010 Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Thu, 26 Nov 2026 01:49:05 +0800 Subject: [PATCH] Report verified student-prefix distillation validation answers --- docs/LISA_COMBINATIONS_RESULTS.md | 12 +- .../trajectory-student/trace.json | 218 +++++++++++++ .../validation-student.json | 290 ++++++++++++++++++ .../trajectory-student/verified.json | 24 ++ .../validation-prior-lisa.json | 290 ++++++++++++++++++ 5 files changed, 833 insertions(+), 1 deletion(-) create mode 100644 results/lisa-combinations/trajectory-student/trace.json create mode 100644 results/lisa-combinations/trajectory-student/validation-student.json create mode 100644 results/lisa-combinations/trajectory-student/verified.json create mode 100644 results/lisa-combinations/validation-prior-lisa.json diff --git a/docs/LISA_COMBINATIONS_RESULTS.md b/docs/LISA_COMBINATIONS_RESULTS.md index ed2155e..6bc476a 100644 --- a/docs/LISA_COMBINATIONS_RESULTS.md +++ b/docs/LISA_COMBINATIONS_RESULTS.md @@ -1,4 +1,6 @@ -# 三层 LiSA 共享的诊断与分秩 +# Qwen3.5-2B 三层 LiSA 共享实验结果 + +## 逐层恢复与分秩 在 Qwen3.5-2B 的 8 对查表题上,单独恢复第 19 层的原生 Q/K,16 道完整答案全部正确。恢复第 15 层答对 15 道,恢复第 23 层答对 1 道。其余两个接收层继续使用同一份 LiSA 权重,每次恢复都会影响下游计算。层号按整个模型从零开始。 [冻结协议](LISA_COMBINATIONS_PROTOCOL.md) @@ -18,3 +20,11 @@ 按全部诊断题,敏感度分配给第 15、19、23 层的秩依次为 **40、48、32**。均匀对照为 40、40、40,反向对照为 40、32、48。上述结果衡量恢复原生 Q/K 的效果。增加低秩参数能救回多少答案,以及学生轨迹蒸馏能否改善生成,需在训练后用 32 对新留出题检验。 五个分秩条件各有 2,476,032 个适配器参数。关闭共享时,三个接收层各有 8 个供给分数通道被置零,每个通道连接到 256 个融合单元。因此共有 6,144 个权重(占 0.248%)的输入恒为零,其余 2,469,888 个权重保留连接。分别在开启和关闭共享的条件内比较分秩与均匀秩,两侧的连接数各自相等。 + +## 学生前缀蒸馏 + +在冻结的 16 道验证题上,学生前缀蒸馏后的 LiSA 答对 **2/16**,起始 LiSA 答对 **5/16**,正确率下降 18.75 个百分点。原本答对的 3 道变错,原本答错的题没有变对。交换目标值前后都正确的题对从 **1/8** 降为 **0/8**。两组各 16 个回答均正常结束,且可解析出完整整数。 [起始答卷](../results/lisa-combinations/validation-prior-lisa.json) · [蒸馏后答卷](../results/lisa-combinations/trajectory-student/validation-student.json) · [逐题核验](../results/lisa-combinations/trajectory-student/verified.json) + +在第 003 对题上,目标键都在第 11 项,交换后其值从 93 变为 83。起始模型两次都答对,蒸馏后两次都读出第 5 项的 43。另一道退步的题是第 006 对的第一题,正确答案为 78,蒸馏后生成了表中没有的 38。 + +学生组从同一份起始 LiSA 权重出发,按固定题序完成 24 次逆 KL 更新。训练时当步学生生成的答案有 11 道与标准答案的 token 序列完全相同。在 72 个下一 token 预测位置中,有 25 个位置的学生前缀与标准答案前缀不同。复核通过冻结的分词器重新判分,也核对了优化器更新次数、最终权重与最后一个训练检查点。验证结果只衡量本配置在这 8 对题上的表现。标准答案前缀对照用于判断结果是否与前缀选择有关,32 对新留出题用于检验能否推广。 [训练轨迹](../results/lisa-combinations/trajectory-student/trace.json) · [实验协议](LISA_COMBINATIONS_PROTOCOL.md) diff --git a/results/lisa-combinations/trajectory-student/trace.json b/results/lisa-combinations/trajectory-student/trace.json new file mode 100644 index 0000000..4a42695 --- /dev/null +++ b/results/lisa-combinations/trajectory-student/trace.json @@ -0,0 +1,218 @@ +[ + { + "id": "fit-lookup-000", + "tokens": [ + 24, + 16, + 248046 + ], + "reverse_kl": 1.3920799493789673 + }, + { + "id": "fit-lookup-001", + "tokens": [ + 20, + 19, + 248046 + ], + "reverse_kl": 0.3670388162136078 + }, + { + "id": "fit-lookup-002", + "tokens": [ + 20, + 23, + 248046 + ], + "reverse_kl": 1.607092261314392 + }, + { + "id": "fit-lookup-003", + "tokens": [ + 21, + 16, + 248046 + ], + "reverse_kl": 0.8484256267547607 + }, + { + "id": "fit-lookup-004", + "tokens": [ + 24, + 17, + 248046 + ], + "reverse_kl": 1.487722396850586 + }, + { + "id": "fit-lookup-005", + "tokens": [ + 19, + 19, + 248046 + ], + "reverse_kl": 1.9051605463027954 + }, + { + "id": "fit-lookup-006", + "tokens": [ + 22, + 24, + 248046 + ], + "reverse_kl": 1.4778107404708862 + }, + { + "id": "fit-lookup-007", + "tokens": [ + 22, + 19, + 248046 + ], + "reverse_kl": 2.0440306663513184 + }, + { + "id": "fit-lookup-008", + "tokens": [ + 24, + 17, + 248046 + ], + "reverse_kl": 1.3969637155532837 + }, + { + "id": "fit-lookup-009", + "tokens": [ + 20, + 19, + 248046 + ], + "reverse_kl": 2.133025646209717 + }, + { + "id": "fit-lookup-010", + "tokens": [ + 19, + 20, + 248046 + ], + "reverse_kl": 0.16392825543880463 + }, + { + "id": "fit-lookup-011", + "tokens": [ + 18, + 23, + 248046 + ], + "reverse_kl": 2.76891827583313 + }, + { + "id": "fit-lookup-012", + "tokens": [ + 23, + 24, + 248046 + ], + "reverse_kl": 2.3396949768066406 + }, + { + "id": "fit-lookup-013", + "tokens": [ + 19, + 19, + 248046 + ], + "reverse_kl": 0.2812904715538025 + }, + { + "id": "fit-lookup-014", + "tokens": [ + 23, + 17, + 248046 + ], + "reverse_kl": 1.5917729139328003 + }, + { + "id": "fit-lookup-015", + "tokens": [ + 24, + 22, + 248046 + ], + "reverse_kl": 0.20547236502170563 + }, + { + "id": "fit-lookup-016", + "tokens": [ + 20, + 16, + 248046 + ], + "reverse_kl": 0.10026532411575317 + }, + { + "id": "fit-lookup-017", + "tokens": [ + 22, + 15, + 248046 + ], + "reverse_kl": 1.7930327653884888 + }, + { + "id": "fit-lookup-018", + "tokens": [ + 22, + 21, + 248046 + ], + "reverse_kl": 1.4335891008377075 + }, + { + "id": "fit-lookup-019", + "tokens": [ + 24, + 21, + 248046 + ], + "reverse_kl": 0.3742959797382355 + }, + { + "id": "fit-lookup-020", + "tokens": [ + 24, + 24, + 248046 + ], + "reverse_kl": 0.4034559428691864 + }, + { + "id": "fit-lookup-021", + "tokens": [ + 24, + 17, + 248046 + ], + "reverse_kl": 1.055336594581604 + }, + { + "id": "fit-lookup-022", + "tokens": [ + 18, + 24, + 248046 + ], + "reverse_kl": 2.550983428955078 + }, + { + "id": "fit-lookup-023", + "tokens": [ + 19, + 21, + 248046 + ], + "reverse_kl": 1.3725028038024902 + } +] diff --git a/results/lisa-combinations/trajectory-student/validation-student.json b/results/lisa-combinations/trajectory-student/validation-student.json new file mode 100644 index 0000000..ae16c22 --- /dev/null +++ b/results/lisa-combinations/trajectory-student/validation-student.json @@ -0,0 +1,290 @@ +[ + { + "id": "validation-000-0", + "task": "lookup", + "gold": 44, + "arms": { + "validation-student": { + "tokens": [ + 24, + 16, + 248046 + ], + "response": "91<|im_end|>", + "stop": "eos", + "answer": 91, + "correct": false + } + } + }, + { + "id": "validation-000-1", + "task": "lookup", + "gold": 91, + "arms": { + "validation-student": { + "tokens": [ + 24, + 16, + 248046 + ], + "response": "91<|im_end|>", + "stop": "eos", + "answer": 91, + "correct": true + } + } + }, + { + "id": "validation-001-0", + "task": "lookup", + "gold": 33, + "arms": { + "validation-student": { + "tokens": [ + 19, + 22, + 248046 + ], + "response": "47<|im_end|>", + "stop": "eos", + "answer": 47, + "correct": false + } + } + }, + { + "id": "validation-001-1", + "task": "lookup", + "gold": 28, + "arms": { + "validation-student": { + "tokens": [ + 19, + 22, + 248046 + ], + "response": "47<|im_end|>", + "stop": "eos", + "answer": 47, + "correct": false + } + } + }, + { + "id": "validation-002-0", + "task": "lookup", + "gold": 42, + "arms": { + "validation-student": { + "tokens": [ + 20, + 16, + 248046 + ], + "response": "51<|im_end|>", + "stop": "eos", + "answer": 51, + "correct": false + } + } + }, + { + "id": "validation-002-1", + "task": "lookup", + "gold": 56, + "arms": { + "validation-student": { + "tokens": [ + 20, + 16, + 248046 + ], + "response": "51<|im_end|>", + "stop": "eos", + "answer": 51, + "correct": false + } + } + }, + { + "id": "validation-003-0", + "task": "lookup", + "gold": 93, + "arms": { + "validation-student": { + "tokens": [ + 19, + 18, + 248046 + ], + "response": "43<|im_end|>", + "stop": "eos", + "answer": 43, + "correct": false + } + } + }, + { + "id": "validation-003-1", + "task": "lookup", + "gold": 83, + "arms": { + "validation-student": { + "tokens": [ + 19, + 18, + 248046 + ], + "response": "43<|im_end|>", + "stop": "eos", + "answer": 43, + "correct": false + } + } + }, + { + "id": "validation-004-0", + "task": "lookup", + "gold": 23, + "arms": { + "validation-student": { + "tokens": [ + 17, + 24, + 248046 + ], + "response": "29<|im_end|>", + "stop": "eos", + "answer": 29, + "correct": false + } + } + }, + { + "id": "validation-004-1", + "task": "lookup", + "gold": 89, + "arms": { + "validation-student": { + "tokens": [ + 23, + 24, + 248046 + ], + "response": "89<|im_end|>", + "stop": "eos", + "answer": 89, + "correct": true + } + } + }, + { + "id": "validation-005-0", + "task": "lookup", + "gold": 63, + "arms": { + "validation-student": { + "tokens": [ + 19, + 24, + 248046 + ], + "response": "49<|im_end|>", + "stop": "eos", + "answer": 49, + "correct": false + } + } + }, + { + "id": "validation-005-1", + "task": "lookup", + "gold": 49, + "arms": { + "validation-student": { + "tokens": [ + 19, + 19, + 248046 + ], + "response": "44<|im_end|>", + "stop": "eos", + "answer": 44, + "correct": false + } + } + }, + { + "id": "validation-006-0", + "task": "lookup", + "gold": 78, + "arms": { + "validation-student": { + "tokens": [ + 18, + 23, + 248046 + ], + "response": "38<|im_end|>", + "stop": "eos", + "answer": 38, + "correct": false + } + } + }, + { + "id": "validation-006-1", + "task": "lookup", + "gold": 29, + "arms": { + "validation-student": { + "tokens": [ + 18, + 16, + 248046 + ], + "response": "31<|im_end|>", + "stop": "eos", + "answer": 31, + "correct": false + } + } + }, + { + "id": "validation-007-0", + "task": "lookup", + "gold": 64, + "arms": { + "validation-student": { + "tokens": [ + 19, + 24, + 248046 + ], + "response": "49<|im_end|>", + "stop": "eos", + "answer": 49, + "correct": false + } + } + }, + { + "id": "validation-007-1", + "task": "lookup", + "gold": 50, + "arms": { + "validation-student": { + "tokens": [ + 19, + 21, + 248046 + ], + "response": "46<|im_end|>", + "stop": "eos", + "answer": 46, + "correct": false + } + } + } +] diff --git a/results/lisa-combinations/trajectory-student/verified.json b/results/lisa-combinations/trajectory-student/verified.json new file mode 100644 index 0000000..e69167a --- /dev/null +++ b/results/lisa-combinations/trajectory-student/verified.json @@ -0,0 +1,24 @@ +{ + "arm": "student", + "updates": 24, + "identical_training_answer_tokens": 11, + "training_prefix_positions": 72, + "student_only_prefix_positions": 25, + "baseline_correct": 5, + "candidate_correct": 2, + "baseline_pairs_both": 1, + "candidate_pairs_both": 0, + "validation_corrected_ids": [], + "validation_lost_ids": [ + "validation-003-0", + "validation-003-1", + "validation-006-0" + ], + "sha256": { + "protocol.json": "6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef", + "trajectory-student/adapter.pt": "7faacdffbc81d0c786ef0c7a5acaf1724d82af155fed7b834dabc73dcf91f3a4", + "trajectory-student/trace.json": "9ca7cc53002073f7764ce855e91a2fd44029c9c63dd6ce55e9f7db43309f7e45", + "trajectory-student/validation-student.json": "af213ef477e99780d48b995f8a1d07ada6409bd70011202fb73db56247199c5f", + "validation-prior-lisa.json": "3a10cdd0a22e110b5468ba496c3440a8b510ab3595328df330e7ea02b0ccbb76" + } +} diff --git a/results/lisa-combinations/validation-prior-lisa.json b/results/lisa-combinations/validation-prior-lisa.json new file mode 100644 index 0000000..4df184f --- /dev/null +++ b/results/lisa-combinations/validation-prior-lisa.json @@ -0,0 +1,290 @@ +[ + { + "id": "validation-000-0", + "task": "lookup", + "gold": 44, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 24, + 16, + 248046 + ], + "response": "91<|im_end|>", + "stop": "eos", + "answer": 91, + "correct": false + } + } + }, + { + "id": "validation-000-1", + "task": "lookup", + "gold": 91, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 24, + 16, + 248046 + ], + "response": "91<|im_end|>", + "stop": "eos", + "answer": 91, + "correct": true + } + } + }, + { + "id": "validation-001-0", + "task": "lookup", + "gold": 33, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 19, + 22, + 248046 + ], + "response": "47<|im_end|>", + "stop": "eos", + "answer": 47, + "correct": false + } + } + }, + { + "id": "validation-001-1", + "task": "lookup", + "gold": 28, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 19, + 22, + 248046 + ], + "response": "47<|im_end|>", + "stop": "eos", + "answer": 47, + "correct": false + } + } + }, + { + "id": "validation-002-0", + "task": "lookup", + "gold": 42, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 20, + 16, + 248046 + ], + "response": "51<|im_end|>", + "stop": "eos", + "answer": 51, + "correct": false + } + } + }, + { + "id": "validation-002-1", + "task": "lookup", + "gold": 56, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 20, + 16, + 248046 + ], + "response": "51<|im_end|>", + "stop": "eos", + "answer": 51, + "correct": false + } + } + }, + { + "id": "validation-003-0", + "task": "lookup", + "gold": 93, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 24, + 18, + 248046 + ], + "response": "93<|im_end|>", + "stop": "eos", + "answer": 93, + "correct": true + } + } + }, + { + "id": "validation-003-1", + "task": "lookup", + "gold": 83, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 23, + 18, + 248046 + ], + "response": "83<|im_end|>", + "stop": "eos", + "answer": 83, + "correct": true + } + } + }, + { + "id": "validation-004-0", + "task": "lookup", + "gold": 23, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 23, + 24, + 248046 + ], + "response": "89<|im_end|>", + "stop": "eos", + "answer": 89, + "correct": false + } + } + }, + { + "id": "validation-004-1", + "task": "lookup", + "gold": 89, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 23, + 24, + 248046 + ], + "response": "89<|im_end|>", + "stop": "eos", + "answer": 89, + "correct": true + } + } + }, + { + "id": "validation-005-0", + "task": "lookup", + "gold": 63, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 19, + 19, + 248046 + ], + "response": "44<|im_end|>", + "stop": "eos", + "answer": 44, + "correct": false + } + } + }, + { + "id": "validation-005-1", + "task": "lookup", + "gold": 49, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 19, + 19, + 248046 + ], + "response": "44<|im_end|>", + "stop": "eos", + "answer": 44, + "correct": false + } + } + }, + { + "id": "validation-006-0", + "task": "lookup", + "gold": 78, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 22, + 23, + 248046 + ], + "response": "78<|im_end|>", + "stop": "eos", + "answer": 78, + "correct": true + } + } + }, + { + "id": "validation-006-1", + "task": "lookup", + "gold": 29, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 22, + 19, + 248046 + ], + "response": "74<|im_end|>", + "stop": "eos", + "answer": 74, + "correct": false + } + } + }, + { + "id": "validation-007-0", + "task": "lookup", + "gold": 64, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 24, + 18, + 248046 + ], + "response": "93<|im_end|>", + "stop": "eos", + "answer": 93, + "correct": false + } + } + }, + { + "id": "validation-007-1", + "task": "lookup", + "gold": 50, + "arms": { + "validation-prior-lisa": { + "tokens": [ + 24, + 18, + 248046 + ], + "response": "93<|im_end|>", + "stop": "eos", + "answer": 93, + "correct": false + } + } + } +]