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

大型语言模型中的思维链:解码、投射与激活

Chain-of-Thought in Large Language Models: Decoding, Projection, and Activation

Nanjing University(南京大学);Hefei University(合肥大学);Beihang University(北京航空航天大学);University of Washington(华盛顿大学);University of Copenhagen(哥本哈根大学)

Hao Yang, Qianghua Zhao, Lei Li

AI总结:

本文从解码、投射与激活三方面分析大型语言模型的思维链提示机制,发现模型会模仿示例格式、形成更集中的 logits 分布并激活末层更多神经元以增强知识检索。

摘要:

思维链提示显著增强了大型语言模型的推理能力,已有大量研究探讨影响其性能的因素。然而,其底层机制仍知之甚少。为进一步揭示其运行原理,本研究考察了解码、投射和激活三个关键方面,旨在阐明模型在采用 Chain-of-Thought 时内部发生的变化。研究发现,LLM 会有效模仿示例格式,并将其与自身对问题的理解相结合;在生成过程中,token logits 会出现波动,但最终产生更集中的 logits 分布;同时,模型末层会激活更广泛的神经元集合,表明相比标准提示,其进行了更广泛的知识检索。论文被接收后,我们的代码和数据将公开发布。

英文摘要:

Chain-of-Thought prompting has significantly enhanced the reasoning capabilities of large language models, with numerous studies exploring factors influencing its performance. However, the underlying mechanisms remain poorly understood. To further demystify the operational principles, this work examines three key aspects: decoding, projection, and activation, aiming to elucidate the changes that occur within models when employing Chainof-Thought. Our findings reveal that LLMs effectively imitate exemplar formats while integrating them with their understanding of the question, exhibiting fluctuations in token logits during generation but ultimately producing a more concentrated logits distribution, and activating a broader set of neurons in the final layers, indicating more extensive knowledge retrieval compared to standard prompts. Our code and data will be publicly avialable when the paper is accepted.

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

↑