From cd307640cc284ed9ce77d00e905eb99da13f48b8 Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Thu, 26 Nov 2026 04:22:27 +0800 Subject: [PATCH] Report paired validation for both trajectory-prefix conditions --- docs/LISA_COMBINATIONS_RESULTS.md | 16 +- .../trajectory-reference/trace.json | 218 +++++++++++++ .../validation-reference.json | 290 ++++++++++++++++++ .../trajectory-reference/verified.json | 23 ++ .../trajectory-validation.json | 56 ++++ 5 files changed, 599 insertions(+), 4 deletions(-) create mode 100644 results/lisa-combinations/trajectory-reference/trace.json create mode 100644 results/lisa-combinations/trajectory-reference/validation-reference.json create mode 100644 results/lisa-combinations/trajectory-reference/verified.json create mode 100644 results/lisa-combinations/trajectory-validation.json diff --git a/docs/LISA_COMBINATIONS_RESULTS.md b/docs/LISA_COMBINATIONS_RESULTS.md index 6bc476a..3a33576 100644 --- a/docs/LISA_COMBINATIONS_RESULTS.md +++ b/docs/LISA_COMBINATIONS_RESULTS.md @@ -21,10 +21,18 @@ 五个分秩条件各有 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) +两种蒸馏在同一批 16 道验证题上都丢掉了原 LiSA 答对的题,也都没有救回原本答错的题。学生前缀组比标准答案前缀组少答对 1 道。三组共 48 个回答均正常结束,可解析出完整整数。 [起始 LiSA 答卷](../results/lisa-combinations/validation-prior-lisa.json) · [学生前缀答卷](../results/lisa-combinations/trajectory-student/validation-student.json) · [标准答案前缀答卷](../results/lisa-combinations/trajectory-reference/validation-reference.json) -在第 003 对题上,目标键都在第 11 项,交换后其值从 93 变为 83。起始模型两次都答对,蒸馏后两次都读出第 5 项的 43。另一道退步的题是第 006 对的第一题,正确答案为 78,蒸馏后生成了表中没有的 38。 +| 条件 | 完整答案正确 | 交换前后均正确 | 相对起始 LiSA 救回/丢失 | +|---|---:|---:|---:| +| 起始 LiSA | 5/16 | 1/8 | — | +| 标准答案前缀蒸馏 | 3/16 | 0/8 | 0/2 | +| 学生前缀蒸馏 | 2/16 | 0/8 | 0/3 | -学生组从同一份起始 LiSA 权重出发,按固定题序完成 24 次逆 KL 更新。训练时当步学生生成的答案有 11 道与标准答案的 token 序列完全相同。在 72 个下一 token 预测位置中,有 25 个位置的学生前缀与标准答案前缀不同。复核通过冻结的分词器重新判分,也核对了优化器更新次数、最终权重与最后一个训练检查点。验证结果只衡量本配置在这 8 对题上的表现。标准答案前缀对照用于判断结果是否与前缀选择有关,32 对新留出题用于检验能否推广。 [训练轨迹](../results/lisa-combinations/trajectory-student/trace.json) · [实验协议](LISA_COMBINATIONS_PROTOCOL.md) +第 003 对题的目标键在第 11 项,交换后其值从 93 变为 83。起始 LiSA 两次都答对,两种蒸馏都连续两次读出第 5 项的 43。这个退步在只使用标准答案前缀训练时也出现了。第 006 对的第一题是两种蒸馏在正确性上唯一有差别的题,标准答案前缀组答对 78,学生前缀组生成了表中没有的 38。两种蒸馏在全部 16 题中有 13 题生成完全相同的 token。 [逐题得失与题对比较](../results/lisa-combinations/trajectory-validation.json) + +两组从同一份 LiSA 权重出发,在相同的 24 道训练题上按相同顺序各完成 24 次逆 KL 更新,各有 72 个下一 token 预测位置。11 道题的两条训练轨迹完全相同,全部 72 个位置中有 25 个位置的前缀不同。标准答案前缀组启动时,缓存路径的教师最终隐状态、接收层输入与供给分数同完整原生前向逐元素相等。 [学生训练轨迹](../results/lisa-combinations/trajectory-student/trace.json) · [标准答案训练轨迹](../results/lisa-combinations/trajectory-reference/trace.json) + +两组验证答卷已用冻结的分词器重新判分,并核对优化器更新次数、最后一个训练检查点和实际评估的权重。本次验证支持这套蒸馏配置在这 8 对题上没有改善最终答案。32 对新留出题用于检验这个结果能否推广。 [学生组核验](../results/lisa-combinations/trajectory-student/verified.json) · [标准答案组核验](../results/lisa-combinations/trajectory-reference/verified.json) · [实验协议](LISA_COMBINATIONS_PROTOCOL.md) diff --git a/results/lisa-combinations/trajectory-reference/trace.json b/results/lisa-combinations/trajectory-reference/trace.json new file mode 100644 index 0000000..37a2683 --- /dev/null +++ b/results/lisa-combinations/trajectory-reference/trace.json @@ -0,0 +1,218 @@ +[ + { + "id": "fit-lookup-000", + "tokens": [ + 23, + 18, + 248046 + ], + "reverse_kl": 1.0708420276641846 + }, + { + "id": "fit-lookup-001", + "tokens": [ + 20, + 19, + 248046 + ], + "reverse_kl": 0.359794944524765 + }, + { + "id": "fit-lookup-002", + "tokens": [ + 22, + 18, + 248046 + ], + "reverse_kl": 1.7561622858047485 + }, + { + "id": "fit-lookup-003", + "tokens": [ + 21, + 16, + 248046 + ], + "reverse_kl": 0.8009884357452393 + }, + { + "id": "fit-lookup-004", + "tokens": [ + 24, + 21, + 248046 + ], + "reverse_kl": 1.570459008216858 + }, + { + "id": "fit-lookup-005", + "tokens": [ + 20, + 15, + 248046 + ], + "reverse_kl": 1.1894524097442627 + }, + { + "id": "fit-lookup-006", + "tokens": [ + 22, + 24, + 248046 + ], + "reverse_kl": 2.783402442932129 + }, + { + "id": "fit-lookup-007", + "tokens": [ + 17, + 19, + 248046 + ], + "reverse_kl": 1.4688148498535156 + }, + { + "id": "fit-lookup-008", + "tokens": [ + 19, + 21, + 248046 + ], + "reverse_kl": 1.3527965545654297 + }, + { + "id": "fit-lookup-009", + "tokens": [ + 18, + 19, + 248046 + ], + "reverse_kl": 1.4242044687271118 + }, + { + "id": "fit-lookup-010", + "tokens": [ + 19, + 20, + 248046 + ], + "reverse_kl": 0.16955293715000153 + }, + { + "id": "fit-lookup-011", + "tokens": [ + 17, + 23, + 248046 + ], + "reverse_kl": 2.670910596847534 + }, + { + "id": "fit-lookup-012", + "tokens": [ + 20, + 16, + 248046 + ], + "reverse_kl": 1.7502222061157227 + }, + { + "id": "fit-lookup-013", + "tokens": [ + 19, + 19, + 248046 + ], + "reverse_kl": 0.21196232736110687 + }, + { + "id": "fit-lookup-014", + "tokens": [ + 19, + 17, + 248046 + ], + "reverse_kl": 1.677167296409607 + }, + { + "id": "fit-lookup-015", + "tokens": [ + 24, + 22, + 248046 + ], + "reverse_kl": 0.1573168784379959 + }, + { + "id": "fit-lookup-016", + "tokens": [ + 20, + 16, + 248046 + ], + "reverse_kl": 0.09522029012441635 + }, + { + "id": "fit-lookup-017", + "tokens": [ + 23, + 15, + 248046 + ], + "reverse_kl": 1.6205872297286987 + }, + { + "id": "fit-lookup-018", + "tokens": [ + 24, + 16, + 248046 + ], + "reverse_kl": 1.0968724489212036 + }, + { + "id": "fit-lookup-019", + "tokens": [ + 24, + 21, + 248046 + ], + "reverse_kl": 0.365121454000473 + }, + { + "id": "fit-lookup-020", + "tokens": [ + 24, + 24, + 248046 + ], + "reverse_kl": 0.20771723985671997 + }, + { + "id": "fit-lookup-021", + "tokens": [ + 24, + 17, + 248046 + ], + "reverse_kl": 1.0566303730010986 + }, + { + "id": "fit-lookup-022", + "tokens": [ + 17, + 18, + 248046 + ], + "reverse_kl": 2.1767852306365967 + }, + { + "id": "fit-lookup-023", + "tokens": [ + 19, + 21, + 248046 + ], + "reverse_kl": 1.3833431005477905 + } +] diff --git a/results/lisa-combinations/trajectory-reference/validation-reference.json b/results/lisa-combinations/trajectory-reference/validation-reference.json new file mode 100644 index 0000000..89eeea9 --- /dev/null +++ b/results/lisa-combinations/trajectory-reference/validation-reference.json @@ -0,0 +1,290 @@ +[ + { + "id": "validation-000-0", + "task": "lookup", + "gold": 44, + "arms": { + "validation-reference": { + "tokens": [ + 24, + 16, + 248046 + ], + "response": "91<|im_end|>", + "stop": "eos", + "answer": 91, + "correct": false + } + } + }, + { + "id": "validation-000-1", + "task": "lookup", + "gold": 91, + "arms": { + "validation-reference": { + "tokens": [ + 24, + 16, + 248046 + ], + "response": "91<|im_end|>", + "stop": "eos", + "answer": 91, + "correct": true + } + } + }, + { + "id": "validation-001-0", + "task": "lookup", + "gold": 33, + "arms": { + "validation-reference": { + "tokens": [ + 19, + 22, + 248046 + ], + "response": "47<|im_end|>", + "stop": "eos", + "answer": 47, + "correct": false + } + } + }, + { + "id": "validation-001-1", + "task": "lookup", + "gold": 28, + "arms": { + "validation-reference": { + "tokens": [ + 19, + 22, + 248046 + ], + "response": "47<|im_end|>", + "stop": "eos", + "answer": 47, + "correct": false + } + } + }, + { + "id": "validation-002-0", + "task": "lookup", + "gold": 42, + "arms": { + "validation-reference": { + "tokens": [ + 20, + 16, + 248046 + ], + "response": "51<|im_end|>", + "stop": "eos", + "answer": 51, + "correct": false + } + } + }, + { + "id": "validation-002-1", + "task": "lookup", + "gold": 56, + "arms": { + "validation-reference": { + "tokens": [ + 20, + 16, + 248046 + ], + "response": "51<|im_end|>", + "stop": "eos", + "answer": 51, + "correct": false + } + } + }, + { + "id": "validation-003-0", + "task": "lookup", + "gold": 93, + "arms": { + "validation-reference": { + "tokens": [ + 19, + 18, + 248046 + ], + "response": "43<|im_end|>", + "stop": "eos", + "answer": 43, + "correct": false + } + } + }, + { + "id": "validation-003-1", + "task": "lookup", + "gold": 83, + "arms": { + "validation-reference": { + "tokens": [ + 19, + 18, + 248046 + ], + "response": "43<|im_end|>", + "stop": "eos", + "answer": 43, + "correct": false + } + } + }, + { + "id": "validation-004-0", + "task": "lookup", + "gold": 23, + "arms": { + "validation-reference": { + "tokens": [ + 17, + 24, + 248046 + ], + "response": "29<|im_end|>", + "stop": "eos", + "answer": 29, + "correct": false + } + } + }, + { + "id": "validation-004-1", + "task": "lookup", + "gold": 89, + "arms": { + "validation-reference": { + "tokens": [ + 23, + 24, + 248046 + ], + "response": "89<|im_end|>", + "stop": "eos", + "answer": 89, + "correct": true + } + } + }, + { + "id": "validation-005-0", + "task": "lookup", + "gold": 63, + "arms": { + "validation-reference": { + "tokens": [ + 19, + 24, + 248046 + ], + "response": "49<|im_end|>", + "stop": "eos", + "answer": 49, + "correct": false + } + } + }, + { + "id": "validation-005-1", + "task": "lookup", + "gold": 49, + "arms": { + "validation-reference": { + "tokens": [ + 19, + 19, + 248046 + ], + "response": "44<|im_end|>", + "stop": "eos", + "answer": 44, + "correct": false + } + } + }, + { + "id": "validation-006-0", + "task": "lookup", + "gold": 78, + "arms": { + "validation-reference": { + "tokens": [ + 22, + 23, + 248046 + ], + "response": "78<|im_end|>", + "stop": "eos", + "answer": 78, + "correct": true + } + } + }, + { + "id": "validation-006-1", + "task": "lookup", + "gold": 29, + "arms": { + "validation-reference": { + "tokens": [ + 18, + 16, + 248046 + ], + "response": "31<|im_end|>", + "stop": "eos", + "answer": 31, + "correct": false + } + } + }, + { + "id": "validation-007-0", + "task": "lookup", + "gold": 64, + "arms": { + "validation-reference": { + "tokens": [ + 24, + 18, + 248046 + ], + "response": "93<|im_end|>", + "stop": "eos", + "answer": 93, + "correct": false + } + } + }, + { + "id": "validation-007-1", + "task": "lookup", + "gold": 50, + "arms": { + "validation-reference": { + "tokens": [ + 19, + 18, + 248046 + ], + "response": "43<|im_end|>", + "stop": "eos", + "answer": 43, + "correct": false + } + } + } +] diff --git a/results/lisa-combinations/trajectory-reference/verified.json b/results/lisa-combinations/trajectory-reference/verified.json new file mode 100644 index 0000000..c580177 --- /dev/null +++ b/results/lisa-combinations/trajectory-reference/verified.json @@ -0,0 +1,23 @@ +{ + "arm": "reference", + "updates": 24, + "identical_training_answer_tokens": 24, + "training_prefix_positions": 72, + "student_only_prefix_positions": 0, + "baseline_correct": 5, + "candidate_correct": 3, + "baseline_pairs_both": 1, + "candidate_pairs_both": 0, + "validation_corrected_ids": [], + "validation_lost_ids": [ + "validation-003-0", + "validation-003-1" + ], + "sha256": { + "protocol.json": "6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef", + "trajectory-reference/adapter.pt": "21ae007cb7343c1a0042655824bdc98ee2f03071d5f5dc43dbc8b441a262d84f", + "trajectory-reference/trace.json": "e9412a8033fd81c269cda1f3a8999b04f756f51c53b10e6bbeae81907066e40e", + "trajectory-reference/validation-reference.json": "3b5557336570cbeb1f6a592013780dc3e00e7f29b4192d59c53c6b2493779b91", + "validation-prior-lisa.json": "3a10cdd0a22e110b5468ba496c3440a8b510ab3595328df330e7ea02b0ccbb76" + } +} diff --git a/results/lisa-combinations/trajectory-validation.json b/results/lisa-combinations/trajectory-validation.json new file mode 100644 index 0000000..0474eaf --- /dev/null +++ b/results/lisa-combinations/trajectory-validation.json @@ -0,0 +1,56 @@ +{ + "validation_questions": 16, + "validation_pairs": 8, + "scores": { + "prior-lisa": { + "correct": 5, + "both_correct": 1, + "answers_unchanged_after_swap": 6 + }, + "student": { + "correct": 2, + "both_correct": 0, + "answers_unchanged_after_swap": 4 + }, + "reference": { + "correct": 3, + "both_correct": 0, + "answers_unchanged_after_swap": 4 + } + }, + "changes": { + "student-vs-prior-lisa": { + "net": -3, + "corrected": [], + "lost": [ + "validation-003-0", + "validation-003-1", + "validation-006-0" + ], + "identical_validation_token_streams": 8 + }, + "reference-vs-prior-lisa": { + "net": -2, + "corrected": [], + "lost": [ + "validation-003-0", + "validation-003-1" + ], + "identical_validation_token_streams": 10 + }, + "student-vs-reference": { + "net": -1, + "corrected": [], + "lost": [ + "validation-006-0" + ], + "identical_validation_token_streams": 13 + } + }, + "fit_trajectory_overlap": { + "same_complete_trajectory": 11, + "distinct_student_prefix_positions": 25, + "student_positions": 72, + "reference_positions": 72 + } +}