arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.07978cs.CL
收藏

MechLens:事实知识的晚期结晶解释语言模型中的干预有效性

MechLens: Late Crystallization of Factual Knowledge Explains Intervention Effectiveness in Language Models

Alibaba Cloud(阿里云)

Xueping Gao

AI总结:

本文发现LLM中的事实知识在最后层突然“结晶”,而非逐层涌现,并基于此提出结晶引导的干预原则,优于现有方法。

摘要:

理解LLM存储事实知识的位置对于减少幻觉至关重要。我们系统量化了“晚期结晶”:事实知识并非逐层涌现,而是在最后层突然“结晶”。在五个模型家族(Pythia、Gemma、Qwen2.5、Llama-3.1、Mistral;0.5–14B)中,26.8%–93.4%的正确答案从未在任何中间层进入前10预测,且晚期涌现(>80%深度)在不同架构中一致。跨尺度(Qwen2.5-14B)和跨基准(MMLU:98.2%)结果证实了普遍性;调谐透镜排除了探针伪影。情感分类对照(Qwen为0.5% vs. 事实85.9%;Mistral为2.0% vs. 26.8%)确认该现象是事实回忆特有的。\n晚期结晶引出了结晶引导的干预原则:CAA在中等结晶模型(Llama、Mistral)上优于DoLa(p<0.001),在高结晶模型Qwen上方向一致反转(+25.4% vs. +15.5% MC1,p=0.069)。LayerNorm消融表明结晶是残差流固有的;LN缩放(x1.2)在零推理开销下带来+11.8% MC1提升。我们进一步揭示了可计算性-记忆谱:可计算知识比记忆事实更早结晶(层22.1/28 vs. 28.0/28)。我们发布了支持五个模型家族的MechLens。

英文摘要:

Understanding where LLMs store factual knowledge is critical for hallucination mitigation. We systematically quantify Late Crystallization: factual knowledge does not gradually emerge across layers but "crystallizes" abruptly at the final layers. Across five model families (Pythia, Gemma, Qwen2.5, Llama-3.1, Mistral; 0.5--14B), 26.8%--93.4% of correct answers never enter top-10 predictions at any intermediate layer, with late emergence (>80% depth) consistent across architectures. Cross-scale (Qwen2.5-14B) and cross-benchmark (MMLU: 98.2%) results confirm generality; tuned lens rules out probe artifacts. A sentiment-classification control (0.5% for Qwen vs. 85.9% factual; 2.0% for Mistral vs. 26.8%) confirms the phenomenon is specific to factual recall. Late Crystallization yields a crystallization-guided intervention principle: CAA outperforms DoLa on moderate-crystallization models (Llama, Mistral; p<0.001), with a directionally consistent reversal on high-crystallization Qwen (+25.4% vs. +15.5% MC1, p=0.069). LayerNorm ablation shows crystallization is intrinsic to the residual stream; LN scaling (x1.2) yields +11.8% MC1 with zero inference overhead. We further reveal a Computability-Memorization Spectrum: computable knowledge crystallizes earlier (layer 22.1/28) than memorized facts (28.0/28). We release MechLens supporting five model families.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑