Archive verified layer restoration answers and lock LiSA ranks

This commit is contained in:
2026-11-25 19:04:47 +08:00
parent 23386797c4
commit 8ae5e8c2f7
6 changed files with 1271 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
# 三层 LiSA 共享的诊断与分秩
在 Qwen3.5-2B 的 8 对查表题上,单独恢复第 19 层的原生 Q/K,16 道完整答案全部正确。恢复第 15 层答对 15 道,恢复第 23 层答对 1 道。其余两个接收层继续使用同一份 LiSA 权重,每次恢复都会影响下游计算。层号按整个模型从零开始。 [冻结协议](LISA_COMBINATIONS_PROTOCOL.md)
| 条件 | 完整答案正确 | 同一对交换前后均正确 |
|---|---:|---:|
| 原 LiSA | 0/16 | 0/8 |
| 恢复第 15 层 | 15/16 | 7/8 |
| 恢复第 19 层 | 16/16 | 8/8 |
| 恢复第 23 层 | 1/16 | 0/8 |
四组共 64 次生成均得到完整整数。逐题复核使用冻结分词器重新解码 token,检查正常结束或长度上限、题目 ID、标准答案及记分。复核回执保存了原始答卷、题集、分词器及起始适配器的 SHA-256。 [逐题答卷及复核回执](../results/lisa-combinations/diagnostic/)
第 15 层和第 19 层的正确性只在一题上有差异。目标键位于第 9 项,值为 39,恢复第 15 层生成第 8 项的 98,恢复第 19 层生成 39。交换表项后,两种恢复条件都正确生成 77。每次去掉一对题重新排序,第 23 层在 8 次中均居末位。去掉上述题对时,第 15 层和第 19 层打平,预定的同分规则将第 15 层排在前面。其他 7 次均为第 19 层领先。 [配对复核](../results/lisa-combinations/diagnostic/verified.json)
按全部诊断题,敏感度分配给第 15、19、23 层的秩依次为 **40、48、32**。均匀对照为 40、40、40,反向对照为 40、32、48。上述结果衡量恢复原生 Q/K 的效果。增加低秩参数能救回多少答案,以及学生轨迹蒸馏能否改善生成,需在训练后用 32 对新留出题检验。
@@ -0,0 +1,290 @@
[
{
"id": "diagnostic-000-0",
"task": "lookup",
"gold": 76,
"arms": {
"baseline": {
"tokens": [
24,
19,
248046
],
"response": "94<|im_end|>",
"stop": "eos",
"answer": 94,
"correct": false
}
}
},
{
"id": "diagnostic-000-1",
"task": "lookup",
"gold": 75,
"arms": {
"baseline": {
"tokens": [
24,
19,
248046
],
"response": "94<|im_end|>",
"stop": "eos",
"answer": 94,
"correct": false
}
}
},
{
"id": "diagnostic-001-0",
"task": "lookup",
"gold": 39,
"arms": {
"baseline": {
"tokens": [
22,
18,
248046
],
"response": "73<|im_end|>",
"stop": "eos",
"answer": 73,
"correct": false
}
}
},
{
"id": "diagnostic-001-1",
"task": "lookup",
"gold": 76,
"arms": {
"baseline": {
"tokens": [
22,
18,
248046
],
"response": "73<|im_end|>",
"stop": "eos",
"answer": 73,
"correct": false
}
}
},
{
"id": "diagnostic-002-0",
"task": "lookup",
"gold": 49,
"arms": {
"baseline": {
"tokens": [
20,
17,
248046
],
"response": "52<|im_end|>",
"stop": "eos",
"answer": 52,
"correct": false
}
}
},
{
"id": "diagnostic-002-1",
"task": "lookup",
"gold": 22,
"arms": {
"baseline": {
"tokens": [
20,
17,
248046
],
"response": "52<|im_end|>",
"stop": "eos",
"answer": 52,
"correct": false
}
}
},
{
"id": "diagnostic-003-0",
"task": "lookup",
"gold": 63,
"arms": {
"baseline": {
"tokens": [
24,
15,
248046
],
"response": "90<|im_end|>",
"stop": "eos",
"answer": 90,
"correct": false
}
}
},
{
"id": "diagnostic-003-1",
"task": "lookup",
"gold": 21,
"arms": {
"baseline": {
"tokens": [
24,
15,
248046
],
"response": "90<|im_end|>",
"stop": "eos",
"answer": 90,
"correct": false
}
}
},
{
"id": "diagnostic-004-0",
"task": "lookup",
"gold": 74,
"arms": {
"baseline": {
"tokens": [
24,
24,
248046
],
"response": "99<|im_end|>",
"stop": "eos",
"answer": 99,
"correct": false
}
}
},
{
"id": "diagnostic-004-1",
"task": "lookup",
"gold": 29,
"arms": {
"baseline": {
"tokens": [
24,
24,
248046
],
"response": "99<|im_end|>",
"stop": "eos",
"answer": 99,
"correct": false
}
}
},
{
"id": "diagnostic-005-0",
"task": "lookup",
"gold": 39,
"arms": {
"baseline": {
"tokens": [
21,
16,
248046
],
"response": "61<|im_end|>",
"stop": "eos",
"answer": 61,
"correct": false
}
}
},
{
"id": "diagnostic-005-1",
"task": "lookup",
"gold": 77,
"arms": {
"baseline": {
"tokens": [
21,
16,
248046
],
"response": "61<|im_end|>",
"stop": "eos",
"answer": 61,
"correct": false
}
}
},
{
"id": "diagnostic-006-0",
"task": "lookup",
"gold": 40,
"arms": {
"baseline": {
"tokens": [
20,
15,
248046
],
"response": "50<|im_end|>",
"stop": "eos",
"answer": 50,
"correct": false
}
}
},
{
"id": "diagnostic-006-1",
"task": "lookup",
"gold": 67,
"arms": {
"baseline": {
"tokens": [
20,
15,
248046
],
"response": "50<|im_end|>",
"stop": "eos",
"answer": 50,
"correct": false
}
}
},
{
"id": "diagnostic-007-0",
"task": "lookup",
"gold": 89,
"arms": {
"baseline": {
"tokens": [
19,
18,
248046
],
"response": "43<|im_end|>",
"stop": "eos",
"answer": 43,
"correct": false
}
}
},
{
"id": "diagnostic-007-1",
"task": "lookup",
"gold": 61,
"arms": {
"baseline": {
"tokens": [
19,
18,
248046
],
"response": "43<|im_end|>",
"stop": "eos",
"answer": 43,
"correct": false
}
}
}
]
@@ -0,0 +1,290 @@
[
{
"id": "diagnostic-000-0",
"task": "lookup",
"gold": 76,
"arms": {
"restore-15": {
"tokens": [
22,
21,
248046
],
"response": "76<|im_end|>",
"stop": "eos",
"answer": 76,
"correct": true
}
}
},
{
"id": "diagnostic-000-1",
"task": "lookup",
"gold": 75,
"arms": {
"restore-15": {
"tokens": [
22,
20,
248046
],
"response": "75<|im_end|>",
"stop": "eos",
"answer": 75,
"correct": true
}
}
},
{
"id": "diagnostic-001-0",
"task": "lookup",
"gold": 39,
"arms": {
"restore-15": {
"tokens": [
18,
24,
248046
],
"response": "39<|im_end|>",
"stop": "eos",
"answer": 39,
"correct": true
}
}
},
{
"id": "diagnostic-001-1",
"task": "lookup",
"gold": 76,
"arms": {
"restore-15": {
"tokens": [
22,
21,
248046
],
"response": "76<|im_end|>",
"stop": "eos",
"answer": 76,
"correct": true
}
}
},
{
"id": "diagnostic-002-0",
"task": "lookup",
"gold": 49,
"arms": {
"restore-15": {
"tokens": [
19,
24,
248046
],
"response": "49<|im_end|>",
"stop": "eos",
"answer": 49,
"correct": true
}
}
},
{
"id": "diagnostic-002-1",
"task": "lookup",
"gold": 22,
"arms": {
"restore-15": {
"tokens": [
17,
17,
248046
],
"response": "22<|im_end|>",
"stop": "eos",
"answer": 22,
"correct": true
}
}
},
{
"id": "diagnostic-003-0",
"task": "lookup",
"gold": 63,
"arms": {
"restore-15": {
"tokens": [
21,
18,
248046
],
"response": "63<|im_end|>",
"stop": "eos",
"answer": 63,
"correct": true
}
}
},
{
"id": "diagnostic-003-1",
"task": "lookup",
"gold": 21,
"arms": {
"restore-15": {
"tokens": [
17,
16,
248046
],
"response": "21<|im_end|>",
"stop": "eos",
"answer": 21,
"correct": true
}
}
},
{
"id": "diagnostic-004-0",
"task": "lookup",
"gold": 74,
"arms": {
"restore-15": {
"tokens": [
22,
19,
248046
],
"response": "74<|im_end|>",
"stop": "eos",
"answer": 74,
"correct": true
}
}
},
{
"id": "diagnostic-004-1",
"task": "lookup",
"gold": 29,
"arms": {
"restore-15": {
"tokens": [
17,
24,
248046
],
"response": "29<|im_end|>",
"stop": "eos",
"answer": 29,
"correct": true
}
}
},
{
"id": "diagnostic-005-0",
"task": "lookup",
"gold": 39,
"arms": {
"restore-15": {
"tokens": [
24,
23,
248046
],
"response": "98<|im_end|>",
"stop": "eos",
"answer": 98,
"correct": false
}
}
},
{
"id": "diagnostic-005-1",
"task": "lookup",
"gold": 77,
"arms": {
"restore-15": {
"tokens": [
22,
22,
248046
],
"response": "77<|im_end|>",
"stop": "eos",
"answer": 77,
"correct": true
}
}
},
{
"id": "diagnostic-006-0",
"task": "lookup",
"gold": 40,
"arms": {
"restore-15": {
"tokens": [
19,
15,
248046
],
"response": "40<|im_end|>",
"stop": "eos",
"answer": 40,
"correct": true
}
}
},
{
"id": "diagnostic-006-1",
"task": "lookup",
"gold": 67,
"arms": {
"restore-15": {
"tokens": [
21,
22,
248046
],
"response": "67<|im_end|>",
"stop": "eos",
"answer": 67,
"correct": true
}
}
},
{
"id": "diagnostic-007-0",
"task": "lookup",
"gold": 89,
"arms": {
"restore-15": {
"tokens": [
23,
24,
248046
],
"response": "89<|im_end|>",
"stop": "eos",
"answer": 89,
"correct": true
}
}
},
{
"id": "diagnostic-007-1",
"task": "lookup",
"gold": 61,
"arms": {
"restore-15": {
"tokens": [
21,
16,
248046
],
"response": "61<|im_end|>",
"stop": "eos",
"answer": 61,
"correct": true
}
}
}
]
@@ -0,0 +1,290 @@
[
{
"id": "diagnostic-000-0",
"task": "lookup",
"gold": 76,
"arms": {
"restore-19": {
"tokens": [
22,
21,
248046
],
"response": "76<|im_end|>",
"stop": "eos",
"answer": 76,
"correct": true
}
}
},
{
"id": "diagnostic-000-1",
"task": "lookup",
"gold": 75,
"arms": {
"restore-19": {
"tokens": [
22,
20,
248046
],
"response": "75<|im_end|>",
"stop": "eos",
"answer": 75,
"correct": true
}
}
},
{
"id": "diagnostic-001-0",
"task": "lookup",
"gold": 39,
"arms": {
"restore-19": {
"tokens": [
18,
24,
248046
],
"response": "39<|im_end|>",
"stop": "eos",
"answer": 39,
"correct": true
}
}
},
{
"id": "diagnostic-001-1",
"task": "lookup",
"gold": 76,
"arms": {
"restore-19": {
"tokens": [
22,
21,
248046
],
"response": "76<|im_end|>",
"stop": "eos",
"answer": 76,
"correct": true
}
}
},
{
"id": "diagnostic-002-0",
"task": "lookup",
"gold": 49,
"arms": {
"restore-19": {
"tokens": [
19,
24,
248046
],
"response": "49<|im_end|>",
"stop": "eos",
"answer": 49,
"correct": true
}
}
},
{
"id": "diagnostic-002-1",
"task": "lookup",
"gold": 22,
"arms": {
"restore-19": {
"tokens": [
17,
17,
248046
],
"response": "22<|im_end|>",
"stop": "eos",
"answer": 22,
"correct": true
}
}
},
{
"id": "diagnostic-003-0",
"task": "lookup",
"gold": 63,
"arms": {
"restore-19": {
"tokens": [
21,
18,
248046
],
"response": "63<|im_end|>",
"stop": "eos",
"answer": 63,
"correct": true
}
}
},
{
"id": "diagnostic-003-1",
"task": "lookup",
"gold": 21,
"arms": {
"restore-19": {
"tokens": [
17,
16,
248046
],
"response": "21<|im_end|>",
"stop": "eos",
"answer": 21,
"correct": true
}
}
},
{
"id": "diagnostic-004-0",
"task": "lookup",
"gold": 74,
"arms": {
"restore-19": {
"tokens": [
22,
19,
248046
],
"response": "74<|im_end|>",
"stop": "eos",
"answer": 74,
"correct": true
}
}
},
{
"id": "diagnostic-004-1",
"task": "lookup",
"gold": 29,
"arms": {
"restore-19": {
"tokens": [
17,
24,
248046
],
"response": "29<|im_end|>",
"stop": "eos",
"answer": 29,
"correct": true
}
}
},
{
"id": "diagnostic-005-0",
"task": "lookup",
"gold": 39,
"arms": {
"restore-19": {
"tokens": [
18,
24,
248046
],
"response": "39<|im_end|>",
"stop": "eos",
"answer": 39,
"correct": true
}
}
},
{
"id": "diagnostic-005-1",
"task": "lookup",
"gold": 77,
"arms": {
"restore-19": {
"tokens": [
22,
22,
248046
],
"response": "77<|im_end|>",
"stop": "eos",
"answer": 77,
"correct": true
}
}
},
{
"id": "diagnostic-006-0",
"task": "lookup",
"gold": 40,
"arms": {
"restore-19": {
"tokens": [
19,
15,
248046
],
"response": "40<|im_end|>",
"stop": "eos",
"answer": 40,
"correct": true
}
}
},
{
"id": "diagnostic-006-1",
"task": "lookup",
"gold": 67,
"arms": {
"restore-19": {
"tokens": [
21,
22,
248046
],
"response": "67<|im_end|>",
"stop": "eos",
"answer": 67,
"correct": true
}
}
},
{
"id": "diagnostic-007-0",
"task": "lookup",
"gold": 89,
"arms": {
"restore-19": {
"tokens": [
23,
24,
248046
],
"response": "89<|im_end|>",
"stop": "eos",
"answer": 89,
"correct": true
}
}
},
{
"id": "diagnostic-007-1",
"task": "lookup",
"gold": 61,
"arms": {
"restore-19": {
"tokens": [
21,
16,
248046
],
"response": "61<|im_end|>",
"stop": "eos",
"answer": 61,
"correct": true
}
}
}
]
@@ -0,0 +1,290 @@
[
{
"id": "diagnostic-000-0",
"task": "lookup",
"gold": 76,
"arms": {
"restore-23": {
"tokens": [
24,
19,
248046
],
"response": "94<|im_end|>",
"stop": "eos",
"answer": 94,
"correct": false
}
}
},
{
"id": "diagnostic-000-1",
"task": "lookup",
"gold": 75,
"arms": {
"restore-23": {
"tokens": [
24,
19,
248046
],
"response": "94<|im_end|>",
"stop": "eos",
"answer": 94,
"correct": false
}
}
},
{
"id": "diagnostic-001-0",
"task": "lookup",
"gold": 39,
"arms": {
"restore-23": {
"tokens": [
22,
18,
248046
],
"response": "73<|im_end|>",
"stop": "eos",
"answer": 73,
"correct": false
}
}
},
{
"id": "diagnostic-001-1",
"task": "lookup",
"gold": 76,
"arms": {
"restore-23": {
"tokens": [
22,
21,
248046
],
"response": "76<|im_end|>",
"stop": "eos",
"answer": 76,
"correct": true
}
}
},
{
"id": "diagnostic-002-0",
"task": "lookup",
"gold": 49,
"arms": {
"restore-23": {
"tokens": [
20,
17,
248046
],
"response": "52<|im_end|>",
"stop": "eos",
"answer": 52,
"correct": false
}
}
},
{
"id": "diagnostic-002-1",
"task": "lookup",
"gold": 22,
"arms": {
"restore-23": {
"tokens": [
20,
17,
248046
],
"response": "52<|im_end|>",
"stop": "eos",
"answer": 52,
"correct": false
}
}
},
{
"id": "diagnostic-003-0",
"task": "lookup",
"gold": 63,
"arms": {
"restore-23": {
"tokens": [
24,
15,
248046
],
"response": "90<|im_end|>",
"stop": "eos",
"answer": 90,
"correct": false
}
}
},
{
"id": "diagnostic-003-1",
"task": "lookup",
"gold": 21,
"arms": {
"restore-23": {
"tokens": [
24,
15,
248046
],
"response": "90<|im_end|>",
"stop": "eos",
"answer": 90,
"correct": false
}
}
},
{
"id": "diagnostic-004-0",
"task": "lookup",
"gold": 74,
"arms": {
"restore-23": {
"tokens": [
24,
24,
248046
],
"response": "99<|im_end|>",
"stop": "eos",
"answer": 99,
"correct": false
}
}
},
{
"id": "diagnostic-004-1",
"task": "lookup",
"gold": 29,
"arms": {
"restore-23": {
"tokens": [
24,
24,
248046
],
"response": "99<|im_end|>",
"stop": "eos",
"answer": 99,
"correct": false
}
}
},
{
"id": "diagnostic-005-0",
"task": "lookup",
"gold": 39,
"arms": {
"restore-23": {
"tokens": [
21,
16,
248046
],
"response": "61<|im_end|>",
"stop": "eos",
"answer": 61,
"correct": false
}
}
},
{
"id": "diagnostic-005-1",
"task": "lookup",
"gold": 77,
"arms": {
"restore-23": {
"tokens": [
21,
22,
248046
],
"response": "67<|im_end|>",
"stop": "eos",
"answer": 67,
"correct": false
}
}
},
{
"id": "diagnostic-006-0",
"task": "lookup",
"gold": 40,
"arms": {
"restore-23": {
"tokens": [
20,
15,
248046
],
"response": "50<|im_end|>",
"stop": "eos",
"answer": 50,
"correct": false
}
}
},
{
"id": "diagnostic-006-1",
"task": "lookup",
"gold": 67,
"arms": {
"restore-23": {
"tokens": [
20,
16,
248046
],
"response": "51<|im_end|>",
"stop": "eos",
"answer": 51,
"correct": false
}
}
},
{
"id": "diagnostic-007-0",
"task": "lookup",
"gold": 89,
"arms": {
"restore-23": {
"tokens": [
19,
21,
248046
],
"response": "46<|im_end|>",
"stop": "eos",
"answer": 46,
"correct": false
}
}
},
{
"id": "diagnostic-007-1",
"task": "lookup",
"gold": 61,
"arms": {
"restore-23": {
"tokens": [
19,
18,
248046
],
"response": "43<|im_end|>",
"stop": "eos",
"answer": 43,
"correct": false
}
}
}
]
@@ -0,0 +1,95 @@
{
"protocol_sha256": "6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef",
"tokenizer_sha256": "5f9e4d4901a92b997e463c1f46055088b6cca5ca61a6522d1b9f64c4bb81cb42",
"baseline_adapter_sha256": "c82db5af7fa42cf58a349f3e53961da2360b211a7ed606f53a728860c64f6f29",
"answer_file_sha256": {
"baseline.json": "8f3fb8773fa790de01604db9a313365bab25a55c86b363eaf0269f94df020e8f",
"restore-15.json": "53b2af36d1f5d5e960d1f7b22630f8f72d7e9a2016131747c48d7e5c17ef7fcb",
"restore-19.json": "c1b158e61eaa98b1c24ead81363ef3193b392d36947f3199e7930fe199e5163a",
"restore-23.json": "4513c537d5d957c1bfbe0e23741dad3d77cc76a08e7ff255e38661e9e7b58c8d"
},
"questions": 16,
"pairs": 8,
"scores": {
"baseline": {
"correct": 0,
"both_correct_pairs": 0,
"complete_integer_answers": 16,
"wrong_ids": [
"diagnostic-000-0",
"diagnostic-000-1",
"diagnostic-001-0",
"diagnostic-001-1",
"diagnostic-002-0",
"diagnostic-002-1",
"diagnostic-003-0",
"diagnostic-003-1",
"diagnostic-004-0",
"diagnostic-004-1",
"diagnostic-005-0",
"diagnostic-005-1",
"diagnostic-006-0",
"diagnostic-006-1",
"diagnostic-007-0",
"diagnostic-007-1"
]
},
"restore-15": {
"correct": 15,
"both_correct_pairs": 7,
"complete_integer_answers": 16,
"wrong_ids": [
"diagnostic-005-0"
]
},
"restore-19": {
"correct": 16,
"both_correct_pairs": 8,
"complete_integer_answers": 16,
"wrong_ids": []
},
"restore-23": {
"correct": 1,
"both_correct_pairs": 0,
"complete_integer_answers": 16,
"wrong_ids": [
"diagnostic-000-0",
"diagnostic-000-1",
"diagnostic-001-0",
"diagnostic-002-0",
"diagnostic-002-1",
"diagnostic-003-0",
"diagnostic-003-1",
"diagnostic-004-0",
"diagnostic-004-1",
"diagnostic-005-0",
"diagnostic-005-1",
"diagnostic-006-0",
"diagnostic-006-1",
"diagnostic-007-0",
"diagnostic-007-1"
]
}
},
"ranks_by_layer": {
"allocated": {
"19": 48,
"15": 40,
"23": 32
},
"reversed": {
"19": 32,
"15": 40,
"23": 48
},
"uniform": {
"15": 40,
"19": 40,
"23": 40
}
},
"rank_order_after_omitting_one_pair": {
"19,15,23": 7,
"15,19,23": 1
}
}